Skip to content
Use case · Education

Tutors that remember each learner and adapt as they grow.

Per-user sub-brains track each student's progress and gaps; the coherence gate keeps the teaching approach steady.

What it is

A tutor that remembers each learner's progress and gaps, holds a consistent teaching method, and adapts to the individual as they grow.

Why it matters

Good tutoring is cumulative — it depends on remembering what a student already knows, where they struggle, and how they learn best. A stateless model resets every session, so the tutor keeps re-teaching basics and can't adapt to the individual over time.

Before · After

What changes with a memory layer.

Without Khwan
  • Progress

    Re-teaches the basics every session.

  • Method

    Teaching approach swings session to session.

  • Adaptation

    The same lesson for everyone.

  • Privacy

    Student data sits in a shared context.

With Khwan
  • Progress

    Builds on what each student already knows.

  • Method

    A coherence gate keeps pedagogy steady.

  • Adaptation

    A brain per learner that sharpens over time.

  • Privacy

    Per-learner isolation; on-prem for institutions.

How it works

The same loop — three calls, your model in the middle.

1Khwan

prepare

Builds the brief — memory + written identity + coherence gate. No LLM call.

2You

your model

You call your own model — your provider, your key. Khwan never touches it.

3Khwan

record

Persists the turn and learns from it — so the next prepare is sharper.

Every run compounds. The brief gets tighter, cost drops, and answers sharpen — the memory that thinks, not just recalls.

A brain per learner

Per-user sub-brains keep each student's progress, misconceptions, and pace persistent across sessions — so the tutor adapts instead of restarting.

Consistent pedagogy

A written teaching approach becomes the coherence gate, keeping tone, difficulty, and method steady rather than swinging session to session.

It compounds

Synthesis turns each learner's history into a sharper model of how to teach them next — the tutor genuinely improves for that student over time.

What you get

Outcomes, not orchestration.

  • Lessons that build on what each student already knows
  • Consistent teaching method per learner
  • Adaptation that improves with every session
  • Private by design — on-prem available for institutions

Edtech products, tutoring platforms, and training tools.

The whole integration — three calls

agent.ts
import { Khwan } from "@khwan/client";
 
const kw = new Khwan({ apiKey: process.env.KHWAN_API_KEY });
 
// 1 — Khwan builds the context (memory + coherence). No LLM call.
const turn = await kw.prepare(input);
 
// 2 — You call your own model. Your provider, your key.
const answer = await yourModel(turn.messages);
 
// 3 — Hand it back. Khwan persists + learns; next prepare is sharper.
await kw.record(turn, answer);

Start free — feel the compounding before you pay for it.