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.
git clone --depth 1 https://github.com/Redtropig/harness-anchorWrote 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/redtropig/harness-anchor/gc)<a href="https://agentmods.dev/commands/redtropig/harness-anchor/gc"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/gc.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.1 | $0.00072 | $0.00780 |
| Opus 5 | $0.00036 | $0.00390 |
| Sonnet 5 | $0.00014 | $0.00156 |
| Haiku 4.5 | $0.00007 | $0.00078 |
Grade A, and why
gc 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 8d 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/gc
Scan recent work for drift / entropy / AI slop — code that compiles and passes tests but has rotted
away from the project's conventions: duplicated helpers, dead code, inconsistent error handling, stale
docs, golden-rule violations. This is the garbage-collection sensor (Concept ⑥) — not git gc.
Like /verify and /test-plan, it uses a fresh-context subagent so the scan isn't biased by the
agent that wrote the code. It is report-only — it never refactors in bulk.
Steps
-
Dispatch
drift-analystvia theTasktool:Task tool with: subagent_type: drift-analyst prompt: Scan the changed/active code for drift against golden-rules.md plus the generic drift heuristics. Bound the scope to changed files (git diff vs HEAD) or the active feature — plus the one deliberate doc-drift exception: an unchanged *.md file still enters scope when it mentions a symbol this change touched. Follow the fixed report format. Read-only — recommend, do not refactor.If the user passed a path or feature id as an argument, name it in the prompt.
-
Surface the report verbatim —
### Golden-rule violations,### Generic drift findings,### Recommended actions,### Verdict,### Uncertainties. The point of fresh-context analysis is that the user sees the analyst's actual words. -
If verdict is DRIFT FOUND, offer (do not auto-apply):
- Fix specific findings within the current feature's scope — transparently (show each change), highest-severity first. Do NOT bulk-refactor or wander outside the active feature (that's a scope-jump — confirm first).
- Capture a recurring finding as a golden rule via the
capturing-golden-rulesskill, so/gccatches it automatically next time. - Leave as-is and note it in
session-handoff.md(e.g. deliberate debt to pay later).
-
If verdict is CLEAN, report it with the
.harness-anchor/drift-<ts>.mdevidence path. Note that a clean scan is a floor, not a guarantee (the heuristics are partial).
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.
- 8d ago First seen · 63 lines · 72 tokens per session scan A 8de5a5baa65c
gc is a command published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 780 once invoked, about $0.0004 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
review
Run when user calls /review. Analyzes local changes and runs a comprehensive code review using the agent-reviewer prompt.
test-tdd
Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.
devkit.github.review-pr
Provides comprehensive GitHub pull request review with code quality, security, and best practices analysis. Use when reviewing a PR before merging.
review
Review a skill for quality before merge.
critique
Design lens critique covering visual hierarchy, clarity, and anti-slop patterns — produces a findings table, no code edits unless asked. Use when the user wants a design review, says "what's wrong with this UI", or needs a second opinion before a handoff or presentation.
review
Perform a thorough code review of the current uncommitted changes or a specified file/directory.