/CodeTrain
CodeTrain: the AI that won't write your code
An AI trainer that teaches you on your own codebase and never writes the code for you. Free, no card, live today.
Somewhere on your team right now, a pull request is getting approved by someone who couldn’t rewrite it from scratch. Not because they’re lazy. The assistant wrote it, the tests passed, the diff looked plausible, and the sprint doesn’t stop for philosophy. Do that for a year and you get a team that ships faster every quarter and understands a little less of its own codebase every quarter too.
I ran into this a few times while building the start of InferHaven. The whole point of this company is that you shouldn’t have to hand your code to someone else to get the benefits of AI. But there’s a second thing quietly leaving the building, and no firewall catches it: the skill. When the model types and the human tabs through, the knowledge of how your system actually works stops living in your engineers and starts living in a vendor’s autocomplete.
So I built the opposite tool. Today I’m launching CodeTrain: a hands-on AI trainer that teaches developers on their own codebase, and refuses to write the code for them.
What a lesson actually looks like
You ask CodeTrain something real. “Walk me through adding a health check to this Dockerfile.” “I don’t actually understand our retry logic, teach it to me.” It breaks that into a short lesson, usually two to six steps, each one small enough to hold in your head.
Each step is one concrete thing to write in a syntax-highlighted editor with a Run button. You type it. The code executes immediately: Python and JavaScript run right in your browser, shell and a few other runtimes run in an isolated sandbox, web stuff renders in a live preview. Then the tutor reviews what you wrote against the step’s criteria, shows you ✓ and ✗ per criterion, and either advances you or asks the question that makes you see what’s off. Fail a step multiple times and it doesn’t dump the solution on you. It cuts the step in half.
$ codetrain start --mode repo
Session a6502084e8254276a394d5be578e9229 started (repo mode).
Plan: team
Modes: sandbox, repo
Sessions: 0/1000 this month
Usage: 0% of your monthly allowance (100% left)
Models: haiku, sonnet
Your tutor is open in the browser:
http://127.0.0.1:7341
(workspace: /tmp/codetrain-repo-v555lhi7/repo)
Tutoring is live in your browser — keep this window open. Ctrl-C to stop.
That’s repo mode, the paid tier. The tutor reads your actual repository, builds lessons out of your actual code, and at the end of a guided lesson (can run exploration only if desired) it proposes one integrated patch that lands the code you wrote onto your real branch. You review it like any other diff. Free tier does not include repo mode and drops you into sandbox practice instead: same tutor, same you-type-it rule, generated exercises from natural language.
Here is that health-check lesson, start to finish. Step 2 has you draft the probe on a scratch Dockerfile where mistakes are free:
Step 3 moves the line you wrote into the real Dockerfile, all 360-odd lines of it, in the one spot where Docker will actually honour it:
Pass the final step and the tutor offers the one targeted patch it guided you on: the diff of what you typed, applied to your working tree only after you approve it.
This is not another assistant
Don’t get me wrong. I use coding assistants daily and they’re great at their job. Their job is producing code. CodeTrain’s job is producing engineers who understand code, and those jobs basically pull in opposite directions.
Default: it types
- You describe, it writes
- Output: working code, fast
- Understanding is optional
- Great when shipping is the goal
Default: you type
- It plans tiny steps, you write them
- Output: a developer who gets it
- Understanding is graded, per step
- Great when the goal IS your team
Use both. Seriously. Let the assistant ship the sprint while CodeTrain makes sure the person accepting its diffs could have written them.
Code got cheap. Understanding didn’t. Train the part that’s still expensive.
— The CodeTrain wager
An InferHaven product
InferHaven exists because your code is yours and should stay on your hardware. CodeTrain extends the same instinct to where your code lives secondly: wetware, brains, good ol’ humans. Keep the code in-house, keep the skill in-house with it.
It’s built the way you’d expect from us. The agent runs on your machine. Sandbox lessons execute in your browser, not on a stranger’s box. Repo mode works against your local checkout. And if you’d rather run lessons through your own model account, bring your own key: Anthropic, OpenRouter, Bedrock, Vertex, or even an Ollama endpoint you host yourself!
What it costs, honestly
The free tier is real: the in-browser trainer, ten sessions a month, streaks and progress tracking, no credit card. It’s capped because every managed session costs us actual inference money.
Pro is $24/month and adds repo mode on your real projects, fair-use session limits, sync across devices, and optional BYOK. Team is $32 per seat and adds the part managers keep asking me about: a dashboard showing who’s ramping, per-seat budgets, central billing, and onboarding journeys for new hires. Enterprise is the usual conversation about SSO and code that can’t leave your network. If that’s you, sales@codetrain.ai.
Go type something
CodeTrain is live at codetrain.ai. Sign in, ask it to teach you something you’ve been faking your way around, and see how it feels to be the one controlling the keyboard again. There’s a one-minute demo on the landing page if you want to watch before you commit to the free tier’s grand total of… zero dollars.
InferHaven keeps your code yours. CodeTrain keeps the skill yours. Same haven, different cargo. The beacon is active!
— Ethan L.