A Code-Level Walkthrough of Architecture, Execution, and Design
The Agentic Loop - How a while(true) loop drives the entire system. The model calls tools, reads results, and decides whether to continue or stop. You'll see the exact control flow that turns a single prompt into 15-30 autonomous steps.
- Engineers building AI-powered tools who want a complete, working reference architecture
- Developers curious about what happens inside tools like Claude Code, Cursor, and GitHub Copilot
- Contributors to OpenCode who need a deep understanding of the codebase
- Technical leaders evaluating AI agents who want to understand the engineering behind the capabilities
This isn't a tutorial or a conceptual overview. Every chapter points to specific source files, traces concrete execution paths, and references the project's test suite as executable documentation. Diagrams show data flow through real functions. Code excerpts are annotated with the design decisions behind them.