Borrowing it
Nothing to install: this file belongs to gakonst/nanocodex. 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/gakonst/nanocodex/master/AGENTS.mdgit clone --depth 1 https://github.com/gakonst/nanocodexWrote 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/gakonst/nanocodex/agents-md)<a href="https://agentmods.dev/instructions/gakonst/nanocodex/agents-md"><img src="https://agentmods.dev/badge/instructions/gakonst/nanocodex/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/gakonst/nanocodex/agents-md"><img src="https://agentmods.dev/badge/instructions/gakonst/nanocodex/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.01605 | $0.01605 |
| Opus 5.5 | $0.00642 | $0.00642 |
| Sonnet 5.5 | $0.00321 | $0.00321 |
| Haiku 4.5 | $0.00161 | $0.00161 |
Grade A, and why
nanocodex AGENTS.md scanned grade A 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 28d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- For managed API durability work, reproduce and verify behavior with `curl` How it starts
The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Nanocodex development
-
Define observable behavior and failure cases before implementation. Validate changes with black-box, end-to-end journeys that a real user could perform: invoke the shipped CLI, call the public API over its actual transport, or use both when both surfaces matter. Run the real executable/runtime and assert on user-visible results, including representative errors, authorization, and recovery paths. Use synthetic accounts/data and safe test environments; stub only unavoidable external dependencies, not the behavior under test.
-
Skip low-level unit tests as the default for both new coverage and routine validation. Do not add helper-by-helper or mock-heavy tests to stand in for a user journey. Prefer a small set of representative E2E scenarios over a large matrix of incidental configurations. If a critical failure truly cannot be observed at a public boundary, document that gap and use the narrowest realistic integration check rather than silently substituting unit coverage.
-
Finish each E2E run with reproducible evidence: the command, inputs, expected and observed outcomes, and an inspectable trace, transcript, log, screenshot, or recording where relevant. A passing test name alone is not evidence.
-
For managed API durability work, reproduce and verify behavior with
curlagainst public HTTP routes. Retain request bodies, response headers, SSE or JSON responses, and assertions under ignoredoutput/. Exercise durable admission, disconnect/retry, recovery, and subsequent usable work; client SDK or CLI checks supplement this HTTP evidence. -
Continuously look for ways to improve the developer experience in CI. Inspect the relevant jobs' actual results, duration, failures, and artifacts; favor fast, reliable user-journey feedback, actionable failure output, and easy reproduction locally. Remove redundant work and flaky setup, but do not hide failures, skip required checks, or trade away meaningful E2E coverage merely to make CI green. When changing CI, verify the resulting workflow run.
-
When a journey or protocol check covers the same failure, remove redundant lower-level cases, unused fixtures, test-only APIs, and obsolete runner references. Prune mock setup that no surviving scenario uses. Use compiler, lint, and package checks for static contracts; do not test source text, private layouts, method presence, fixed prompt/UI copy, or a mock's own behavior as a proxy for runtime behavior.
-
Keep documentation focused on current APIs, architecture, setup, and operations. Remove superseded designs, implementation plans, checklists, and review notes when the work lands; Git retains their history. Update links and consumers when removing documents or support files.
-
Publish per-run screenshots, videos, logs, traces, and benchmark results as CI artifacts or keep them in ignored
output/. Do not commit generated evidence; retain only intentional fixtures consumed by tests or current documentation. -
Keep only the static assets and fixture files their consumers need. Check dynamic filename construction and build manifests before pruning imported asset packs; preserve attribution and canonical source artwork.
-
macos/owns the desktop app and native tiled workspace;js/desktop-runtimeowns its runtime.apple/NanocodexInboxtargets iPhone and iPad. -
js/nanocodexandjs/nanocodex-reactare public contracts. Cover changes with relevant contract, type, package, and runtime checks. -
js/nanocodex-viteowns the Vite plugin, WASM build, OAuth relay, and Cloudflare Vite integration. -
Apps and Workers deploy independently. Shared behavior belongs in a package, consumed through its public API.
-
Use root
pnpmscripts and existing Turbo/Portless/Vite/Wrangler tooling. Deploy dependencies first andaccountlast. Component deploy scripts build their dependencies from a clean checkout. See README.md for setup. -
Use synthetic identities and project data in fixtures and examples. Keep real account IDs, private project inventories, and one-off personal migration plans outside tracked source; pass operational data through private runtime inputs.
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.
- 28d ago Changed · +5 lines · +73 tokens per session acdc58368c40
- 29d ago Changed · +12 lines · +138 tokens per session f3507b49f452
- 1mo ago Changed · +33 lines · +452 tokens per session f653a68b5113
- 1mo ago Changed · +3 lines · +86 tokens per session 0ecc7652ddc1
- 1mo ago Changed · +8 lines · +125 tokens per session 4e17d265bced
- 1mo ago Changed · +35 lines · +463 tokens per session 6098475953b2
- 1mo ago Changed · +3 lines · +43 tokens per session a08a52a93f14
- 1mo ago Changed · -30 lines · -443 tokens per session 2a26affb8f71
- 2mo ago Changed · -120 lines · -1,359 tokens per session ea59c3bdde09
- 2mo ago First seen · 166 lines · 2,027 tokens per session scan A 6f1f0e6d840c
nanocodex AGENTS.md is an instructions file published in the GitHub repository gakonst/nanocodex (564 stars, last pushed 25d ago), licensed Apache-2.0. It adds 1,605 tokens to every session, about $0.0064 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
nanocodex AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nanocodex AGENTS.mdgakonst/nanocodex | Instructions file | 564 | 25d ago | Apache-2.0 | A | 1,605 | 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 | today | 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 |