Cookbook
Cookbook works best when you want to learn by running, changing, and validating. It is not primarily a concept-first guide. It is a collection of runnable patterns built around real problems: you pick the example closest to your task, get it running, and then replace the data, tools, and constraints with your own.
Claude Code, Quickstarts, or Cookbook, check Learning Paths first.When this section is most useful
- you want to validate whether a capability pattern is worth building
- you want to compare implementation paths instead of only reading abstract advice
- you already have a product idea and need a modifiable starting point
- you want experiments to gradually become repeatable engineering practice
A better way to use cookbook material
Start from one problem
Do not begin with “I should study the whole example library.” Begin with the problem in front of you: retrieval, tool use, agent orchestration, multimodal input, output control, or evaluation.
Run a small example before replacing pieces
In the first pass, your job is to understand the main loop, not to rewrite everything immediately. Make the example run, then replace data, prompts, tools, and constraints one layer at a time.
Add validation as soon as you start adapting
The moment you move from “reading an example” to “turning it into my own feature,” add a small evaluation set, assertions, or regression checks. Otherwise, it becomes easy to keep a notebook running without knowing whether quality got better or worse.
What to prepare first
Basic setup
- Python 3.11+
- a working Anthropic API key
- safe, repeatable test data
The most common setup commands
uv sync --all-extras
cp .env.example .env
make test-notebooksWhen you are ready to execute notebooks for real, add:
make test-notebooks-execChoose a path by problem type
- need grounded answers over documents or data: see RAG & Retrieval
- need model-driven tool use and automation: see Tool Use
- need multi-step task decomposition and coordination: see Agent Patterns
- need image, screenshot, or document understanding: see Multimodal
- need tighter control over structure, citations, or cost: see Output Control
- need quality baselines and regression checks: see Evals & Testing
- need to connect examples to existing systems: see Integrations & Ops
Suggested reading order
One principle that matters more than it looks
The value of an example is not that it decides the answer for you. The value is that it gives you a fast path to testing and refining your own implementation. The most useful question is usually not “what else can this example do?” but “which path should I borrow first for the problem I actually have?”