Borrowing it
Nothing to install: this file belongs to lvfei198401/DeepLearnClaudeCode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lvfei198401/DeepLearnClaudeCode/main/CLAUDE.mdgit clone --depth 1 https://github.com/lvfei198401/DeepLearnClaudeCodeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/lvfei198401/deeplearnclaudecode/claude-md)<a href="https://agentmods.dev/instructions/lvfei198401/deeplearnclaudecode/claude-md"><img src="https://agentmods.dev/badge/instructions/lvfei198401/deeplearnclaudecode/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/lvfei198401/deeplearnclaudecode/claude-md"><img src="https://agentmods.dev/badge/instructions/lvfei198401/deeplearnclaudecode/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00819 | $0.00819 |
| Opus 5.5 | $0.00328 | $0.00328 |
| Sonnet 5.5 | $0.00164 | $0.00164 |
| Haiku 4.5 | $0.00082 | $0.00082 |
Grade A, and why
DeepLearnClaudeCode CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
项目概述
本仓库是从 @anthropic-ai/claude-code npm 包(版本 2.1.88)的 source map (cli.js.map) 中还原的 TypeScript 源码,仅供研究学习用途。源码版权归 Anthropic 所有。
仓库结构
package/— 原始 npm 发布包内容(cli.js为打包后的单文件入口,cli.js.map为 source map)extract-sources.js— 从 source map 提取源码的 Node.js 脚本restored-src/— 还原出的源码(4756 个文件,含 1884 个.ts/.tsx文件)restored-src/src/— Claude Code 主应用源码restored-src/node_modules/— 还原出的依赖源码
详细文件清单.md—restored-src/src/的完整目录树(需要查找具体文件时参考此文件)
常用命令
# 重新提取源码(需要 source-map 包)
node extract-sources.js
# 统计代码行数
python count_lines.py
本仓库不包含构建/测试/lint 脚本,因为是从打包产物逆向还原而非原始开发仓库。
核心架构 (restored-src/src/)
入口:main.tsx — CLI 启动入口,使用 Commander.js 解析命令行参数,通过 React (Ink) 渲染终端 UI。
工具系统 (tools/):每个工具一个目录,对应 Claude 可调用的能力(BashTool、FileEditTool、GrepTool、AgentTool、WebFetchTool 等 40+ 个)。工具接口定义在 Tool.ts。
命令系统 (commands/):斜杠命令实现(/commit、/compact、/config、/help 等),注册在 commands.ts。
服务层 (services/):
api/— Anthropic API 通信、bootstrap 数据mcp/— MCP (Model Context Protocol) 服务器管理与工具调用oauth/— OAuth 认证流程analytics/— GrowthBook 特性开关、遥测lsp/— Language Server Protocol 集成compact/— 上下文压缩策略policyLimits/— 策略与速率限制
多 Agent 协调 (coordinator/):子 Agent 编排与协作模式。
状态管理:
state/— 全局状态定义context/+context.ts— React Context 提供系统/用户上下文bootstrap/state.ts— 启动阶段状态初始化
其他关键模块:
hooks/— 用户自定义 hook 执行(响应工具调用等事件的 shell 命令)skills/— 技能系统(可扩展的预定义提示词模板)plugins/— 插件系统query/+QueryEngine.ts— 查询引擎bridge/— 桌面应用与 Web 端的通信桥接层remote/— 远程会话管理utils/— 大量工具函数(git 操作、模型选择、认证、环境检测、设置管理等)vim/— Vim 模式键绑定voice/— 语音交互支持
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 64 lines · 819 tokens per session scan A eec64d7850e7
DeepLearnClaudeCode CLAUDE.md is an instructions file published in the GitHub repository lvfei198401/DeepLearnClaudeCode (3 stars, last pushed 7mo ago), licensed MIT. It adds 819 tokens to every session, about $0.0033 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
DeepLearnClaudeCode CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| DeepLearnClaudeCode CLAUDE.mdlvfei198401/DeepLearnClaudeCode | Instructions file | 3 | 7mo ago | MIT | A | 819 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,086 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 281k | today | MIT | A | 4,335 | Codex, OpenCode |