{"repo":"VILA-Lab/Dive-into-Claude-Code","free":true,"listed":false,"github":"https://github.com/VILA-Lab/Dive-into-Claude-Code","clone":"git clone https://github.com/VILA-Lab/Dive-into-Claude-Code.git","description":"A Systematic Analysis and Discussion of Claude Code for Designing Today's and Future AI Agent Systems","language":null,"stars":2061,"topics":["claude","claude-code"],"license":null,"category":"ai-agents","readme_excerpt":"Dive into Claude Code English 中文 A comprehensive source-level architectural analysis of Claude Code (v2.1.88, 1,900 TypeScript files, 512K lines of code), combined with a curated collection of community analyses, a design-space guide for agent builders, and cross-system comparisons. [!TIP] TL;DR -- Only 1.6% of Claude Code's codebase is AI decision logic. The other 98.4% is deterministic infrastructure -- permission gates, context management, tool routing, and recovery logic. The agent loop is a simple while-loop; the real engineering complexity lives in the systems around it. This repo dissects that architecture and distills it into actionable design guidance for anyone building AI agent systems. --- Table of Contents From Our Paper - 🌟 Key Highlights - 📖 Reading Guide - 🏗️ Architecture at a Glance - 🧭 Values and Design Principles - 🔄 The Agentic Query Loop - 🛡️ Safety and Permissions - 🧩 Extensibility - 🧠 Context and Memory - 👥 Subagent Delegation - 💾 Session Persistence Beyond the Paper - 🛰️ New Signals in the Agent Design Space - 🛠️ Build Your Own AI Agent: A Design Guide - ⚖️ Cross-System Comparison: Claude Code vs OpenClaw vs Hermes-Agent - 🔎 Find Resources by Design Question - 🌐 Community Projects & Research - 🚀 Other Notable AI Agent Projects - 🤝 Contributing - 🔖 Citation --- Key Highlights - 98.4% Infrastructure, 1.6% AI -- The agent loop is a simple while-loop; the real complexity is permission gates, context management, and recovery logic. - 5 Valu","default_branch":null,"files":null,"tree":[],"storefront":"/r/VILA-Lab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/VILA-Lab/Dive-into-Claude-Code/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}