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/xiaxia1997/mini-claude-code-python/agents-mdgit clone --depth 1 https://github.com/Xiaxia1997/mini-claude-code-pythonWhat 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 | $0.00608 | $0.00608 |
| Opus 5 | $0.00304 | $0.00304 |
| Sonnet 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 yesterday.
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.
- yesterday 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 (22 stars, last pushed 1mo ago), licensed MIT. It adds 608 tokens to every session, about $0.0030 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-30.
Other instructions, from other repositories
cocoindex-code CLAUDE.md
Instructions for cocoindex-io/cocoindex-code, covering claude.md, build and test commands, architecture, process model and key layers.
LLM-dev-demo AGENTS.md
Instructions for A3RDLab/LLM-dev-demo, covering agents.md, 仓库性质, 环境与密钥约定, 依赖管理 and 常用命令.
claude-code-handbook AGENTS.md
Instructions for vitoworleone/claude-code-handbook, covering agents.md — claude-code-handbook 仓库维护指南, 1. 项目定位, 2. 目录结构规范, 2.1 顶层目录 and 2.2 命名规范.
agent-smith CLAUDE.md
Instructions for holgerleichsenring/agent-smith, covering agent-smith — ai agent instructions, context files (read in this order), phase directory structure, experiential memory (remember / recall) and minting a phase id.
python-cheatsheet copilot-instructions.md
Copilot instructions for labex-labs/python-cheatsheet, covering python cheatsheet - ai coding assistant instructions, project overview, architecture & key patterns, content structure and routing & layout system.
python-cheatsheet GEMINI.md
Gemini CLI instructions for labex-labs/python-cheatsheet, covering gemini customization file, project overview, technologies, coding style and conventions and routing & layout system.