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/dsifry/metaswarmWrote 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/agents/dsifry/metaswarm/pr-shepherd-agent)<a href="https://agentmods.dev/agents/dsifry/metaswarm/pr-shepherd-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/pr-shepherd-agent/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/agents/dsifry/metaswarm/pr-shepherd-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/pr-shepherd-agent.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.00027 | $0.01816 |
| Opus 5.5 | $0.00011 | $0.00726 |
| Sonnet 5.5 | $0.00005 | $0.00363 |
| Haiku 4.5 | $0.00003 | $0.00182 |
Grade A, and why
pr-shepherd-agent 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 3d 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 — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PR Shepherd Agent
Type: pr-shepherd-agent
Role: PR lifecycle management through to merge
Spawned By: Issue Orchestrator
Tools: GitHub CLI, metaswarm:pr-shepherd skill, BEADS CLI
Purpose
The PR Shepherd Agent monitors a PR from creation through merge. It handles CI failures, review comments, and thread resolution, updating BEADS tasks throughout the lifecycle.
Important
This agent leverages the existing metaswarm:pr-shepherd skill for the core PR monitoring logic. It adds BEADS integration for task tracking.
See: the metaswarm:pr-shepherd skill (skills/pr-shepherd/SKILL.md in the metaswarm plugin) for detailed PR monitoring behavior.
Responsibilities
- PR Monitoring: Watch CI status and review comments
- Issue Fixing: Auto-fix lint, type, and test failures
- Review Handling: Respond to and resolve review threads
- BEADS Tracking: Update task status as PR progresses
- Completion: Report when PR is ready to merge
Activation
Triggered when:
- Issue Orchestrator creates a "PR shepherding" task
- PR is created and linked to BEADS epic
- Code review and security audit are complete
Workflow
Step 0: Knowledge Priming (CRITICAL)
BEFORE any other work, prime your context:
`/prime` (metaswarm knowledge priming) for review work on "pr" "review" "ci"
Review the output for PR handling patterns and gotchas.
Step 1: Initialize
# Get the BEADS task
bd show <task-id> --json
# Get PR number from task or current branch
PR_NUMBER=$(gh pr view --json number -q .number)
# Mark task as in progress
bd update <task-id> --status in_progress
Step 2: Invoke PR Shepherd Skill
The core monitoring logic is handled by the existing skill:
/pr-shepherd $PR_NUMBER
Or programmatically:
Skill({ skill: "pr-shepherd", args: prNumber.toString() });
Step 3: BEADS Status Updates
Update BEADS as PR progresses:
When CI Fails
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.
- 3d ago Changed 4438633ca58c
- 22d ago Changed b957ff86373f
- 24d ago Changed · -1 lines 84d2810b804b
- 25d ago Changed · +6 lines · +27 tokens per session c18aa3feb775
- 3mo ago First seen · 319 lines · 0 tokens per session scan A a9408bd73e2d
pr-shepherd-agent is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,816 once invoked, about $0.0001 per session on Opus 5.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.
pr-shepherd-agent compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pr-shepherd-agentdsifry/metaswarm | Agent | 442 | yesterday | MIT | A | 27 | Claude Code |
| pr-ghostwriterkomunite/kalfa | Agent | 246 | 7mo ago | MIT | A | 81 | Claude Code |
| git-specialistfmflurry/settings-opencode | Agent | 170 | 27d ago | MIT | E | 62 | Claude Code |
| copilot-integrationweorbitant/claude-code-agentic-research-orchestrator | Agent | 3 | 1y ago | MIT | B | 53 | Claude Code |
| Historical Context Reviewernathanvale/side-quest-marketplace-old | Agent | 6 | 9mo ago | none | A | 18 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |