Finished this one? 0 / 61 Labs done
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Labs
- The Loop: Agent Loop SimulatorDon't read about the agent loop — run it. Step a model through plan → act → observe: it thinks, calls a tool, reads the result, and loops until it can answer. Watch the context window fill turn by turn and compaction fold old turns away before it overflows — the beating heart of every AI harness, made playable, with theory and a quiz.Read →
- The Break-In: Prompt InjectionDon't read about prompt injection — try to pull one off. Feed a helpful agent a booby-trapped message that tries to steal its secret or hijack its tools, and watch it get owned. Then switch on real defenses — instruction hierarchy, input sanitizing, output filtering, tool permissions — and watch the same attack bounce. The #1 security risk in LLM apps, made playable, with theory and a quiz.Read →
- The Loop Designer: Outer LoopsDon't read about loop engineering — break a loop, then fix it. An agent must migrate 8 files overnight, unattended; you design its outer loop. Toggle the hard cap, the independent verifier, and the external memory, hit Run, and watch the classic failures fire live: the $500 runaway, groundhog-day amnesia, and victory declared on broken code. Four scenarios, one lesson — same agent, different loop, opposite outcomes.Read →
- The MCP PlaygroundDon't read about MCP — watch a model use tools through it. The Model Context Protocol is a standard way to connect an AI host to external tools and data: servers advertise tools with schemas, the host discovers them, the model decides which to call and with what arguments, the server runs the tool, and the result flows back for the model to answer. Step through a real request — get the weather, then save it to notes — and see the whole discover, call, result, answer loop, with theory and a quiz.Read →
- All At Once — Text Diffusion DecodingDon't read about diffusion LLMs — run one. An autoregressive model writes one token per pass; a text-diffusion model starts from a fully masked block and refines the whole thing in parallel over K denoising steps, emitting B/K tokens per pass. Watch a block go from ██████ to clean text, then tune the block size and step count to feel the speed-versus-coherence dial — and see why text diffusion (masking, discrete) is not image diffusion (Gaussian noise, continuous). Interactive, with theory and a quiz.Read →
- The Million-Token Bill — Sparse AttentionDon't read about long-context attention — run the numbers. Dense attention caches a key/value per token and scores every query against all of them, so at a million tokens memory grows linearly and compute grows with the square. Pull the two levers of compressed sparse attention — compress each token's K/V to a latent, and select only the top-k blocks per query — and watch the KV cache and attention FLOPs collapse, with the two savings multiplying (as in DeepSeek-V4). Drag the context to a million and see the ratios fall. Interactive, with theory and a quiz.Read →