A tutor for my class

The assignment you set, beside the chat.

Read the full transcript Watch on YouTube

Why this matters.

A tutor for a class you teach. Students see your assignment beside the chat. The tutor keeps each step theirs and finds the slip in their work, and your page shows each student's turns and the safety level of every reply.

Your class. Your assignment. Your tutor.

See the recipe

Every word of it.

Chapters13
On screen19
  • 0:00A tutor for my class
    The Learn API
    By ForeverLearning
  • 0:08Step 1 of 4: in an empty folder, with a Learn key and Node 24, paste the prompt into your coding assistant.
  • 0:08PROMPT in an empty folder, for any AI coding assistant
    Goal: a tutor for my class.
    ...

    Rules:
    - Keep the API key on the server, in the FOREVERLEARNING_API_KEY
    ...
    - Render each reply's Markdown (headings, lists, bold, code) and
    its math.
    ...
    - No default codes: never ship a default class code, instructor
    code or learner-id secret.
    ...
    - Make sure the pages work in an ordinary browser, not only from
    command-line requests
    ...
  • 0:21Step 2 of 4: it reads the guide and builds the app: fourteen files.
  • 0:21BUILD your new folder
    + class.json + package.json
    + README.md + server.ts
    + src/learn.ts + src/store.ts
    + tests/browser.ts + tests/protocol.test.ts
    + tests/render.test.ts + tsconfig.json
    + web/app.ts + web/index.html
    + web/render.ts + web/style.css

    $ npm install
    $ npm start
    http://localhost:3000
  • 0:29The assignment you set, beside the chat.
  • 0:39Step 3 of 4: a student asks for the answer. Maple keeps the step theirs.
  • 0:49Step 4 of 4: they paste their steps and press Submit my work.
  • 0:56Maple finds the slip at 4x = 14 and carries it to x = 7.
  • 1:08Your page: each student, their turns, and the safety level of every reply.
  • 1:18And the feedback each one got.
  • 1:28They sign in again, in any browser: the conversation picks up.
  • 1:36Every turn: a safety status and a receipt you keep.
  • 1:37RECEIPT receipts.jsonl
    {
    "request_id": "req_…",
    "posture": "feedback",
    "safety_level": "clear",
    "billable_units": 1,
    "charge": { "amount_micro_usd": 50000, "currency": "USD" }
    }
  • 1:45What you just did.
  • 1:46Your tutor’s name, your course, your assignment: one settings file.
  • 1:51No default codes: it will not start until you set your own.
  • 1:57Learn sees a pseudonymous id, never a student’s name.
  • 2:09The Learn API
    By ForeverLearning
    Every reply on screen is real.
    Try it yourself today.
    developers.foreverlearning.ai
The exchange13
  • The appMaple, class tutor. Instructor. Space to think. A little practice. A clearer next step. Welcome to your class tutor. Algebra 1 (adult education). The assignment: One step at a time. Solve linear equations in one variable. Show each step. Ask for a hint while you work.
  • Maple (Learn)I am Maple. Welcome. We’ll keep the solving yours while making each step clearer.

    Your task is linear equations in one variable. Start by writing one equation you need to solve, then show the first step you would try.
  • StudentCan you just give me the answer to 4x - 7 = 21?
  • Maple (Learn)You’ve brought a specific equation, and I’ll keep the solving step yours.

    Start by undoing the constant term: what operation would remove the 7 from the left side? Write that first line, then we’ll use it to choose the next move.
  • The appWhat are you working on? [Ask] [Submit my work]
  • Student (submitted work)4x - 7 = 21
    4x = 14
    x = 3.5
  • Maple (Learn)You isolated the variable across three written lines, so there is a clear path to inspect. One arithmetic move changes the value carried into the final division.

    The starting line, 4x - 7 = 21, holds as written. Your next line, 4x = 14, does not hold: the operation should undo subtracting 7 by adding 7 to 21, which gives 4x = 28. Your final line, x = 3.5, does not hold because it carries that earlier value; dividing 28 by 4 gives x = 7. Practice undoing an operation with its inverse, then carry the new value into the next line.
  • The appYour classroom, at a glance. Follow each next step. Algebra 1 (adult education). 1 student. student-awjib0: 3 confirmed turns.
  • Maple (Learn)I am Maple. Welcome. We’ll keep the solving yours while making each step clearer.

    Your task is linear equations in one variable. Start by writing one equation you need to solve, then show the first step you would try.
  • Student (submitted work)4x - 7 = 21
    4x = 14
    x = 3.5
  • Maple (Learn)You isolated the variable across three written lines, so there is a clear path to inspect. One arithmetic move changes the value carried into the final division.

    The starting line, 4x - 7 = 21, holds as written. Your next line, 4x = 14, does not hold: the operation should undo subtracting 7 by adding 7 to 21, which gives 4x = 28. Your final line, x = 3.5, does not hold because it carries that earlier value; dividing 28 by 4 gives x = 7. Practice undoing an operation with its inverse, then carry the new value into the next line.
  • StudentCan you just give me the answer to 4x - 7 = 21?
  • Maple (Learn)You’ve brought a specific equation, and I’ll keep the solving step yours.

    Start by undoing the constant term: what operation would remove the 7 from the left side? Write that first line, then we’ll use it to choose the next move.

Your tutor’s name, your course, your assignment: one settings file.

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

Start building