Free course · 22 animated lessons · open source

Build software that decides

Decision models like TypeSafe's Jev, OpenAI's Decisions API and Cloudflare's Clef answer typed questions with probabilities, in a quarter of a second, for a fraction of a cent. Learn what to ask them, which numbers to trust, and where they break, from 199 sources and 14,318 API calls we ran ourselves.

  • 82 min of lessons
  • 199 sources
  • 0 sign-ups

Not a video file: every lesson is animated live by code in your browser.

For developers

Replace fragile prompt-and-parse calls with typed answers your code can branch on, and know which probabilities to trust.

For tech leads

Where decision models fit next to code and LLMs, how to evaluate them on your own data, and where they fail.

For your agent

Install the course as a skill, and your coding agent designs decision-model integrations the way the course teaches.

The course

Your progress is saved in this browser.
Module 4

Composing judgments

Small questions, combined in code.

12Decompose: many small questionsTypeSafe calls it the most important concept in its guide: break one broad judgment into narrow questions and combine the answers in code. Here is what decomposition buys you (reasons, control, per-signal thresholds), why decision science has recommended it for seventy years, and the case where it made things worse.✓4 min13Ask everything at onceQuestions about the same state belong in one request: they are evaluated in parallel and independently, so extra questions add a few tokens and almost no time. Here is what we measured with 13 questions, why you should ask speculative questions you might not need, and the few cases where a second request is genuinely warranted.✓3 min14Route and cascadeOne fast decision in front of expensive things. Here is intent routing (code, a specialist model, or a person), the cascade (cheap model first, escalate only the uncertain), how to tune it so it matches a strong model at a fraction of the cost, and the prompt-cache gotcha that turned one developer's model router into a money loser.✓4 min15Select, don't generateA decision model can't write a value, but most extraction is really selection: the value is already in the text. Let code find the candidates and let the model pick one, then copy it verbatim. Here is that pattern for phone numbers, dates, search reranking, line-level search and deep taxonomies.✓3 min16Verify and guardDecision models are cheap and fast enough to check everything: every citation an LLM writes, every message going in and out, every extracted field. Here is a citation check, a one-request guardrail screen, why two independent checks beat one, and why none of this is a security boundary.✓4 min
Module 6

Shipping it

Limits, evaluation, responsibility, and a full build.

We didn't just read about it

Measured for this course

Vendor numbers are upper bounds, so we ran our own tests from a server in Brazil. A few results:

96.3%right on the half of 3,080 banking messages where Jev said ≥ 0.99 (80.1% overall)
0.27 sfor 13 questions in one request, vs 3.3 s as 13 separate calls
0 of 2,116answers above 0.9 changed when we reversed the 77 options; 36% of those under 0.5 did
Everything we measured →
Your agent can take this course too

One course, two students

The lessons double as agent skills. Install them and Claude Code, Codex, Cursor or any agent that reads skills will design decision-model calls the way the course teaches: typed questions, one request, thresholds from costs, code for the arithmetic.

Agent setup →
$ npx skills add Haple/system-one

# or point any agent at the course
$ curl https://learn-system-one.pages.dev/llms.txt

Built from the people building it

The TypeSafe, OpenAI, Cloudflare and AWS docs, 58 talks and podcasts, 18 papers, and essays and benchmarks from independent testers. See all 199 sources →

Daniel SamDaniel KahnemanStrands Decider READMETypeSafe AIEmil LindforsDesi IvanovaAmir RafeSubasish DasOlivier SibonyBarry ZhangDiogo AlmeidaHamel HusainSimon WillisonShreya ShankarMike RamosIndyDevDanRyan Porter

Not affiliated with or endorsed by any of the people or companies cited. Quotes link to the original source, at the exact moment for talks.

Questions

Is it really free?

Yes. No sign-up, no paywall, no tracking cookies. The content is CC BY 4.0 and the code is MIT on GitHub.

Which decision models does it cover?

TypeSafe's Jev, OpenAI's Decisions API, Cloudflare's Clef and Clef-flash, and AWS's open Strands Decider. They share one request shape, so the lessons apply to all of them. Most examples use Jev, because it's the one we measured most.

Do I need to know machine learning?

No. If you can call an API and write an if statement, you can follow the course. The statistics you need (calibration, thresholds, margins of error) are explained from scratch.

Are these videos?

Sort of. Each lesson is a scene graph rendered live by JavaScript and synced to narration, so it's tiny, crisp at any size, scrubbable and searchable. The narration is an AI voice. Every lesson also has a full transcript and a Markdown version.

Who made this, and how?

It was researched, measured and produced with AI agents. Sources were distilled into quote-checked insights, every number shown on screen comes from a source or from our own runs, and the lessons are animated by code. Read how it was made.

I found a mistake.

Please open an issue. Every claim links to its source, so corrections are easy to check.