Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/lvfei198401/deeplearnclaudecode/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.svg" alt="Measured on agentmods" 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 | $0.00409 | $0.00409 |
| Sonnet 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 5d 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.
- 5d 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 (2 stars, last pushed 5mo ago), licensed MIT. It adds 819 tokens to every session, about $0.0041 per session on Opus 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).