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 commands/seob717/nunchi/compilegit clone --depth 1 https://github.com/seob717/nunchiWrote 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/commands/seob717/nunchi/compile)<a href="https://agentmods.dev/commands/seob717/nunchi/compile"><img src="https://agentmods.dev/badge/commands/seob717/nunchi/compile.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.00019 | $0.03032 |
| Opus 5 | $0.00010 | $0.01516 |
| Sonnet 5 | $0.00004 | $0.00606 |
| Haiku 4.5 | $0.00002 | $0.00303 |
Grade A, and why
compile 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 3d 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 — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/nunchi:compile
Compile rules with the following procedure.
1. Collect input
- Argument: $ARGUMENTS
- If an argument is given, read only that document; otherwise read the project CLAUDE.md and every
@pathdocument it references.
2. Extract rules
From each document, extract only rules that "are effective when recalled right before a specific action." Criteria:
- Can it be tied to a specific tool call? (creating a PR, committing, editing a specific file, running a specific command)
- Content that can't be tied to an action is not a compilation target — skip it, but classify what you skip into two lists for the final report (§6):
- Procedure — an ordered, multi-step how-to or workflow (release steps, migration order, environment setup). The right home is a Claude Code skill: a skill loads only its description at session start and its body on invocation — the same context economics as a nunchi rule, for content that is a how rather than a before. Report it as a skill candidate, quoting the passage that makes it procedural. Boundary: a checklist to run before one specific action ("before pushing, review the diff and run the checks") is a rule bound to that action, not a skill candidate — being multi-step doesn't disqualify it (measured misroute:
pilot/RESULTS-compile-bench-skillroute.md); skill candidates are only for how-tos with no single triggering tool call. - Always-on guidance — tone, general coding style, facts that must color every turn: stays in CLAUDE.md. When unsure, classify here — never propose moving content out of CLAUDE.md on a guess, and never route anything action-bindable into a skill candidate (an action rule compiles; a skill candidate is only for what step 1 of this section already rejected).
- Procedure — an ordered, multi-step how-to or workflow (release steps, migration order, environment setup). The right home is a Claude Code skill: a skill loads only its description at session start and its body on invocation — the same context economics as a nunchi rule, for content that is a how rather than a before. Report it as a skill candidate, quoting the passage that makes it procedural. Boundary: a checklist to run before one specific action ("before pushing, review the diff and run the checks") is a rule bound to that action, not a skill candidate — being multi-step doesn't disqualify it (measured misroute:
- Tables, fenced code blocks, and list items are rule candidates on equal footing with prose. A constraint doesn't stop being a rule because it sits in a table row or next to a code sample. But distinguish usage catalogs from constraints: a commands table that only lists what you can run is documentation, not a rule — it becomes a rule only when the document attaches an obligation, prohibition, or ordering to the action (must / never / before / after / only).
- One rule per trigger: when one sentence bundles requirements aimed at different triggers ("run X after editing A; run Y before pushing"), split them so each rule carries its own trigger and strength. Do NOT split an enumeration that shares one trigger, one strength, and one source ("run
make format,make lint,make testbefore creating a PR" stays a single rule) — same-trigger copies would deliver the same source document multiple times for nothing.
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.
- 3d ago First seen · 110 lines · 19 tokens per session scan A 41286d3aa788
compile is a command published in the GitHub repository seob717/nunchi (8 stars, last pushed 7d ago), licensed MIT. It adds 19 tokens to every session and 3,032 once invoked, about $0.0001 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-31.
Other commands, from other repositories
patterns
List makoto's integrity pattern catalog (read-only).
show
Read makoto's results ledger by key (read-only).
presence-reset
Wipe presence state for the current project, all projects, or specific subsystems. Asks for confirmation before destructive action.
presence-doctor
Show presence diagnostic report. Active preset, warnings, error counts, state sizes, integrity status. Run this when something seems off.
presence-status
Quick presence status. Active preset, current repo id, model size, recent reverts. Pass --zerotrust for the full Zero-Trust controls checklist.
presence-curate
Compress the project model. Invokes the model-curator subagent to consolidate observations in model.md into a tighter form.