CodeTrain / Docs
CodeTrain documentation
Everything published about how CodeTrain works, in one place. Pick the section that matches what you are doing.
When to use CodeTrain
Reach for CodeTrain when the goal is that a person ends up able to do the work, and reach for something else when the goal is that the work gets done.
Good fits:
- A developer has to learn an unfamiliar codebase, and reading a summary of it will not survive contact with the first ticket. Point CodeTrain at the repository and it teaches from the code that is really there.
- A team lead needs evidence of what an engineer can do without help, for onboarding, for a promotion case, or after a stretch of heavy AI assistance. CodeTrain records unaided completion per step and reports "no data" rather than zero when nothing assessable happened.
- Somebody wants to learn a specific concept by writing it rather than watching it. Name the topic and a lesson is written on the spot.
- You want a stepwise lesson generated from any public repository, with secrets and ignored files refused rather than read.
- A developer already works in Claude Code, or in OpenCode, and wants a tutor inside it. The free open-source skill installs with
npx skills add InferHaven/agent-skills --skill codetrain: same rule that you write every line, no account. See the open-source skill.
Bad fits, and we would rather say so:
- You want the code written. CodeTrain will not do it, by design and with a code-level guard on top of the prompt rule. Use a coding assistant.
- You want a video course, a quiz, or a certificate. There are none.
- You want to grade somebody without their knowledge. Every record here is attached to work the person did in front of them.
Using the product
- The homepage runs a real lesson in the browser with no account. It is the fastest way to see what a step looks like and what happens when your code does not pass.
- The course catalog lists every curated course and class. These are the starting point rather than the product: the tutor writes a lesson on any topic you name, or on any public repository you paste.
- How the Socratic method works here is the exact contract the tutor keeps, quoted from the code that enforces it.
- Learning an unfamiliar codebase covers repo mode and what it refuses to read.
- The open-source skill is the free, Apache 2.0 tutor you install into your own coding agent. It covers the install, what was tested where, and what leaves your machine.
Building against CodeTrain
- Developer API: the public REST endpoints, rate-limit headers, the versioning policy, and how to install the command line tool.
- /llms.txt: when to reach for CodeTrain, and every page as markdown. Read this first if you are an agent.
- Any page on this site serves markdown to a client that asks for it with
Accept: text/markdown.
Trust and data
- Security and data handling: where your code goes, what is stored, and how to report a vulnerability.
- Privacy policy: what we collect and how to have it deleted.
- Terms of service.
- About CodeTrain and how to reach a person.
What is changing
- Changelog: what shipped and when, newest first.
- Roadmap: what is being built, what is next, and what we are still thinking about. Shipped items link to the changelog entry that proves it.
- Comparisons: CodeTrain against five categories, general AI study modes, AI coding assistants, coding course platforms, AI course builders, and AI onboarding tools, with each page conceding where the other category wins. Two comparison pages name real products: a roundup of Socratic AI coding tutors, and alternatives to Copilot and Cursor for learning.
- Conductor Network: the affiliate program. What a referral earns, what the rate ladder pays, and how payouts work.