Borrowing it
Nothing to install: this file belongs to petekp/claude-code-setup. 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/petekp/claude-code-setup/main/AGENTS.mdgit clone --depth 1 https://github.com/petekp/claude-code-setupWrote 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/petekp/claude-code-setup/agents-md)<a href="https://agentmods.dev/instructions/petekp/claude-code-setup/agents-md"><img src="https://agentmods.dev/badge/instructions/petekp/claude-code-setup/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/petekp/claude-code-setup/agents-md"><img src="https://agentmods.dev/badge/instructions/petekp/claude-code-setup/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.00471 | $0.00471 |
| Opus 5.5 | $0.00188 | $0.00188 |
| Sonnet 5.5 | $0.00094 | $0.00094 |
| Haiku 4.5 | $0.00047 | $0.00047 |
Grade B, and why
claude-code-setup AGENTS.md scanned grade B with 1 finding 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 15d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- `~/.claude/settings.json` is a regular file that Claude Code owns. Do not link it to the repo. Record it with `./scripts/settings-snapshot.sh`. What it actually says
This repo is Pete's configuration for Claude Code and Codex: skills, hook scripts, and the setup that links them into ~/.claude and ~/.codex. It is shell scripts and Markdown, plus the TypeScript of the Claude Code mods in mods/. README.md describes the layout.
- The repo is public. Do not commit employer or client names, customer data, private file paths, or session state. Private configuration belongs in
~/.agents, which is a private repo. - Scripts with a
#!/bin/shshebang must be POSIX sh. macOS runs them with bash 3.2 in POSIX mode. shellcheck misses two of its failures:- A case pattern inside
$(...)needs a leading paren, as in("$x"/*). Without it, the script fails with a syntax error. [a-z]also matches uppercase letters under a UTF-8 locale. Use[[:lower:]]and[[:digit:]].
- A case pattern inside
- After changing skills, scripts or mods, run
./scripts/validate.shand./scripts/skill-doctor.sh. mods/DEVELOPING.mdexplains how to test a mod's UI live without touching your own sessions' state.skills/holds only skills written here. Never commit a symlink into it. A skill from anywhere else goes in~/.agents/skills, wherelink-skills.shfinds it.~/.claude/settings.jsonis a regular file that Claude Code owns. Do not link it to the repo. Record it with./scripts/settings-snapshot.sh.- Hook scripts run in every session and fail silently. Before committing a change to one, pipe sample hook JSON into it and check the output. SessionStart output goes into the model's context, so a SessionStart script prints nothing when healthy.
- To remove a skill installed with
npx skills, runnpx skills remove -g -y <name>. It removes the files, the key in~/.agents/.skill-lock.json, and the agent links. If the files are already gone, delete the key withjq; otherwisenpx skills update -greinstalls the skill.
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.
- 15d ago Changed · +5 lines · +213 tokens per session c5dc7022c802
- 2mo ago First seen · 8 lines · 258 tokens per session scan B ea4ee310e2f0
claude-code-setup AGENTS.md is an instructions file published in the GitHub repository petekp/claude-code-setup (49 stars, last pushed 11d ago), licensed MIT. It adds 471 tokens to every session, about $0.0019 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
claude-code-setup AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-code-setup AGENTS.mdpetekp/claude-code-setup | Instructions file | 49 | 11d ago | MIT | B | 471 | Claude Code, Codex, OpenCode |
| 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 |