Claude Code 交互式解读
当你在 Claude Code 里输入一条消息时,背后到底发生了什么? agent loop、50+ tools、多 agent orchestration 与未发布特性,全部直接映射自源码。
0+
文件
0K+
代码行数
0+
Tools
0+
Commands
01
Agent Loop
从按键输入到响应渲染,按源码一步步走完整个流程。
Watch what happens when you send a message to Claude Code
1User Input
src/components/TextInput.tsxUser types a message or pipes input through stdin
● claude-code
$
Keyboard input comes from Ink's TextInput component. In non-interactive mode, it reads from piped stdin instead.
1/11
02
架构探索图
点击源码树,探索里面都有什么。
Tools & Commands
Core Processing
UI Layer
Infrastructure
Support & Utilities
Personality & UX
03
Tools 体系
按用途整理 Claude Code 可调用的内置 Tools。
File Operations
6 tools
Execution
3 tools
Search & Fetch
4 tools
Agents & Tasks
11 tools
Planning
5 tools
MCP
4 tools
System
11 tools
Experimental
8 tools
Click a tool to see details and source code
04
Command 目录
按用途整理 Claude Code 里可用的全部 slash commands。
Setup & Config12
Daily Workflow24
Code Review & Git13
Debugging & Diagnostics23
Advanced & Experimental23
Click a command to see details and source code