ci-refusals-reference

ci-refusals-reference is a command for Claude Code from rjwalters/kicad-tools. It costs 0 tokens per session (754 once invoked), scanned A, original, MIT.

A reference for handling refused GitHub CI checks. CI, or continuous integration, automatically builds and tests code; the reference covers HTTP 401, 403, and 429 errors and jobs that need to run again.

In plain words
What is it for?
It helps classify refused check reads, report why CI could not be verified, and handle re-runs for cancelled or unreliable jobs.
Why use it?
It helps distinguish missing access from rate limiting and avoids creating unnecessary commits just to retry a cancelled or flaky job.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It helps classify refused check reads, report why CI could not be verified, and handle re-runs for cancelled or unreliable jobs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rjwalters/kicad-tools/ci-refusals-reference
Install

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.

Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools

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 ci-refusals-reference

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/ci-refusals-reference/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/ci-refusals-reference)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/ci-refusals-reference"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/ci-refusals-reference/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 ci-refusals-reference

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/ci-refusals-reference"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/ci-refusals-reference.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 754 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.00754
Opus 5.5 $0.00000 $0.00302
Sonnet 5.5 $0.00000 $0.00151
Haiku 4.5 $0.00000 $0.00075

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

Security

Grade A, and why

ci-refusals-reference 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/ci-refusals-reference.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CI Refusals: Permission vs Rate Limit, and Re-runs (#10633)

Load when: loom-daemon forge wait-checks printed LOOM-CHECKS-ERROR naming an HTTP 401/403/429, it left a stderr note about legacy commit statuses, or a job needs a re-run (cancelled by a runner shutdown, or flaky).

Why this exists

GitHub uses HTTP 403 both for "this credential may not do that" and for "slow down". Before #10633 a Doctor saw only HTTP 403. It could not tell a missing GitHub App permission from a secondary rate limit, so it handed PRs back with CI unverified. When it could not re-run a cancelled job, it rebased and pushed instead, which cost a full CI cycle and opened a new conflict window.

Reading a wait-checks refusal

wait-checks classifies every refused read, and the class is in the reason:

Reason contains Meaning What to do
permission (needs <perm>) The credential lacks that App permission. Waiting will not help. Quote the line in your hand-back comment. The operator grants <perm> on the App.
secondary-rate-limit / rate-limit (after read-failed:) GitHub throttled the reads for the whole wait. Say CI is unverified because of a rate limit, not a permission problem. Judge re-checks later.
credential The token was refused (401). Report it. Do not retry.
forbidden GitHub refused the action itself. Its message follows. Read the message.

A stderr note wait-checks: legacy commit statuses unreadable (…) means the credential lacks Commit statuses: Read. The verdict then covers check-runs only. A required status context still counts as missing (never GREEN), but a failing non-required legacy status is invisible. With no check-runs at all the wait ends LOOM-CHECKS-ERROR statuses-unreadable: … rather than NONE.

Re-running a job

Use the daemon verb, not a hand-rolled gh run rerun or REST call:

out="$(loom-daemon forge rerun <run_id> --failed)"   # or: forge rerun --job <job_id>
case "$out" in
  LOOM-RERUN-OK*) ;;                                       # re-run queued; wait-checks again
  "LOOM-RERUN-DENIED permission"*|"LOOM-RERUN-DENIED credential"*)
    echo "$out" ;;                                         # do not retry; name the grant in your PR comment
  "LOOM-RERUN-DENIED secondary-rate-limit"*|"LOOM-RERUN-DENIED rate-limit"*)
    echo "$out" ;;                                         # try once more later, never in a loop
  *) echo "$out" ;;                                        # forbidden (e.g. already running) / ERROR: read the message
esac

Read the full file on GitHub · 53 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 First seen · 53 lines · 0 tokens per session scan A 256465d67b03

Subscribe to this mod's changes

ci-refusals-reference 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 754 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-10-08.

Related

ci-refusals-reference compared with commands from other repositories

ci-refusals-reference next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ci-refusals-referencerjwalters/kicad-toolsCommand7715d agoMITA0Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
issue-to-mr-setupOpenHands/extensionsCommand190todayMITA54Claude Code
run-planjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA8Claude Code, OpenCode
check-fixjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA23OpenCode
shipmarcusgoll/Spec-FlowCommand972mo agoMITA13Claude Code
deployNickRomanek/clawbridgeCommand231mo agoApache-2.0A0Claude Code