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/kenryu42/cc-safety-net/agents-mdgit clone --depth 1 https://github.com/kenryu42/cc-safety-netWrote 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/kenryu42/cc-safety-net/agents-md)<a href="https://agentmods.dev/instructions/kenryu42/cc-safety-net/agents-md"><img src="https://agentmods.dev/badge/instructions/kenryu42/cc-safety-net/agents-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 | $0.00677 | $0.00677 |
| Opus 5 | $0.00338 | $0.00338 |
| Sonnet 5 | $0.00135 | $0.00135 |
| Haiku 4.5 | $0.00068 | $0.00068 |
Grade A, and why
cc-safety-net 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
- Use
bun run checkto verify when you finish all implementations at the end. This runs typecheck, knip, biome lint, and tests together; do not run these separately. - Ignore the dist folder; it gets auto-rebuilt by lefthook's pre-commit hook.
- Keep implementation modular; put tests in
tests/mirroringsrc/, not colocated insrc/. - Files in
docs/use lowercase kebab-case names.
Scope Discipline
Over-engineering is this project's dominant failure mode. The evidence rule that governs analyzer rules governs all code: machinery exists to stop a demonstrated failure, not an imagined one.
- Implement the smallest change that satisfies the request. Each addition beyond it needs the concrete failure it prevents named; if you cannot name one, do not write it.
- Every check must be falsifiable in practice: name the realistic mistake that makes it fail. A check the same author can trivially satisfy while still making the mistake (self-reported attestations, digests over co-located data, matching UUIDs) is ceremony — do not add it.
- Do not build schemas, validators, registries, or harnesses ahead of their first real entry, and do not store fields whose values are forced constants or derivable from other fields.
- Prefer a documented process over code that enforces the process. Enforcement code is justified only after the documented process has demonstrably failed at least once.
- When remediating review findings, implement the smallest fix per finding. A finding is never a mandate to build a framework; if the fix seems to require one, stop and ask.
Code Review Rules
- Before reviewing, read
REVIEW.mdand apply its review criteria.
Style Guide
- Keep things in one function unless composable or reusable.
- Avoid
try/catch, theanytype, andelsebranches (prefer early returns). - Rely on type inference; avoid explicit annotations or interfaces unless necessary for exports or clarity.
- Prefer functional array methods (flatMap, filter, map) over for loops; use type guards on filter to maintain type inference downstream.
- Inline values used only once instead of naming them.
- Prefer
constoverlet; use ternaries or early returns instead of reassignment. - Avoid unnecessary destructuring; use dot notation to preserve context.
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.
- 4d ago First seen · 44 lines · 677 tokens per session scan A 2ae8dad31cdf
cc-safety-net AGENTS.md is an instructions file published in the GitHub repository kenryu42/cc-safety-net (1,517 stars, last pushed 2d ago), licensed MIT. It adds 677 tokens to every session, about $0.0034 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
pi-subagents AGENTS.md
Instructions for tintinweb/pi-subagents, covering development rules, conversational style, code quality, documentation and commands.
pi-agent-browser-native AGENTS.md
Instructions for fitchmultz/pi-agent-browser-native, covering pi-agent-browser-native, product-specific guidance, documentation placement, upstream capability baseline and command reference and tool result categories.
supi CLAUDE.md
Instructions for mrclrchtr/supi, covering claude.md, development status, pi docs-first rule, documentation expectations and package layout convention.
pi-cursor-sdk AGENTS.md
Instructions for fitchmultz/pi-cursor-sdk, covering agents.md, purpose, repository map, operating rules and setup and commands.
pi-extensions AGENTS.md
Instructions for MattDevy/pi-extensions, covering pi-extensions, repository structure, commands (run from repo root), working on a specific package and readme conventions.
pi-extensions CLAUDE.md
Instructions for MattDevy/pi-extensions, covering claude.md, commands, architecture, data flow and key modules.