Remember the learner

Finish for today. Pick up the same step.

Read the full transcript Watch on YouTube

Why this matters.

Step 4 of the quick start. A Finish for today button closes the session, and Learn saves where the learner stopped. Next time, a Last time panel shows the step they reached, and a new session picks it up.

It picks up where they stopped.

See the quick start

Every word of it.

Chapters10
On screen16
  • 0:00Remember the learner
    The Learn API
    By ForeverLearning
  • 0:07Step 1 of 3: in your app from episode 3, paste the prompt into your coding assistant.
  • 0:07PROMPT in your app’s folder, for any AI coding assistant
    Goal: the tutor picks up where the learner left off. The learner
    finishes a session, and next time the app shows what Learn
    saved about last time and carries on.

    ...

    Rules:
    - Keep the API key on the server, in the FOREVERLEARNING_API_KEY
    environment variable. Read the API host from
    ...
    - Render each reply's Markdown (headings, lists, bold, code) and
    its math.
    ...
  • 0:18CHANGES your app, after the prompt
    ~ learn.ts
    ~ package.json
    ~ public/app.js
    ~ public/index.html
    ~ public/style.css
    ~ README.md
    ~ server.ts

    $ npm start
  • 0:18Step 2 of 3: seven edits, no new file. Nothing else changes.
  • 0:27Step 3 of 3: at the end of a session, they press Finish for today.
  • 0:35The session they finish: their question, and Learn’s hint.
  • 0:45Finished: Learn closes the session and saves where they stopped.
  • 0:55Next time: a new session that picks up the same step.
  • 1:06A new session, at turn 0. Every turn keeps its receipt.
  • 1:07RECEIPT receipts.jsonl, this turn
    {
    "request_id": "req_…",
    "posture": "guided",
    "turn_index": 0,
    "safety_level": "clear",
    "billable_units": 1,
    "charge_micro_usd": 50000,
    "settlement": "settled"
    }
  • 1:15What you just did.
  • 1:16Finish for today: Learn closes the session and saves where they were.
  • 1:22Next time: the Last time panel, and a tutor that picks up the same step.
  • 1:29Next: show the safety status.
  • 1:37The Learn API
    By ForeverLearning
    Every reply on screen is real.
    Try it yourself today.
    developers.foreverlearning.ai
The exchange5
  • StudentI'm learning to solve equations with brackets, like 2(x - 4) = 10. I keep forgetting to multiply the 4 by 2.
  • LearnYou’ve identified the part that slips: the number outside the brackets must affect both terms inside. Let’s make that one move automatic.

    In 2(x - 4), what does the outside 2 multiply: just x, just -4, or both terms?
  • Learn (closeout)The session is closed. You asked about solving an equation with brackets and described the part that tends to slip; next time, we can start by practicing that distribution step.

    Next starting point: write the expanded form of 2(x - 4) = 10.
  • StudentCan we keep going from where we stopped last time?
  • LearnYes—we can pick up with the bracket equation you were learning to solve. We’ll start with the next small move rather than redo everything.

    For 2(x - 4) = 10, begin by expanding the brackets: multiply the outside number by each term inside. Write the expanded left side, and leave the equation unfinished for now.

Next time: the Last time panel, and a tutor that picks up the same step.

A learner-safe learning system. One API call away.

Start building