Borrowing it
Nothing to install: this file belongs to Xiaxia1997/mini-claude-code-python. 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/Xiaxia1997/mini-claude-code-python/main/AGENTS.mdgit clone --depth 1 https://github.com/Xiaxia1997/mini-claude-code-pythonWrote 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/xiaxia1997/mini-claude-code-python/agents-md)<a href="https://agentmods.dev/instructions/xiaxia1997/mini-claude-code-python/agents-md"><img src="https://agentmods.dev/badge/instructions/xiaxia1997/mini-claude-code-python/agents-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/xiaxia1997/mini-claude-code-python/agents-md"><img src="https://agentmods.dev/badge/instructions/xiaxia1997/mini-claude-code-python/agents-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.00608 | $0.00608 |
| Opus 5.5 | $0.00243 | $0.00243 |
| Sonnet 5.5 | $0.00122 | $0.00122 |
| Haiku 4.5 | $0.00061 | $0.00061 |
Grade A, and why
mini-claude-code-python AGENTS.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 1mo 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
Mini Claude Code Python 协作规则
项目目标
这个仓库是面向开源读者的逐章教程:用 Python 从小到大实现一个 Claude Code 风格的 coding agent。每章都应该同时提供:
- 一篇可独立阅读的中文教程;
- 一个独立可运行的
examples/chapter-XX/参考实现; - 覆盖本章关键行为的自动化测试;
- 与 README、版本号、tag 进度一致的发布记录。
默认语言与风格
- 项目交流必须使用中文,包括状态更新、问题确认、实施说明和最终总结。
- 面向外部读者的教程正文默认使用中文;英文 README 只做入口与摘要,不替代中文教程。
- 教程面向外部读者,避免出现本机用户名、私有路径、未解释的内部项目名。
- 文档中的示例路径使用本仓库通用路径,例如
examples/chapter-08/agent.py。 - 代码块使用 ASCII 引号和标点,除中文正文外避免不必要的 Unicode 符号。
代码来源边界
- 不从旧参考仓库复制实现代码。
- 可以把旧参考仓库当作章节主题、需求清单和概念参考,但本仓库的代码必须按当前项目结构重新实现。
- 需要描述外部 API 行为时,优先用官方文档或本仓库测试验证,不凭旧教程或记忆下结论。
章节一致性要求
- README、
chapters/*.md、examples/chapter-XX/*.py、tests/*.py必须互相对齐。 - 教程里声称“已实现”的函数、命令、文件和行为,必须能在对应 example 或测试中找到。
- 每章 example 应独立运行,不依赖后续章节目录。
- 前一章没实现的能力不能在后一章写成“早已实现”;如果调整了落点,要同步修正文档。
- 发现教程和代码不一致时,优先修正为当前仓库真实状态,再继续扩展。
测试与发布
- 修改行为前先补或更新测试,按 TDD 做 red/green。
- 发布前至少运行
.venv/bin/python -m pytest -q。 - 逐章发布时,每章完成后更新
pyproject.toml版本、README 进度和 tag 列表。 - tag 命名沿用现有格式:
v0.8-memory、v0.9-skills、v0.10-plan-mode、v0.11-sub-agent。 - push 代码或 tag 属于外部发布动作,执行前需要单独确认。
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.
- 1mo ago First seen · 41 lines · 608 tokens per session scan A a4a2751b6040
mini-claude-code-python AGENTS.md is an instructions file published in the GitHub repository Xiaxia1997/mini-claude-code-python (25 stars, last pushed 3mo ago), licensed MIT. It adds 608 tokens to every session, about $0.0024 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-30.
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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 copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.