Borrowing it
Nothing to install: this file belongs to munhq/codeindex. 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/munhq/codeindex/main/AGENTS.mdgit clone --depth 1 https://github.com/munhq/codeindexWrote 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/munhq/codeindex/agents-md)<a href="https://agentmods.dev/instructions/munhq/codeindex/agents-md"><img src="https://agentmods.dev/badge/instructions/munhq/codeindex/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/munhq/codeindex/agents-md"><img src="https://agentmods.dev/badge/instructions/munhq/codeindex/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.01748 | $0.01748 |
| Opus 5.5 | $0.00699 | $0.00699 |
| Sonnet 5.5 | $0.00350 | $0.00350 |
| Haiku 4.5 | $0.00175 | $0.00175 |
Grade A, and why
codeindex 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 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.
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 — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Notes for an agent that works in this repository.
What the code is
codeindex gives an index of code to AI agents. The server is Zig (zig/). The npm package and
the plugin of the AI clients are JavaScript (npm/, plugin/).
The desk server holds the code
The repository lives on the desk server ("store": "server" in .desk/config.json). Do not use
git, jj or gh for a change here.
- Run
desk syncbefore a change. Merge each.desk-maincopy into its file, then delete the copy. - Change the files in the work folder.
- Run
desk change --intent <issue>with a message of the shape<type>(<scope>): <summary>. - Run
desk land. The server merges the change ontomainand runs the checks of the repository. Do not push to GitHub, and do not open a pull request. desk runs listnames every check with its run id and its status.desk runs view <id>shows one check.
A test, a lint and a build run on the runners, never on the PC of the owner
The PC of the owner is not a build machine. Do not run a full test suite, a lint or a release build there. The runners of desk do that work.
- Use
desk trywhen munhq/desk#234 lands. It runs the checks of the change on the runners. - Until then, run
desk pr createto propose the last change. The server runs the checks of the change on the runners, on the tree of the change, and it does not merge the change. - A landing runs the checks with
"stage": "land"in.desk/config.jsononmain. A failed check refuses the landing of the next change, so rundesk runs listafter a landing.
The checks of the Zig code:
| Check | Command |
|---|---|
zig:fmt |
/opt/zig-0.16/zig fmt --check src/ main.zig build.zig tests_main.zig |
root |
sh .desk/workflows/buck-base/scripts/buck-run.sh build //:check: the format check, the build and the tests as cached Buck2 actions of the workflow buck-zig (BUCK) |
zig:e2e |
zig build, then zig build e2e — not a check of desk yet: see #9 |
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 · +39 lines · +899 tokens per session a538e6399eb6
- 16d ago First seen · 62 lines · 849 tokens per session scan A b332c78f48ff
codeindex AGENTS.md is an instructions file published in the GitHub repository munhq/codeindex (3 stars, last pushed 9d ago), licensed MIT. It adds 1,748 tokens to every session, about $0.0070 per session on Opus 5.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-11-13.
codeindex AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codeindex AGENTS.mdmunhq/codeindex | Instructions file | 3 | 9d ago | MIT | A | 1,748 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 289k | 2d ago | MIT | A | 4,393 | Codex, OpenCode |