metis AGENTS.md

metis AGENTS.md is an instructions file for Codex, OpenCode from david-2814/metis. It costs 27,234 tokens per session, scanned A, original, Apache-2.0.

Repository-specific instructions for Metis, a local AI developer-agent server. They explain its architecture, current implementation status, and package layers for agents working in the project.

In plain words
What is it for?
Use them before changing or reviewing Metis code, especially when investigating architecture, package boundaries, implementation status, or planned work.
Why use it?
They give an agent the project context needed to reason about Metis without guessing how its components fit together.

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/david-2814/metis/agents-md
Clone the repo
git clone --depth 1 https://github.com/david-2814/metis

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/david-2814/metis/agents-md.svg)](https://agentmods.dev/instructions/david-2814/metis/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/david-2814/metis/agents-md"><img src="https://agentmods.dev/badge/instructions/david-2814/metis/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 27,234 This file is loaded in full into every session.
When invoked 27,234 The same file — it is already loaded in full.
Security scan A 1 finding. 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.27234 $0.27234
Opus 5 $0.13617 $0.13617
Sonnet 5 $0.05447 $0.05447
Haiku 4.5 $0.02723 $0.02723

Measured 4d ago against content hash 82b7f87914d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

metis AGENTS.md scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Status-page live deployment recipe (Wave 15, 15a-4)** — [`docs/operations/status-page.md`](docs/operations/status-page.md) gains three new top-level sections: (1) "Live deployment" — honest about the hosting-account
AGENTS.md · 320 lines

How it starts

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

AGENTS.md

Shared context for any AI agent working in this repo (Claude Code, Cursor, Codex, Aider, etc.). CLAUDE.md is a symlink to this file.

What Metis is

A local-first AI dev agent server. Provider-agnostic via a canonical message format, with a layered routing engine (manual / configured rules / learned patterns), bounded portable memory, and an event bus that feeds a trace store. Python core server; thin clients (CLI first, TUI/Tauri later).

Status: Phase 1 + Phase 2 + Phase 2.5 + Phase 3 shipped (owner-ratified 2026-05-16); Wave 16 reaches the GA launch milestone for the first paid cohort. The three Phase-3 wedges — transparent HTTP gateway, multi-user / per-team attribution, and evaluator — are live end-to-end with buyer-facing value. Wave 15 closed both pre-GA blockers (NETWORK escalation now requires repeated transient failures; SDK-canonical bare model names normalize before routing), shipped the Stripe-backed billing module, observability extensions, concierge tools, and the status-page deployment recipe. Wave 16 turns those primitives into launch operations: billing self-service portal + plan changes + failed-payment grace, first-customer concierge scaffolding + anonymized reports + case-study templates, and day-1 operational playbooks + status-page config artifacts. Wave 18 reaches the batch-API + compaction-substrate milestone: the Anthropic Batches API is wired end-to-end via the new adapter Protocol (submit_batch / poll_batch / fetch_batch) + canonical BatchHandle / BatchStatus / BatchError types + Usage.pricing_mode + ModelPricing.batch_rates, with both consumers shipped: metis evaluate --batch-mode (eval backfills) and scripts/benchmark.py --batch-mode (benchmark reruns). Live benchmarks/RESULTS.md §Wave-18 documents the exact 50% discount on fix-a-bug-small (sync $0.001220 → batch $0.000610 apples-to-apples). Compaction substrate ships alongside: CompactionCache SQLite store (per-workspace, content-hash keyed, LRU-evicted) + three session.compaction_* PSEUDONYMOUS events in the catalog. SessionManager wiring lands in Wave 19a-2; the substrate is dormant until then. Differentiator posture: delegation is the validated routing-surface GTM lever, with three cost-per-quality measurements at 8.3%, 19.9%, and 26.1% better than sonnet-only baseline on the fan-out workload. Slot-4 model selection remains a proof-of-mechanism, not a generalized regime: §A3-rev3 produced one sonnet inversion, while §A3-rev7 completion produced zero sonnet picks across 36 routing decisions and ruled out the last rubric/knob repair candidate on the dev-loop suite. The optional task-domain §A3 wedge is deferred post-GA. 1953 tests passing.

Read the full file on GitHub · 320 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. 4d ago First seen · 320 lines · 27,234 tokens per session scan A 82b7f87914d6

Subscribe to this mod's changes

metis AGENTS.md is an instructions file published in the GitHub repository david-2814/metis (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 27,234 tokens to every session, about $0.1362 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories