Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/rjwalters/kicad-toolsnpx agentmods add commands/rjwalters/kicad-tools/champion-held-pr-stalenessWrote 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/rjwalters/kicad-tools/champion-held-pr-staleness)<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/champion-held-pr-staleness"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/champion-held-pr-staleness/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/commands/rjwalters/kicad-tools/champion-held-pr-staleness"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/champion-held-pr-staleness.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.00000 | $0.02915 |
| Opus 5.5 | $0.00000 | $0.01166 |
| Sonnet 5.5 | $0.00000 | $0.00583 |
| Haiku 4.5 | $0.00000 | $0.00292 |
Grade A, and why
champion-held-pr-staleness 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 1mo 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 — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Champion: Held-PR Base-Staleness Tick (#8552)
A sub-step of champion-pr-merge.md → "Held-PR Census"
→ "Per-PR Digest" → Step 1. It runs inside that loop, once per held PR,
reusing $HELD_JSON's own fields plus local read-only git — no second
gh pr list.
Detection only. This tick changes no label (never loom:blocked, never
loom:blocked), routes nothing to Doctor, rebases nothing, pushes nothing, and
never touches a working tree. Its entire output is one digest cell per held PR
and, for a conflicting one, at most one comment per divergence episode per
class.
Why
A held PR's approval never goes stale — verdict-staleness keys on the PR's own
head, which does not move while a human decision is outstanding — and its CI
stays green on the old base. main moves anyway. On 2026-09-20/21 three of six
PRs coming off operator holds needed a rebase: two mechanical append-collisions
(ci.yml, ci-excluded.txt, and a since-retired allowlist) and one re-integration
(#8426 — main restructured the same merge-pr.sh --auto block via #8048 and
#8429 while the PR sat held). All three were discovered at merge time: the
worst moment, right after a human had made and announced a merge decision.
The two signals
mergeStateStatus(from$HELD_JSON).DIRTYmeans the merge commit cannot be created cleanly. It is not an early warning: it reports the same condition asmergeable == CONFLICTING, at the same time. It is the trigger for the comment, not the thing that sees rot coming.UNKNOWNmeans GitHub has not finished computing mergeability yet; it falls through to the non-DIRTYbranch and the next pass re-reads it — never comment on it.- File overlap (local
git). The PR's own changed files intersected with whatmainchanged since this PR diverged. This is the signal that sees rot before a conflict exists, and the only one that says anything about what kind of rebase is owed.
An empty-overlap test alone cannot separate the two rot classes, because a git
conflict requires both sides to have touched the same file — a DIRTY PR's
overlap is essentially never empty, and an append-collision in ci.yml
overlaps exactly as much as a restructure of merge-pr.sh does. What separates
them is shape: an append-collision is pure addition on both sides; a
restructure deletes or rewrites lines. git diff --numstat reports that
directly, so the classification keys on it.
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.
- 1mo ago Changed 61a14f2b1ce6
- 1mo ago Changed 1392bb0a582d
- 1mo ago Changed afef9d12c52a
- 2mo ago Changed deed9f69fac3
- 2mo ago First seen · 201 lines · 0 tokens per session scan A d631efc8d99e
champion-held-pr-staleness is a command published in the GitHub repository rjwalters/kicad-tools (77 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,915 tokens. 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-09-26.
champion-held-pr-staleness compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| champion-held-pr-stalenessrjwalters/kicad-tools | Command | 77 | 15d ago | MIT | A | 0 | Claude Code |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 50 | today | Apache-2.0 | A | 0 | GitHub Copilot |
| release-notesOpenHands/extensions | Command | 190 | today | MIT | A | 44 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 16d ago | MIT | A | 8 | Claude Code |
| repo-audittractorjuice/arc-kit | Command | 2.3k | yesterday | none | A | 29 | Claude Code |
| codex-reviewoalders/kitchen-sink | Command | 5 | today | MIT | A | 41 | Claude Code |
| releaseparuff/uFawkesAI | Command | 2 | yesterday | MIT | A | 39 | Claude Code |