Claude Code config
Claude Code Learning
基于对 Claude Code 源码的系统性分析,从 11 个维度拆解其架构设计,涵盖 Agent Loop、Context 管理、Tool 调用、Memory、权限安全、多智能体协作、可观测性等核心模块
Install
git clone https://github.com/wisdom-pan/claude-code-learning.gitFrom the README
Claude Code 源码深度解读 基于对 Claude Code 源码的系统性分析,从 11 个维度拆解其架构设计,涵盖 Agent Loop、Context 管理、Tool 调用、Memory、权限安全、多智能体协作、可观测性等核心模块。 项目简介 本项目是对 Claude Code(Anthropic 的终端 Agent 应用)的源码深度解读。通过系统性的源码分析,揭示其从 Agent Loop 到多智能体编排的完整架构设计。 Claude Code 是一个基于 TypeScript 的终端 Agent 应用,构建在 Bun 运行时之上,采用 React + Ink 渲染 TUI。其架构设计遵循分层解耦、流式驱动、不可变状态三大原则。 文档导航 核心模块解读 架构全景 核心设计理念 1. 流式优先:从 Agent Loop 到 Tool 执行,全部采用 async generator 2. 安全默认:Tool Builder 的 fail-closed 设计、五层权限决策 3. 不可变状态:DeepImmutable 类型约束 + 函数式更新 4. 模块化编排:43 个工具通过统一接口和编排器协同工作 5. 多智能体层次:从 Subagent 到 Swarm 的渐进式复杂度 6. 可观测性内建:22 种 Hook + OpenTelemetry + Perfetto 7. Feature Flag 驱动:编译时死代码消除 + 灰度发布 关键指标 源码来源 - src/ - Claude Code 源码副本 - src.zip - 源码压缩包 - analysis/ - 原始分析文档 如何使用 1. 从 整体架构 开始了解目录结构 2. 按顺序阅读各模块文档,或跳转到感兴趣的模块 参考 * https://github.com/liuup/claude-code-analysis?tab=readme-ov-file * https://x.com/Fried_rice/status/2038894956459290963 * https://code.claude.com/docs/en/how-claude-code-works
Details
- Repository
- wisdom-pan/claude-code-learning
- Type
- Config & memory
- Language
- TypeScript
- License
- Apache-2.0
- Last updated
- 10 July 2026
FAQ
What is Claude Code Learning?
基于对 Claude Code 源码的系统性分析,从 11 个维度拆解其架构设计,涵盖 Agent Loop、Context 管理、Tool 调用、Memory、权限安全、多智能体协作、可观测性等核心模块 It is a config for Claude Code, from wisdom-pan/claude-code-learning on GitHub.
How do I install Claude Code Learning?
Clone wisdom-pan/claude-code-learning from GitHub and follow the setup steps in its README.
Is Claude Code Learning popular?
wisdom-pan/claude-code-learning has 93 GitHub stars and 16 forks. It was last updated on 10 July 2026.
More config & memory
Claude Imprint
91Qizhan7/claude-imprint
Self-hosted AI agent system built on Claude Code. Multi-channel chat, persistent memory with semantic search, scheduled tasks, and a single-file dashboard.
Clausona
57larcane97/clausona
Switch between multiple Claude Code and OpenAI Codex CLI accounts with one command. Skills, hooks, plugins and settings stay shared, and conversation history can be too. clausona can also pick the account with quota left for each run, and show the skills, MCP servers and hooks every account loads.
Macrodata
120ascorbic/macrodata
Give Claude Code and OpenCode persistent, self-refining memory and autonomous scheduling.
Dot Claude
83PaulRBerg/dot-claude
PRB's Claude Code config
Atomic Claude
114damusix/atomic-claude
Code graphs, wikis, and research-backed agentic coding. Deterministic tools for nondeterministic workflows, in one opinionated Claude Code config.
Contextual Memory Virtualisation
83IngressionLabs/contextual-memory-virtualisation
Contextual Memory Virtualisation (CMV): git-like snapshots, branching and trimming for AI coding agent context. Demonstrated with Claude Code.
Browse the most popular Claude Code mods, all config & memory, or the skills and MCP server directories.