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 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 Crowded Desk: Context RotDon't read about context rot — cause it. Give a model a bigger window and it should get smarter, right? Bury one crucial fact in a wall of filler and find out. Slide the needle from top to bottom to watch it sink in the middle, pour in filler to watch recall rot as the desk fills, then toggle retrieval, repositioning and compaction to claw it back. Three acts — lost in the middle, the rot curve, fight back with context engineering.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 →
- The TokenizerA language model can't read words — it reads tokens. Watch your text shatter into sub-word chunks, race character vs word vs sub-word tokenizers head-to-head, then build Byte-Pair Encoding by hand: merge the most frequent pair over and over to grow a vocabulary and shrink the sequence. Five acts — shatter it, race three tokenizers, build BPE, tune the vocab size, and feel why 'strawberry' trips up an LLM.Read →
- The Dice Loader: SamplingDon't read about temperature, top-k, and top-p — drive them. A language model turns logits into a probability over the next token, then rolls; three dials load those dice. Slide temperature to sharpen or flatten the odds, clamp the tail with top-k or top-p, and watch the bar chart renormalize live — then hit Sample and roll. See exactly why an LLM sounds robotic at low temperature and unhinged at high.Read →