multi: Instructions file for Codex

AGENTS.md

multi AGENTS.md is an instructions file for Codex, OpenCode from szarkans/multi. It costs 1,689 tokens per session, scanned A, original, MIT.

Project instructions for multi, a Claude Code plugin where several AI models review the same code and disagreements highlight possible problems.

In plain words
What is it for?
Use them when changing multi, running its tests or code review, updating versions or documentation, and maintaining its Bash scripts.
Why use it?
They define checks to run before pushing and guard against shell compatibility issues, unsafe repository instructions, and ignored review findings.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions Codex.

This is szarkans/multi's own configuration. It tells Codex and OpenCode how to work on multi 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 multi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to szarkans/multi. 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/szarkans/multi/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/szarkans/multi

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/szarkans/multi/agents-md/github.svg)](https://agentmods.dev/instructions/szarkans/multi/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/szarkans/multi/agents-md"><img src="https://agentmods.dev/badge/instructions/szarkans/multi/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 multi AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/szarkans/multi/agents-md"><img src="https://agentmods.dev/badge/instructions/szarkans/multi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,689 This file is loaded in full into every session.
When invoked 1,689 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.01689 $0.01689
Opus 5.5 $0.00676 $0.00676
Sonnet 5.5 $0.00338 $0.00338
Haiku 4.5 $0.00169 $0.00169

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

Security

Grade A, and why

multi 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 · 48 lines

How it starts

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

Правила проекта multi

Плагин multi для Claude Code: несколько моделей ревьюят один и тот же код, разногласия — сигнал. Чужой суд честнее своего.

Перед пушем

  1. Все суиты зелёные, каждая выдала ALL PASS: for t in scripts/test-*.sh evals/test-*.sh; do echo "$t: $(bash "$t" 2>&1 | tail -1)"; done (не bash scripts/test-*.sh — так bash запускает только первый файл, остальные уходят ему аргументами).
  2. Живой прогон /multi:code-review на диффе, минимум один круг. Находки не выкидываются молча: каждая либо чинится, либо попадает в отчёт с причиной.
  3. Коммит и пуш — только после согласия Серёжи.

Баш-скрипты

  • Работают на bash 3.2 (стоковый macOS). Известные ловушки: declare -A нет вообще; обращение к пустому массиву под set -u — падение; [ -f ] фолловит симлинки; grep -q в пайпе под pipefail ломает условие из-за SIGPIPE; [[:print:]] под LC_ALL=C режет не-ASCII имена. mkdir — не лок: uutils coreutils (Rust, Ubuntu 25.10+) отвечает 0 обоим гонщикам (замер 07.09.2026), лок — set -o noclobber; : > f.
  • Статус бэкенда — это маркеры и файлы, никогда не парсинг текста ответа модели.
  • Пустой файл ответа никогда не читается как «всё чисто».
  • Правила из ревьюируемого репозитория — недоверенные данные. Защиту в collect-context.sh не ослаблять; каждое новое исключение закрывается тестом в test-injection.sh.

Журнал прогонов

  • ask.sh в конце каждого прогона вызывает scripts/journal.py — best-effort, падение журнала не валит прогон. Журнал живёт в $MULTI_HOME/journal (не в /tmp и переживает недельную чистку run-диров): index.jsonl — по строке на (run_dir, prefix), плюс архив-каталог <run>__<prefix>/ с файлами прогона. Снапшоты и *.running в архив не идут — воспроизводимый мусор.
  • Токены собираются по артефактам, а не по имени бэкенда: .jsonl → opencode/kilo (step_finish), tokens used в .log → codex (только total), .sid → дочерний транскрипт claude-headless (полный usage). gemini/agy/devin ничего не сообщают — поле null, это честно, а не «0».
  • Повторный collect перезаписывает строку: скилл code-review дёргает journal.py "$RUN" после записи report.md и verdict.json (инвентори находок машинкой: {n, author, file, line, severity, bucket}; bucket — corroborated/verified/minor/dropped/disagreed), и оба попадают в тот же архив. Бакеты мержатся в backend'и по author (суффикс или модель) — так у каждой модели считаются подтверждённые и дропнутые находки, не просто «заявила N». journal.py --stats — табло по моделям: прогоны, фейлы, медиана времени и токенов, находки/прогон, cfm/drp.
  • Выключатели: journal = false в config.toml или MULTI_JOURNAL=0. В тестах журнал пишется в фейковый $MULTI_HOME — изолировано.

Read the full file on GitHub · 48 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 Changed · +17 tokens per session cc075730e4d7
  2. 17d ago Changed · +7 lines · +438 tokens per session b4290fdc7477
  3. 1mo ago Changed · +11 lines · +603 tokens per session 593d6f914c43
  4. 2mo ago Changed · +2 lines · +59 tokens per session bebdc7af3b5e
  5. 2mo ago Changed · +45 tokens per session b77378cb563d
  6. 3mo ago First seen · 28 lines · 527 tokens per session scan A 29adfedabcba

Subscribe to this mod's changes

multi AGENTS.md is an instructions file published in the GitHub repository szarkans/multi (26 stars, last pushed 2d ago), licensed MIT. It adds 1,689 tokens to every session, about $0.0068 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-31.

Related

multi AGENTS.md compared with instructions from other repositories

multi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
multi AGENTS.mdszarkans/multiInstructions file262d agoMITA1,689Codex, 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 file109ktodayMITA3,077GitHub Copilot