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/azrtydxb/procoder/maintaingit clone --depth 1 https://github.com/azrtydxb/procoderWhat 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.00020 | $0.00310 |
| Opus 5 | $0.00010 | $0.00155 |
| Sonnet 5 | $0.00004 | $0.00062 |
| Haiku 4.5 | $0.00002 | $0.00031 |
Grade A, and why
maintain 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 2d 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.
What it actually says
The user invoked /procoder:maintain.
The command below is the procoder binary on PATH.
- Run
procoder index buildif the index is missing or stale (stats tells you), thenprocoder maintain. - Judge every line — nothing here blocks, everything is a candidate:
- unused: dead-code candidates from the precise index. Exported API
is marked — a library's public surface is legitimately unreferenced
from inside; internal symbols with no references usually deserve
deletion. Confirm with
procoder index refs <symbol>before removing anything. - complexity / funlen: long or deeply-branched functions. Refactor the ones that are genuinely hard to follow; say why for the ones you leave (a table-driven function can be long and clear).
- unused: dead-code candidates from the precise index. Exported API
is marked — a library's public surface is legitimately unreferenced
from inside; internal symbols with no references usually deserve
deletion. Confirm with
- Deletion is the best refactor: prefer removing dead code over commenting it out or keeping it "for later".
- The thresholds are the repo's to set:
[maintain] gocyclo,funlen_lines,funlen_statementsin .procoder/config.toml (defaults 15/80/50). - Report to the user what you removed, what you refactored, and what you judged fine as-is.
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.
- 2d ago First seen · 27 lines · 20 tokens per session scan A 179a2788096d
maintain is a command published in the GitHub repository azrtydxb/procoder (196 stars, last pushed 2d ago), licensed Apache-2.0. It adds 20 tokens to every session and 310 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-30.
Other commands, from other repositories
setup
Initialize a new project with SDLC-compliant structure. Creates required files, configures build system, sets up CI/CD, and establishes quality tooling.
validate
Run SDLC compliance check against the current project. Validates build system, code quality, testing, CI/CD, security, documentation, VCS, and release configurations.
run-tests
Run automated functional tests using the hook-driven test framework. Execute the test suite to validate all project functionality.
test-report
Generate test execution report in markdown format.
add-test
Interactively add a new test definition to the test suite.
release-swarm
Orchestrate complex software releases using AI swarms that handle everything from changelog generation to multi-platform deployment.