Here's the current lay of the land, plus a few concrete paths forward.
Current Status
Topics are fully hardcoded today. There are two copies:
- CLI / server (
src/core/topics.ts): 14 built-in topics (derivative, entropy, Bayes' rule, recursion, etc.)
- Browser (
web/src/keating/core.ts): Only 4 of those 14 are ported (derivative, entropy, Bayes, recursion)
No config or file-based topic injection exists. keating.config.json only handles AI provider, speech, debug, and retry settings. resolveTopic() first checks the hardcoded TOPICS record, then falls back to buildFallbackTopic(), which uses domain keyword heuristics + generic templates to auto-generate a lesson plan. It works for arbitrary topic strings, but the quality is generic.
The closest thing to "course building" is set_learner_goal in the web app, which lets a learner set a long-horizon goal and auto-scaffolds a curriculum from an anchor topic. But this is learner-driven, not educator-injected.
No "educator plan" is implemented yet. There's a roadmap doc (docs/plans/storage-atproto-educator-tools.md) discussing educator profiles, classroom models, and PDS publishing, but zero code.
What a "Simple Start" Could Look Like
I see four practical tiers, from smallest to largest:
| Approach | What it is | Pros | Cons |
|---|
| A. Config-driven topics | Add a topics array to keating.config.json with simplified TopicDefinition objects. resolveTopic() checks config first. | One file, no new CLI commands, piggybacks existing setup flow. | Config gets bulky; doesn't scale past ~10 topics. |
| B. External topic files | Load <topic>.json from a .keating/topics/ directory. | Clean separation, versionable, easy to share/copy between projects. | Requires minor I/O plumbing; need to decide on caching. |
| C. Course manifests | Add .keating/courses/<course>.json — an array of topic definitions + metadata (author, description, ordering). Support keating course <name> to set an active course. | This is the actual "course" primitive; enables filtering benchmarks, timelines, and lesson plans to a curriculum. | Slightly more schema design (ordering, prerequisites across topics, etc.). |
| D. Simplified schema + LLM backfill | Accept just title, domain, summary, and materials (or a few bullet points) from the user; use an LLM call or the existing fallback machinery to fill in the rest. | Lowest barrier for educators who don't want to write JSON arrays. | Introduces an LLM dependency for course setup; less deterministic. |
Critical gotcha: Any change to topic loading must update both the server src/core/topics.ts and the browser port web/src/keating/core.ts, or we need to extract a shared topic-loading abstraction. Right now they are manually duplicated (and the browser only has 4 topics).
My recommendation for a "simple start"
If you want to ship something useful this week, I'd suggest a hybrid of A + B:
- Support a
.keating/topics/ directory where each <slug>.json is a TopicDefinition.
- Support a
keating.config.json field topicsDir (defaulting to .keating/topics/) so educators can point to a shared topic pack.
resolveTopic() loads from disk first, then built-ins, then fallback.
- Add a CLI command
keating topic create <title> that scaffolds the JSON file with the simplified schema.
- Update the browser port to support the same mechanism (likely via
KeatingStorage since it has no filesystem access).
This gives educators a concrete primitive (a topic JSON file) without designing a full course manifest model yet. When you're ready for educator plans, those topic files become the building blocks.
Questions before I draft a plan
- Scope: Do you want this for the CLI only first, or does the web app need it simultaneously?
- Schema: Should educators hand-write full
TopicDefinition JSON (intuition, formalCore, exercises, etc.), or should we accept a minimal schema and let the fallback/LLM fill gaps?
- "Course" semantics: Is a "course" just a list of topics with an ordering, or do you also want prerequisites between topics, a syllabus description, and learner enrollment — i.e., should I design the Course primitive now or keep it flat (just topics) and layer courses later?