metis AGENTS.md

metis AGENTS.md is an instructions file for Codex, OpenCode from Wholiver/metis. It costs 1,499 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents working on Metis, including how to begin tasks, where major parts of the project live, and which application modes may be affected. Metis is a software project with command-line, desktop, and developer-tool parts.

In plain words
What is it for?
Use them at the start of every Metis task to check existing changes, find relevant code and tests, read nested instructions, consider affected interfaces such as terminal, printed, JSON, or desktop modes, and choose appropriate validation.
Why use it?
They keep automated code changes aligned with the repository's existing structure, conventions, compatibility needs, and testing 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/wholiver/metis/agents-md
Clone the repo
git clone --depth 1 https://github.com/Wholiver/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/wholiver/metis/agents-md.svg)](https://agentmods.dev/instructions/wholiver/metis/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wholiver/metis/agents-md"><img src="https://agentmods.dev/badge/instructions/wholiver/metis/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,499 This file is loaded in full into every session.
When invoked 1,499 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.01499 $0.01499
Opus 5 $0.00749 $0.00749
Sonnet 5 $0.00300 $0.00300
Haiku 4.5 $0.00150 $0.00150

Measured 4d ago against content hash 02f62f3fa626, 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 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 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.

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 · 131 lines

How it starts

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

Agent Development Guide

This file is for AI coding agents contributing to Metis. Treat it as repository-level operating guidance. User and system instructions always take precedence.

Objective

Help developers change Metis quickly without sacrificing scope control, compatibility, or verification. Prefer evidence from the repository over assumptions.

Start Every Task

  1. Restate the requested outcome and concrete acceptance criteria.
  2. Read git status and preserve unrelated user changes.
  3. Search for relevant code, tests, docs, and existing abstractions before editing.
  4. Read the nearest applicable AGENTS.md if a nested one exists.
  5. Identify affected modes: TUI, print, JSON, RPC, SDK, Extensions, Packages.
  6. Decide the smallest validation set that can prove the change works.

If .codegraph/ exists and its tools work, use CodeGraph before broad text search for code understanding. If the index is missing or malformed, state that once and fall back to rg and targeted file reads.

Repository Map

Area Primary paths
CLI entry and mode selection src/main.ts, src/cli/, src/modes/
Agent session and SDK src/core/agent-session.ts, src/core/agent-session-runtime.ts, src/core/sdk.ts
Built-in model tools src/core/tools/
Extensions src/core/extensions/, docs/extensions.md, examples/extensions/
Package loading src/core/package-manager.ts, docs/packages.md
Dream and built-ins src/core/builtins/
TUI src/modes/interactive/, vendor/metis-tui/
Desktop frontend desktop/, docs/desktop-frontend-development.md
RPC src/modes/rpc/, src/rpc-entry.ts
Public exports src/index.ts
Tests test/, vitest.config.ts
User documentation README.md, README.zh-CN.md, docs/

Do not modify vendor/ unless the requested behavior belongs to a vendored package. Do not edit generated dist/ output by hand.

Desktop Frontend Changes (Mandatory)

Read the full file on GitHub · 131 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 · 131 lines · 1,499 tokens per session scan A 02f62f3fa626

Subscribe to this mod's changes

metis AGENTS.md is an instructions file published in the GitHub repository Wholiver/metis (133 stars, last pushed 2d ago), licensed MIT. It adds 1,499 tokens to every session, about $0.0075 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.

Related

Other instructions, from other repositories