维寒 (@WeiHan)Claude Code 系统结构 中发帖

Claude Code 系统结构
整体架构
%%{init: {'theme': 'neutral'}}%%
flowchart TB
    subgraph entry[入口层]
        E1[命令行解析器]
        E2[Ink 渲染器]
        E3[并行预取]
    end
    
    subgraph core[核心层]
        C1[查询引擎]
        C2[工具类型定义]
        C3[命令注册表]
    end
    
    subgraph tools[工具系统 40+]
        T1[Bash 文件读写]
        T2[搜索 网络请求]
        T3[Agent MCP LSP]
    end
    
    subgraph commands[命令系统 50+]
   ...
 
 
Back to Top