magpie AGENTS.md

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

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.

agentmods
npx agentmods add instructions/apache/magpie/agents-md
Clone the repo
git clone --depth 1 https://github.com/apache/magpie

Made for: Codex, OpenCode.

Per session 14,763 This file is loaded in full into every session.
When invoked 14,763 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.14763 $0.14763
Opus 5 $0.07382 $0.07382
Sonnet 5 $0.02953 $0.02953
Haiku 4.5 $0.01476 $0.01476

Measured yesterday against content hash ef4fa4a13898, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

AGENTS.md · 1,060 lines

How it starts

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

Table of Contents generated with DocToc

AGENTS instructions

These instructions apply to any AI agent (or agent-assisted contributor) working on this repository. The repository hosts a generic, reusable framework for handling security issues for Apache Software Foundation (ASF) projects. The framework is project-agnostic by design — adopting projects configure their identity, rosters, canned responses, release trains, and security model in their own <project-config>/ directory (see Per-project and per-user configuration below). 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.

Read the full file on GitHub · 1,060 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 First seen · 1,060 lines · 14,763 tokens per session scan A ef4fa4a13898

Subscribe to this mod's changes

magpie AGENTS.md is an instructions file published in the GitHub repository apache/magpie (84 stars, last pushed 2d ago), licensed Apache-2.0. It adds 14,763 tokens to every session, about $0.0738 per session on Opus 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.