magpie: Instructions file for Codex

AGENTS.md

magpie AGENTS.md is an instructions file for Codex, OpenCode from apache/magpie. It costs 8,382 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Apache Magpie, a software project, covering how coding agents should work with its files, settings, security information, and documentation.

In plain words
What is it for?
Use them when editing code or documentation, reviewing changes, configuring user and project instructions, handling security reports, or preparing commits and pull requests.
Why use it?
They give agents project-specific rules, including how to handle outside content and confidential reports, so work follows the repository’s expectations.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

This is apache/magpie's own configuration. It tells Codex and OpenCode how to work on magpie itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything magpie configures →

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/apache/magpie/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/apache/magpie

Made for: Codex, OpenCode.

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 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apache/magpie/agents-md/github.svg)](https://agentmods.dev/instructions/apache/magpie/agents-md)
Your own site
<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.

agentmods 80×15 button for magpie AGENTS.md

Your own site · 80×15
<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>
Per session 8,382 This file is loaded in full into every session.
When invoked 8,382 The same file — it is already loaded in full.
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.08382 $0.08382
Opus 5.5 $0.03353 $0.03353
Sonnet 5.5 $0.01676 $0.01676
Haiku 4.5 $0.00838 $0.00838

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

Security

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.

AGENTS.md · 550 lines

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:

  1. Generic — project-agnostic process, agent conventions, skill definitions, and tool adapters. Everything in this repository falls under this layer.
  2. 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>/.

Read the full file on GitHub · 550 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. today Changed · +5 lines · +77 tokens per session df7dbda18005
  2. 6d ago Changed · +1 lines · +35 tokens per session df0a85b35743
  3. 7d ago Changed · -749 lines · -11,323 tokens per session f63cd4b21b6e
  4. 12d ago Changed · +6 lines · +177 tokens per session d00106a54f63
  5. 16d ago Changed · +15 lines · +327 tokens per session 3a926831f928
  6. 17d ago Changed · +29 tokens per session 583a0a678092
  7. 18d ago Changed · +1 lines · +129 tokens per session 132318235364
  8. 19d ago Changed · +10 lines · +326 tokens per session 0bac9bbe3d94
  9. 24d ago Changed · +1 lines · +28 tokens per session e4fb5184e6ed
  10. 25d ago First seen · 1,260 lines · 18,577 tokens per session scan A 1ee5e7963e73

Subscribe to this mod's changes

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.

Related

magpie AGENTS.md compared with instructions from other repositories

magpie AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
magpie AGENTS.mdapache/magpieInstructions file164todayApache-2.0A8,382Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot