Beta. CodeTrain is early and improving every week. Tell us what to fix or what you wish it did: [email protected].
Socratic AI coding tutor

Learn any codebase by writing it.

AI writes the code. CodeTrain makes sure you still understand it. A Socratic tutor breaks a real task into small steps on your own repo. You type every line, every step has to run and pass, and what stuck is provable instead of a completion percentage.

Try it right here. No account, no install.

Two steps, about a minute, and the first one is going to catch you. Everything here runs for real in your browser. The tutor's replies are pre-recorded, so it knows the handful of ways this lesson usually goes wrong. The real one reads whatever you actually wrote, and it is free for ten lessons a month.

Lesson
The bug a passing test cannot see
javascript · runs in your browser
Step 1 of 2
Reading
The function that passed its test
This is a leaderboard. scores holds six results and names holds the people they belong to, lined up by position, so Ada scored 72 and Bo scored 98.

topThree picks out the three best, and the test that ships with it passes.

You may already know what is wrong here. Plenty of people who know still write it, which is the more interesting half.
Hit Run, then read the before: and after: lines.
const names  = ["Ada", "Bo", "Cy", "Di", "Eve", "Fay"]
const scores = [  72,   98,   64,   91,   87,    55  ]

// each person shown next to their score
const pair  = (n, i) => n + " " + scores[i]
const board = () => names.map(pair).join("   ")

console.log("before:   ", board())
const top = topThree(scores)
console.log("top three:", top)
console.log("after:    ", board())

function topThree(scores) {
  scores.sort((a, b) => b - a)
  return scores.slice(0, 3)
}

This lesson needs JavaScript to run. With it on, you get an editor and a Run button right here.

Then point it at a repo you already use

Paste any public repository URL on the free tier and the lesson is built from the code that is actually in it. Four that make for a good first run, and the kind of question each one turns into:

Quotes are verbatim from real lessons built on 5 September 2026. Cards without one had nothing worth quoting that day.

  • A few small steps, not a wall of code. Each one is a handful of lines.
  • You write every line. The tutor asks and reviews; it never hands over the fix.
  • These four run in this tab. Python and JavaScript, with nothing to install.
  • Nothing advances until it passes. A failed check keeps you on the step.

Any public repository. You will be asked to sign in first, and the link is kept while you do.

Ten lessons a month on the free plan, from any public repo. Pro runs the same thing against your own checkout on 127.0.0.1, where the code never leaves your machine.

Nothing advanced there until your code actually ran.
That is the difference between a lesson somebody completed and an engineer who can do the work.

What is CodeTrain?

CodeTrain is a Socratic AI coding tutor that teaches developers on their own codebase instead of writing code for them. It breaks a real task into small steps, asks questions, reviews each line you write, and runs your tests. Every step must pass before the lesson advances.

Longer reads: how a Socratic coding tutor works, and learning any codebase in 30 minutes, and how this differs from a general AI study mode.

The skill is quietly leaving the building

As AI writes more of the code, the understanding behind it erodes. Juniors ship features they can't debug. Onboarding still takes months. "It works" stops meaning "we know why."

55%

of US & Canada faculty see AI as a serious risk to human intellectual development

The discovery phase of learning, where understanding actually forms, gets skipped when the answer is one tab away.
Source: Digital Education Council, 2026

3-9 months

for a new engineer to fully ramp up, in a survey of 80+ engineers and managers

Generic courses teach someone else's code. Your patterns, your standards, your gotchas go untaught.
Source: Swimm onboarding survey, via HackerNoon (2020)

50-200%

of salary to replace a departing engineer

Seniors burn their week answering the same questions. Skill doesn't compound; it leaks.
Source: SHRM turnover-cost research

Learn by doing, on the code that matters

No lecture videos, no toy exercises. A Socratic tutor asks, nudges, reviews what you wrote, and runs the tests, but it never hands you the answer.

Point it at a repo, not a pile of docs

Paste any public repo URL on the free tier and the lesson is built from the code that's actually in it. Say what you want ("how the API works", "the auth flow") and it aims there. On Pro, repo mode runs against your own checkout and edits land in your real branch, on 127.0.0.1, so your code stays local. Secrets and gitignored files are never read, in either mode.

Write each step yourself

The tutor breaks the work into tiny steps in a real editor with an instant Run button. You type the line; it reviews what you wrote and explains what changed.

Get nudged, not spoon-fed

Stuck? It shrinks the step or reveals the next hint, never the solution. Failing code is the best teaching moment, so it leans in instead of bailing out.

It remembers you

