champion-held-pr-staleness

champion-held-pr-staleness is a command for Claude Code from rjwalters/kicad-tools. It costs 0 tokens per session (2,915 once invoked), scanned A, original, MIT.

A read-only Git workflow check for pull requests that are waiting for a human decision. It detects when the main branch has moved far enough that a held change may need updating.

In plain words
What is it for?
It helps report base-branch staleness and conflicts for held pull requests without rebasing, pushing, changing labels, or modifying files.
Why use it?
A pull request can remain green against an old version of the main branch and only show conflicts when someone tries to merge it.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./.loom/scripts/post-comment.sh "$PR_NUM" --pr --body "$STALENESS_MARKER.

Good fit It helps report base-branch staleness and conflicts for held pull requests without rebasing, pushing, changing labels, or modifying files.

Compare 6 commands from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools
agentmods
npx agentmods add commands/rjwalters/kicad-tools/champion-held-pr-staleness

Made for: Claude Code.

Wrote 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.

agentmods badge for champion-held-pr-staleness

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/champion-held-pr-staleness/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/champion-held-pr-staleness)
Your own site
<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.

agentmods 80×15 button for champion-held-pr-staleness

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,915 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 61a14f2b1ce6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/commands/loom/champion-held-pr-staleness.md · 201 lines

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). DIRTY means the merge commit cannot be created cleanly. It is not an early warning: it reports the same condition as mergeable == CONFLICTING, at the same time. It is the trigger for the comment, not the thing that sees rot coming. UNKNOWN means GitHub has not finished computing mergeability yet; it falls through to the non-DIRTY branch and the next pass re-reads it — never comment on it.
  • File overlap (local git). The PR's own changed files intersected with what main changed 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.

Read the full file on GitHub · 201 lines

Changes

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.

  1. 1mo ago Changed 61a14f2b1ce6
  2. 1mo ago Changed 1392bb0a582d
  3. 1mo ago Changed afef9d12c52a
  4. 2mo ago Changed deed9f69fac3
  5. 2mo ago First seen · 201 lines · 0 tokens per session scan A d631efc8d99e

Subscribe to this mod's changes

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.

Related

champion-held-pr-staleness compared with commands from other repositories

champion-held-pr-staleness next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
champion-held-pr-stalenessrjwalters/kicad-toolsCommand7715d agoMITA0Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
release-notesOpenHands/extensionsCommand190todayMITA44Claude Code
commitechoVic/blade-codeCommand18116d agoMITA8Claude Code
repo-audittractorjuice/arc-kitCommand2.3kyesterdaynoneA29Claude Code
codex-reviewoalders/kitchen-sinkCommand5todayMITA41Claude Code
releaseparuff/uFawkesAICommand2yesterdayMITA39Claude Code