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.
npx agentmods add instructions/apache/magpie/gemini-mdgit clone --depth 1 https://github.com/apache/magpieWhat 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 | $0.00376 | $0.00376 |
| Opus 5 | $0.00188 | $0.00188 |
| Sonnet 5 | $0.00075 | $0.00075 |
| Haiku 4.5 | $0.00038 | $0.00038 |
Grade A, and why
magpie GEMINI.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 2d 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.
What it actually says
Table of Contents generated with DocToc
Apache Magpie — Gemini CLI extension context
This context ships with the Apache Magpie Gemini CLI extension. Gemini has no plugin update/lifecycle hook (unlike Claude Code), so this file is how the extension prompts you to reconcile after an update.
Upgrade prompt
The Magpie extension declares its version in gemini-extension.json. At the
start of a session, compare that version against the value you last recorded
in magpie-plugin-version under the extension's state directory (create the
file if it does not exist):
-
If the version has changed since you last recorded it — the marketplace updated the extension — tell the user, once and non-intrusively:
Apache Magpie was updated to
<version>. If this repo adopts Magpie, run/magpie-setup upgradeto reconcile the snapshot, agentic overrides, and drift.Then record the new version.
-
If the version is unchanged, say nothing.
Never run the upgrade yourself: /magpie-setup upgrade is a guided,
user-confirmed action, and Magpie never mutates an adopter repo unattended.
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.
- 2d ago First seen · 39 lines · 376 tokens per session scan A 23c819a072bb
magpie GEMINI.md is an instructions file published in the GitHub repository apache/magpie (84 stars, last pushed 2d ago), licensed Apache-2.0. It adds 376 tokens to every session, about $0.0019 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.
Other instructions, from other repositories
superset AGENTS.md
Instructions for apache/superset, covering llm context guide for apache superset, run pre-commit before pushing, stage your changes first, run pre-commit on staged files and if there are auto-fixes, stage them and commit.
airflow AGENTS.md
Instructions for apache/airflow, covering agents instructions, naming, environment setup, commands and repository structure.
airflow code-review.instructions.md
Instructions for apache/airflow, covering airflow code review instructions, architecture boundaries, database and query correctness, code quality rules and testing requirements.
vulnerability-db AGENTS.md
Instructions for AppThreat/vulnerability-db, covering agents.md, what this project is, repository map, rules for agents and things that look like bugs and are not.
hacker-bob AGENTS.md
Instructions for vmihalis/hacker-bob, covering hacker bob agent instructions and review guidelines.
cve-mcp CLAUDE.md
Instructions for badchars/cve-mcp, covering cve mcp, project context, neden mcp?, hedef kullanim and veri kaynaklari.