The concepts you got stuck on are scheduled to come back at widening intervals. One click turns a due concept into a fresh drill built from what you actually got wrong, not a replay of the lesson. Syncs across the browser, the agent, and the open skill.

codetrain · your codebase, one step at a time

For teams onboarding people into a real codebase

New people pull your senior engineers aside with the same questions, and AI-assisted changes land that nobody can fully explain. CodeTrain turns one hard part of your codebase into a guided path. Each person writes the work and runs the checks, and you get a record of what they did without help. Review and merges stay with your people.

One workflow, done properly beta

Pick what new people struggle with most, like a tricky service or their first safe change. CodeTrain builds the path from your repo and your standards, and every step has to pass before the next one opens.

See who can, not who finished

The team dashboard shows each person's finished lessons, concepts and unaided work. Per-learner budgets keep spend predictable, and you can bring your own model key. Need SSO, audit logs or self-hosting? Talk to us about Enterprise. We are not SOC 2 certified yet.

We take a few design-partner teams at a time. Tell us about the workflow.

Pricing

Start free. Upgrade when you want your real repos, your own model key, or your whole team. No card to start.

Free
$0
Start free
Pro
$24 / mo
  • Your real repos (repo mode)
  • Fair-use lessons, zero setup
  • Cross-device profile sync
  • Experimental models from other labs, not just Claude
  • Bring your own key (optional)
Get Pro
Team · for engineering orgs
$32 / learner/mo
  • Everything in Pro, for every learner
  • A place is reassignable: when someone finishes, move them out and the next person takes it, billed pro rata
  • Onboarding journeys
  • Team usage & progress dashboard
  • Per-learner budgets + central billing
  • Bring your own key
Choose Team
Enterprise
Custom
  • SSO and audit logs: talk to us
  • Self-host, so code stays in your environment
  • SOC 2: not certified yet
  • Onboarding-ROI pricing
Talk to sales

Buying this for yourself rather than a team? The Free and Pro plans are the same product without the team dashboard and shared billing, and the page for individual developers covers them properly.

Or earn your plan instead. Every account gets a referral link, free tier included, and five people on Pro through yours covers your own. How the Conductor Network works.

Questions, answered

Does CodeTrain write code for you?

No, and it is the one rule it will not bend. The tutor's own instructions say the learner writes every line and that it must never write or paste their solution, not even a single line. Stuck learners get a smaller step or the next hint instead. The full rule set is published here.

How is CodeTrain different from GitHub Copilot or Cursor?

Opposite jobs. Copilot and Cursor exist to produce code faster, and they are good at it. CodeTrain exists so the person who shipped that code can still explain and change it in six weeks. One is a typing accelerator, the other is a tutor that refuses to type. Most teams should run both. Where each one fits, including when not to use us.

Can I use CodeTrain with my private repo?

Yes, two ways. The free downloadable agent runs on your machine and reads your local checkout, so nothing leaves it. On Pro, repo mode runs against your own checkout on 127.0.0.1 and edits land in your real branch. On the free managed tier you can point it at any public repo URL. In every mode, secrets and gitignored files are refused before they are read.

What languages does CodeTrain support?

Curated courses cover Python, JavaScript, bash and the maths behind LLMs in pure NumPy. Repo mode is not limited to that list: the lesson is built from whatever is in the code you point it at, and steps run in a real sandbox. Browse every course.

Does my code get uploaded anywhere?

No. The agent runs on your machine and serves the UI on localhost. On the managed plan, only short prompt snippets go to the model. On Bring-Your-Own-Key (Team/Enterprise), model calls go straight to your own provider with your key, and nothing but a license check touches our servers.

Why not a general AI course builder?

Those tools turn documents into courses. In software the documents are the least reliable thing you own; the repo is the source of truth, and it moved this morning. A generated course also can't tell you whether anyone can actually do the work, because nothing executes. It grades a written answer against a rubric and reports a completion percentage. CodeTrain builds the lesson from the code itself, makes the engineer write each step, and runs it. If it doesn't pass, the lesson doesn't advance. Different input, different proof. Full comparison, including when not to use us.

What does "bring your own key" mean?

You connect your own API key. Anthropic, Google Gemini, Amazon Bedrock, the Gemini Enterprise Agent Platform, OpenRouter, Ollama and any OpenAI-compatible endpoint all work. Your code and prompts go directly to the model on your account. That is best for security and cost control, and we just provide the software, accounts, and dashboards.

Stop shipping code your team can't explain

Spin up a lesson on your own repo in two minutes. Free to start.