#408 · Primary category: Education & Research

claude-code-from-source

Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps

Project last updated:04/04/26

GitHub Stars

2.8K

Forks

755

Contributors

1

License

Other

Why we included this project

This is a full-length technical book rather than a software tool, and that is what makes it useful. It takes a production AI coding agent like Claude Code and studies it from the inside, turning what it finds into 18 chapters. If you build agentic systems for a living, the patterns it covers, such as speculative tool execution, safety-partitioned batching, fork agents that share prompt cache prefixes, four-layer context compression, and slot-reservation for output caps, are the kind of design details you usually pick up only after shipping something slow and expensive. Each chapter pairs a narrative for technical leaders with deeper sections for implementers, and closes with an 'Apply This' section full of patterns you can adapt to your own stack. The repository deliberately contains no proprietary code; every code block is original pseudocode illustrating the architecture. For engineers, team leads, and anyone curious how a widely used coding agent actually works under the hood, this is a practical self-study resource on agent internals.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category