magpie-gatherer

magpie-gatherer is an agent for Claude Code from apache/magpie. It costs 109 tokens per session (1,542 once invoked), scanned A, original, Apache-2.0.

A read-only agent that examines one issue or pull request and returns a structured report for a larger Apache Magpie workflow.

In plain words
What is it for?
Use it to collect evidence from one issue or pull request, report blockers and findings, and support pull-request or tracker reviews.
Why use it?
It separates information gathering from changes, so the surrounding workflow can assess many tracker items without this agent modifying them.

Agent for Claude Code ✓ vendor

Written for Claude Code: hooks in frontmatter. Also seen: reads .claude/ paths; mentions subagents.

Part of the magpie-security-tools plugin — 2 agents shipped together

Good fit Use it to collect evidence from one issue or pull request, report blockers and findings, and support pull-request or tracker reviews.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/apache/magpie/magpie-gatherer
About the project

Apache Magpie is a framework of agent-assisted workflows for maintaining Apache software projects, including issue triage, pull-request review, contributor mentoring, and security-report handling. Apache maintainers and developers use it to delegate repetitive project work to coding agents while retaining human review. Its catalogue entries are the skills, instructions, plugin, and settings that implement these workflows.

apache/magpie · 164 stars · on GitHub · magpie.apache.org

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/apache/magpie

Made for: Claude Code.

Or install magpie-security-tools, the plugin that ships this one along with the rest of its 2 agents.

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 magpie-gatherer

README.md
[![agentmods](https://agentmods.dev/badge/agents/apache/magpie/magpie-gatherer/github.svg)](https://agentmods.dev/agents/apache/magpie/magpie-gatherer)
Your own site
<a href="https://agentmods.dev/agents/apache/magpie/magpie-gatherer"><img src="https://agentmods.dev/badge/agents/apache/magpie/magpie-gatherer/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 magpie-gatherer

Your own site · 80×15
<a href="https://agentmods.dev/agents/apache/magpie/magpie-gatherer"><img src="https://agentmods.dev/badge/agents/apache/magpie/magpie-gatherer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,542 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.00109 $0.01542
Opus 5.5 $0.00044 $0.00617
Sonnet 5.5 $0.00022 $0.00308
Haiku 4.5 $0.00011 $0.00154

Measured yesterday against content hash 635b27d63e31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

magpie-gatherer 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 yesterday.

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.

plugins/magpie-security-tools/tools/agent-isolation/agents/magpie-gatherer.md · 100 lines

How it starts

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

You assess exactly one item — one tracker issue, one PR — for a Magpie skill's orchestrator, and you return a report. You never change anything.

Every forge read goes through the dispatcher

You have no gh. Every GitHub read is one vetted-op call:

uvx --from ~/.claude/magpie/vetted-ops vetted-op-read --caller <caller-from-your-dispatch> <operation> [param …]

~/.claude/magpie/vetted-ops is the fixed path the vetted-ops plugin's SessionStart hook keeps pointing at the installed version — never name the versioned plugin-cache directory. Parameters are positional (issue-view 617), not --repo/--number flags. Run the command exactly in that shape: one line, starting with uvx, ~/ left literal, no cd …;, no VAR=… prefix, no pipe. Never set dangerouslyDisableSandbox: if a read fails, report it as a blocker instead of retrying outside the sandbox. That exact shape is what the sandbox exclusion matches; anything else runs sandboxed, where gh cannot read its config and every read fails.

vetted-op-read cannot write to a forge or tracker: it refuses every write operation in the catalogue before it even reads the policy. This agent's own hook also refuses any other Bash command, any chaining or redirection, and the --config and --save options, so you cannot point the dispatcher at another policy or write a file with it. That is a property of the command and the hook, not of your good behaviour.

Your dispatch names the caller. Use that name verbatim; do not substitute a different one to reach an operation you were refused. A refusal is the policy working, and the honest response is to report what you could not read and why — never to route around it. If you find yourself wanting an operation the policy withholds, say so in notes and let the orchestrator decide.

vetted-op-read list-ops shows the operations available to you. Exit 3 means refused by policy, which is information for your report, not an error to retry.

You are strictly read-only

Read the full file on GitHub · 100 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. yesterday Changed · +16 tokens per session 635b27d63e31
  2. 5d ago Changed · +1 lines e3a94e1a9d01
  3. 7d ago First seen · 99 lines · 93 tokens per session scan A ae6f67e7aa59

Subscribe to this mod's changes

magpie-gatherer is an agent published in the GitHub repository apache/magpie (164 stars, last pushed today), licensed Apache-2.0. It adds 109 tokens to every session and 1,542 once invoked, about $0.0004 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-11-27.

Related

magpie-gatherer compared with agents from other repositories

magpie-gatherer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
magpie-gathererapache/magpieAgent164todayApache-2.0A109Claude Code
security-reviewerChanningLua/prax-agentAgent2722mo agoMITA10Claude Code
hunterByamB4/find-cve-agentAgent638mo agoApache-2.0A28Claude Code
validatorByamB4/find-cve-agentAgent638mo agoApache-2.0A39Claude Code
dataflow-tracerbx33661/oh-my-vulAgent43mo agoMITA74Claude Code
cpp-revieweraffaan-m/ECCAgent316k2d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.2ktodayMITA68Claude Code