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.
Borrowing it
Nothing to install: this file belongs to apache/magpie. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/apache/magpie/main/AGENTS.mdgit clone --depth 1 https://github.com/apache/magpieWrote 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/instructions/apache/magpie/agents-md)<a href="https://agentmods.dev/instructions/apache/magpie/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/magpie/agents-md/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/instructions/apache/magpie/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/magpie/agents-md.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.08382 | $0.08382 |
| Opus 5.5 | $0.03353 | $0.03353 |
| Sonnet 5.5 | $0.01676 | $0.01676 |
| Haiku 4.5 | $0.00838 | $0.00838 |
Grade A, and why
magpie AGENTS.md 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 today.
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 — 550 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS instructions
These instructions apply to any AI agent (or agent-assisted contributor) working on this repository, the generic framework described under Repository purpose. Processes, canned responses, and onboarding documentation are read by security-team members and, through the canned responses, indirectly by external reporters. Small wording choices matter.
Repository purpose
This repository (the Apache Magpie framework) is the generic, project-agnostic framework:
skills, tool adapters, generic process documentation and a project-template scaffold, with no project-specific content.
Adopting projects install it with the setup skill (install methods)
and configure their project-specific bits in their own repo, in the layers described below; the framework calls that configuration <project-config>.
The framework has two layers:
- Generic — project-agnostic process, agent conventions, skill definitions, and tool adapters. Everything in this repository falls under this layer.
- Project-specific — each adopting project's identity, roster,
release trains, canned responses, security-model references, and
milestone conventions. Lives in the adopter's
<project-config>/directory and is not shipped with this framework.<project-config>resolves per file, personal first: the personal layer (never committed, written by/magpie-setup:setup config) if the file is there, else.apache-magpie-overrides/<file>(committed, project-wide, written by/magpie-setup:setup adopt). Where the personal layer lives (git directory,.apache-magpie-local/, worktrees, Subversion):docs/setup/agentic-overrides.md.projects/_template/is the scaffold a new adopter copies into<project-config>/.
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.
- today Changed · +5 lines · +77 tokens per session df7dbda18005
- 6d ago Changed · +1 lines · +35 tokens per session df0a85b35743
- 7d ago Changed · -749 lines · -11,323 tokens per session f63cd4b21b6e
- 12d ago Changed · +6 lines · +177 tokens per session d00106a54f63
- 16d ago Changed · +15 lines · +327 tokens per session 3a926831f928
- 17d ago Changed · +29 tokens per session 583a0a678092
- 18d ago Changed · +1 lines · +129 tokens per session 132318235364
- 19d ago Changed · +10 lines · +326 tokens per session 0bac9bbe3d94
- 24d ago Changed · +1 lines · +28 tokens per session e4fb5184e6ed
- 25d ago First seen · 1,260 lines · 18,577 tokens per session scan A 1ee5e7963e73
magpie AGENTS.md is an instructions file published in the GitHub repository apache/magpie (164 stars, last pushed today), licensed Apache-2.0. It adds 8,382 tokens to every session, about $0.0335 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.
magpie AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| magpie AGENTS.mdapache/magpie | Instructions file | 164 | today | Apache-2.0 | A | 8,382 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,951 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | yesterday | MIT | A | 3,077 | GitHub Copilot |