cc-safety-net AGENTS.md

cc-safety-net AGENTS.md is an instructions file for Codex, OpenCode from kenryu42/cc-safety-net. It costs 677 tokens per session, scanned A, original, MIT.

Project instructions for kenryu42/cc-safety-net, covering code-review rules, scope limits, style, dependency cleanup, and verification.

In plain words
What is it for?
Following the repository's development rules, organizing tests and documentation, avoiding unnecessary machinery, and running its final typecheck, lint, dependency, and test command.
Why use it?
They keep changes small and require the project's combined checks to run before implementation is considered finished.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/kenryu42/cc-safety-net/agents-md
Clone the repo
git clone --depth 1 https://github.com/kenryu42/cc-safety-net

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for cc-safety-net AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kenryu42/cc-safety-net/agents-md.svg)](https://agentmods.dev/instructions/kenryu42/cc-safety-net/agents-md)
Your own site
<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>
Per session 677 This file is loaded in full into every session.
When invoked 677 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 2ae8dad31cdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 44 lines

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 check to 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/ mirroring src/, not colocated in src/.
  • 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.md and apply its review criteria.

Style Guide

  • Keep things in one function unless composable or reusable.
  • Avoid try/catch, the any type, and else branches (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 const over let; use ternaries or early returns instead of reassignment.
  • Avoid unnecessary destructuring; use dot notation to preserve context.

Read the full file on GitHub · 44 lines

Changes

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.

  1. 4d ago First seen · 44 lines · 677 tokens per session scan A 2ae8dad31cdf

Subscribe to this mod's changes

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.