
The problem
Learning to build with AI usually means a long video course or a paywall. bits gives you short lessons where you practice on a live model instead of reading about it.
Who it is for
The engineer on the go who wants the shortest path from having heard of LLMs to building with them.
What you will learn
- Grade prompts in layers: cheap code checks first, then an LLM judge that marks each rubric line while the server decides the pass.
- Screen for injection aimed at the grader, and cap runs per user, per IP and per day.
- Keep every model call in one module, with the SDK loaded lazily and canned output when the model cannot run.
- Compile Markdown courses to JSON, version them in R2 and D1, and check code snippets against the Klippy repo at each tag.
- Run CI that migrates, deploys, publishes content and smoke tests, with previews on their own database that send no mail.
- Add email codes, OAuth and passkeys, plus progress, badges and certificates.
The AI parts
- Claude Haiku 5.5 through Cloudflare AI Gateway, using the Anthropic SDK.
- The same model runs the sandbox and the coach’s judge.
- Only temperature 1.0 runs live; other temperatures show labelled examples.
- Remix 3
- Cloudflare Workers
- D1
- R2
- AI Gateway
- Claude
Open these first
- 01
AGENTS.mdThe lesson quality bar and how the whole app fits together. - 02
apps/web/app/runs/model.tsThe one module that talks to the model. - 03
apps/web/app/runs/grade.tsThe layered grader for prompt exercises. - 04
apps/web/app/runs/judge.tsThe LLM judge that marks each rubric line. - 05
apps/web/app/content/compile/lesson.tsHow a Markdown lesson becomes a page. - 06
content/coursesEvery lesson, as Markdown you can read. - 07
docs/decisions/064-coached-prompts.mdWhy prompts are coached, not just run.
Run it
pnpm ipnpm db:migrate:local && pnpm db:seed:localpnpm devpnpm test && pnpm typecheckHonest status
Live
Live and free, deployed from CI on every push. The MCP course is marked coming soon and has no lessons yet.