Yogan Labs
Projects / bits

Free learning app

Live

bits. Learn AI by typing to it.

A free learning app that takes you from what a token is to shipping an agent. Each lesson takes five to eight minutes, and you move through it by writing real prompts to Claude and getting coached on them.

  • Updated Nov 3, 2026
  • 6 technologies
  • 103 lessons
  • Public repo
Details
The bits home page
bits.yogan.dev, captured Nov 2026

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

  1. 01
    AGENTS.mdThe lesson quality bar and how the whole app fits together.
  2. 02
    apps/web/app/runs/model.tsThe one module that talks to the model.
  3. 03
    apps/web/app/runs/grade.tsThe layered grader for prompt exercises.
  4. 04
    apps/web/app/runs/judge.tsThe LLM judge that marks each rubric line.
  5. 05
    apps/web/app/content/compile/lesson.tsHow a Markdown lesson becomes a page.
  6. 06
    content/coursesEvery lesson, as Markdown you can read.
  7. 07
    docs/decisions/064-coached-prompts.mdWhy prompts are coached, not just run.

Run it

Terminal
pnpm ipnpm db:migrate:local && pnpm db:seed:localpnpm devpnpm test && pnpm typecheck

Honest status

Live

Live and free, deployed from CI on every push. The MCP course is marked coming soon and has no lessons yet.

Answers the same questions