Directory · Coding agents
How Claude Code Works
Chinese/English documentation analyzing Claude Code internals: agent loop, context compression, tools, permissions, multi-agent.
★ 3,850 stars · last updated 2026-08-17 · Free, open source · View on GitHub
Best for
- Developers building their own coding agents who want an architecture reference
- Claude Code users wanting to understand hooks, memory, skills and CLAUDE.md customization
- Readers interested in agent safety and permission design
Our take
A documentation project of 21 chapters, primarily in Chinese with an English README and an online docs site, actively updated as of mid 2026. Early chapters are based on a leaked source snapshot from around v2.1.6x, while later chapters use black-box reverse engineering, so accuracy is not guaranteed. The authors state it is unaffiliated with Anthropic and redistributes no source code. A companion repo, claude-code-from-scratch, offers a clean-room implementation tutorial.
Similar coding agents
- Open Interpreter: Terminal coding agent forked from OpenAI Codex, tuned to emulate provider harnesses for low-cost open models like Kimi K3 and GLM.
- AI Agents in Depth (深入理解 AI Agent): Open-source book by Bojie Li on AI agent design and engineering, with 10 chapters and 109 companion experiments in Python.
- Codewhale: Open-source Rust terminal coding agent that works with 40+ model providers or local models, with approvals, receipts and undo.
- Reasonix: Open-source coding agent for terminal, desktop, browser and editor that reads code, edits files and runs commands with any OpenAI-compatible model.
- DSH Go: Unofficial Android client for DeepSeek Harness that runs the agent on-device or remotely controls DSH on your computer.
- Qwen Code: Open-source terminal coding agent with IDE, desktop, web, and chat interfaces, supporting Qwen, OpenAI, Anthropic, Gemini, and local models.