Every pattern, prompt, tool, and safety check inside Claude Code, documented, searchable, and explained.
Browse the knowledge base
Go from zero to a working agent mental model (the loop, one tool, and termination) in a single page.
How to build a production-ready agent tool from scratch: schema, concurrency class, behavioral flags, and dispatch wiring.
How to keep your agent's context window from overflowing. Covers recognizing the symptoms, applying cheap trims before expensive summarization, and tracking token budgets.
How to connect an external MCP server and make its tools available to your agent. Covers transport selection, tool bridging, and dispatch integration.
How to split a single agent into a coordinator and specialized workers. Covers the delegation pattern, context isolation, tool partitioning, and result synthesis.
How to add a permission layer to your agent. Covers the cascade model, permission modes, bypass-immune checks, and session grants.
How to find out what your agent is doing wrong. Covers structured event logging, cost tracking, session tracing, and the signatures of common failure patterns.
How to add streaming to your agent loop so users see output as it generates. Covers typed events, the producer-consumer pipeline, and backpressure handling.
How to add lifecycle hooks to your agent without modifying core loop code. Covers the four execution modes, condition-based filtering, and error isolation.
How the core two-state machine drives every agent system, from the generator pattern through graceful cancellation, termination strategies, and error recovery.
How tools are defined, registered, and dispatched in agent systems, covering concurrency partitioning, execution lifecycle, behavioral flags, dynamic tool sets, and the production patterns that make tool dispatch safe at scale.
How the static/dynamic boundary in agent prompts affects cost, latency, and consistency, with the full assembly pipeline, five-level priority chain, memory injection, and production insights for cache management.
How agent systems manage what the LLM sees, covering compaction pipeline internals, fact extraction subsystem, long-term storage with a closed taxonomy, and production insights for running memory management at scale.
How agent systems handle failure through a tiered escalation ladder, retryability classification, query-source partitioning, and a tool error pipeline that keeps the agent loop running even when individual tools fail.
How a six-source permission cascade, five permission modes, and three resolution handlers keep agents within bounds, with denial tracking, shadow rule detection, and multi-agent permission forwarding.
How event-driven streaming delivers agent results as they happen, through typed events, producer-consumer pipelines, priority-based dispatch, capture/bubble phases, and a screen-diffing output model.
Why production multi-agent systems use delegation (not distribution): one coordinator decides what to do, specialist workers decide how. Covers spawning backends, file-based mailbox communication, session reconnection, and production trade-offs.
How to build a scalable command registry that supports 100+ commands through metadata-first registration, lazy loading, and multi-source merging.
How typed interceptors modify agent behavior at 27+ lifecycle events without touching core loop code: four execution modes, condition syntax, and error isolation.
How the Model Context Protocol turns external services into agent tools: transport selection, tool bridging, and connection lifecycle management.
Three independent observability layers for agent systems: structured event logging, per-model cost tracking, and session tracing with span hierarchy, each answering a different debugging question.
44 curated tools across 5 categories, hand-picked from the AI coding landscape
Terminal-native coding agents and assistants
Integrated development environments with built-in AI agents
Libraries and platforms for building AI agents and pipelines
Design-to-code tools and AI-powered visual editors
Claude Code skills, plugins, and CLI extensions we use daily
Click the chat widget in the bottom-right corner: it has the full knowledge base loaded and can explain any concept.