sweep

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

A command for processing a specified list of issues or open pull requests, which are proposed code changes, from one coding session. It can run items one at a time or in parallel waves and can preview the plan without changing files.

In plain words
What is it for?
It helps run issue or pull-request workflows, limit the number of parallel builders, and preview the candidate work plan.
Why use it?
It removes the need to manage each issue or pull request manually during a session, while allowing a dry run before work begins.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions subagents.

Good fit It helps run issue or pull-request workflows, limit the number of parallel builders, and preview the candidate work plan.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rjwalters/kicad-tools/sweep
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 sweep

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/sweep"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/sweep.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 3,571 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.03571
Opus 5.5 $0.00000 $0.01428
Sonnet 5.5 $0.00000 $0.00714
Haiku 4.5 $0.00000 $0.00357

Measured 2d ago against content hash 6ae19b0a7fdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

.claude/commands/loom/sweep.md · 135 lines

How it starts

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

Sweep

Process an explicit list of issues — or an explicit/NL-described set of open PRs — through the appropriate lifecycle from the current Claude session, no external daemon required. Runs sequentially by default, or in parallel waves of up to N builders when --builders-per-wave N is supplied (issue-set modes only). Supports --dry-run to preview the candidate plan without mutating anything.

Scope. This skill accepts either an explicit list of issue numbers, a natural-language description of which issues to process, or an explicit/NL-described list of open PRs (Mode C, the "back half" of the lifecycle: Judge → Doctor → Merge per PR's current label). Runs the appropriate lifecycle in waves. Supports --dry-run to preview the plan without mutations. Other knobs sketched in #3298 are deliberately deferred — see "Limitations" below.

If you need multi-account autonomous dispatch across many issues, use /loom:loom (it drives the loom-daemon). /loom:sweep is itself the single-issue lifecycle, and also covers the in-between case: "I have these N issues (or PRs), run them in this session, without spinning up a daemon."

⚠️ --body @path Does NOT Expand — It Posts the Literal String

If you (or a role you dispatch) post a comment via gh issue comment / gh pr comment / gh api ... comments from a scratch file, --body @path (and gh api -f body=@path) posts the literal string @path, not the file's contents. Full pitfall, incident citation, and fixes: comment-body-literal-path.md.

How to use this skill (progressive disclosure)

This file is a dispatcher. It carries only what every /loom:sweep invocation needs: the scope note above, the reference-file map below, the hard Constraints, and the pointer list. Every procedure — argument parsing, backend detection, the dry-run gate, both wave lifecycles, the summary vocabulary — lives in a sibling sweep-*.md file in this same directory. Read the files the run actually reaches, and only those.

Read the full file on GitHub · 135 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. 2d ago Changed 6ae19b0a7fdf
  2. 3d ago Changed · +1 lines 9e1844ede660
  3. 5d ago Changed · +1 lines e40f1f75576e
  4. 16d ago Changed · -5 lines 119a128d86f8
  5. 20d ago Changed a294118cdead
  6. 28d ago Changed 72e01bf32500
  7. 1mo ago First seen · 138 lines · 0 tokens per session scan A bfecca43d330

Subscribe to this mod's changes

sweep is a command published in the GitHub repository rjwalters/kicad-tools (70 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,571 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-17.