Borrowing it
Nothing to install: this file belongs to jin-bo/agentao. 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/jin-bo/agentao/main/CLAUDE.mdgit clone --depth 1 https://github.com/jin-bo/agentaoWrote 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/jin-bo/agentao/claude-md)<a href="https://agentmods.dev/instructions/jin-bo/agentao/claude-md"><img src="https://agentmods.dev/badge/instructions/jin-bo/agentao/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/jin-bo/agentao/claude-md"><img src="https://agentmods.dev/badge/instructions/jin-bo/agentao/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.11259 | $0.11259 |
| Opus 5.5 | $0.04504 | $0.04504 |
| Sonnet 5.5 | $0.02252 | $0.02252 |
| Haiku 4.5 | $0.01126 | $0.01126 |
Grade C, and why
agentao CLAUDE.md scanned grade C with 2 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 8d 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.
Cloud metadata endpointhighServer-side request forgery
One request to 169.254.169.254 can return temporary IAM credentials.
The engine does **no file I/O**. `embedding/permission_loader.py::load_permission_rules()` reads `(rules, sources)` and passes them in. The default presets allow common docs domains and deny SSRF targets (`localhost`, `1 Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **For batch commands, use `capabilities/process.py::run_captured()`, not `subprocess.run`** (PRs #73–#75). How it starts
The opening of the file, as written. The whole thing — 494 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This file keeps the rules and invariants that are easy to break. The reasons for them are in the linked design docs, in module docstrings, and in the cited PRs and issues. Read those before you change a rule.
Package Management
Always use uv for package management. Do not use pip:
uv sync # Install dependencies
uv add package-name # Add a new dependency
uv run python script.py # Run Python scripts
uv run agentao # Run the CLI
- Core dependencies are in
[project.dependencies]. UI, fetch and tokenization dependencies are opt-in extras. Both wire SDKs (openai,anthropic) are core, imported lazily. - A bare
pip install agentaoinstalls the library only.pip install 'agentao[cli]'is the smallest interactive CLI. - The
[pdf]/[excel]/[image]/[crypto]/[google]extras were removed (docs/design/optimization-opportunities-review.mdT1.1).
Running
./run.sh # Quick start (interactive)
uv run agentao # Interactive CLI
uv run python -m agentao # Same, via module entrypoint
uv run agentao run --prompt "..." # Non-interactive automation (M0)
uv run agentao --acp --stdio # ACP server (Issue 12)
agentao run is the canonical non-interactive surface. Its exit codes are 0 ok, 1 runtime, 2 invalid usage, 3 permission/interaction, 4 max iterations, 130 interrupted. See agentao/cli/run.py and docs/reference/configuration.md. agentao -p "..." is a thin shim over agentao run.
Testing
uv run python -m pytest tests/ # Default suite
uv run python -m pytest tests/ -n logical # Parallel (pytest-xdist): CI on Windows, and on Linux for PRs (pushes to main stay serial)
uv run python -m pytest -m slow # Clean-install smoke tests (needs `uv build` first)
uv run ruff check . # Lint gate — required CI check
(cd developer-guide && npm ci && npm run docs:build) && python3 scripts/check_guide_anchors.py developer-guide # Guide pages + anchors — CI job
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.
- 8d ago Changed · +2 lines · +206 tokens per session 40ae9af5291b
- 9d ago Changed · +7 lines · +426 tokens per session 7fc936a7bd94
- 19d ago Changed · +2 lines · +145 tokens per session ee2c1cd3270a
- 23d ago Changed · +14 tokens per session 5de25878053e
- 26d ago Changed · +1 lines · +123 tokens per session 825fe2130aeb
- 27d ago Changed · +14 lines · -8,979 tokens per session cc6f9c61a16d
- 28d ago Changed · +76 tokens per session dfd1a696982c
- 29d ago Changed · +1 lines · +35 tokens per session 8fff1c378396
- 1mo ago Changed · +95 tokens per session c2ff504a11b4
- 1mo ago First seen · 467 lines · 19,118 tokens per session scan C 9058770d0560
agentao CLAUDE.md is an instructions file published in the GitHub repository jin-bo/agentao (310 stars, last pushed 4d ago), licensed MIT. It adds 11,259 tokens to every session, about $0.0450 per session on Opus 5.5. A static security scan graded it C with 2 findings (cloud metadata endpoint, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
agentao CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agentao CLAUDE.mdjin-bo/agentao | Instructions file | 310 | 4d ago | MIT | C | 11,259 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |