afm: Instructions file for Codex

AGENTS.md

afm AGENTS.md is an instructions file for Codex, OpenCode from akopichin/afm. It costs 2,116 tokens per session, scanned A, original, MIT.

Development instructions for AFM, a tool that runs staged workflows for AI agents. They explain how AFM stores run state, chooses the project directory, and keeps different workflow stages pointed at the same files.

In plain words
What is it for?
Use them when developing AFM commands, configuring its working directory, or debugging run state, file paths, stages, and paused-work metrics.
Why use it?
They prevent agents from reading and writing state or project files in different locations, especially when the workflow runs from Docker or another directory.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/akopichin/afm/agents-md"><img src="https://agentmods.dev/badge/instructions/akopichin/afm/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,116 This file is loaded in full into every session.
When invoked 2,116 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.02116 $0.02116
Opus 5.5 $0.00846 $0.00846
Sonnet 5.5 $0.00423 $0.00423
Haiku 4.5 $0.00212 $0.00212

Measured 6d ago against content hash 9fb67da01a4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

afm 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 6d 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 · 125 lines

How it starts

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

AFM Development Guide

Здесь — общие правила разработки и карта документации. Неочевидные ограничения подсистем находятся в локальных AGENTS.md; читай их и при изменении смежного кода, который использует эту подсистему. Точные символы и текущие поля ищи в коде.

Рабочий процесс

  • Сборка и требования к PR: CONTRIBUTING.md.
  • Go-версию из go.mod не повышай без обсуждения. После изменения Go-зависимостей выполни make vendor и включи изменения vendor/ в тот же коммит.
  • Коммиты — на русском. CHANGELOG.md и пользовательская документация — на английском. Changelog: новые даты ## YYYY-MM-DD сверху, записи под ### Improvement: / ### Fix:; без ссылок на keepachangelog.com.
  • Пользовательское поведение документируй в docs/; планы и исторические решения — в docs/superpowers/ (не публикуется на сайте).
  • Комментарии в коде — 1–2 строки сути: почему так, а не что делает код. Без номеров задач/фаз плана и истории решения — им место в коммите или docs/superpowers/. Проверка диффа: scripts/check-comments.sh.
  • Добавляй проверки изменённого поведения. Для документации достаточно проверки ссылок и сборки сайта; команды остальных проверок выбирай по затронутому коду.

Сборка и проверки

Источники команд — Makefile и package.json.

Область Проверка
Бинарник и встроенный dashboard make build (сначала собирает web-assets)
Go make test (-race), make lint (применяет исправления)
Dashboard make web-test web-typecheck; Vite build их не заменяет
Список статусов make generate-check; TS-файл генерируется из state.AllStatuses
YAML-конфигурация и схемы make schema-check
SDK, отдельный Go-модуль make sdk-test sdk-lint; интеграция — make sdk-test-integration
Документация mkdocs build --strict после установки docs/requirements.txt

Linux-only код и тесты (например, pkg/server/workspace) требуют Linux/Docker/CI. Успешная проверка на macOS не означает, что они выполнились; cross-build проверяет компиляцию, но не поведение.

Read the full file on GitHub · 125 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. 6d ago Changed · +3 lines · +66 tokens per session 9fb67da01a4c
  2. 9d ago Changed · -930 lines · -18,640 tokens per session scan B → A 3f5c8050848b
  3. 16d ago Changed · +24 lines · +556 tokens per session d57598bf4fe4
  4. 18d ago Changed · +65 lines · +1,468 tokens per session 0d2592f697da
  5. 29d ago Changed · +8 lines · +226 tokens per session 9f6f6b1daeb2
  6. 1mo ago Changed · +36 lines · +676 tokens per session e7ebb1b3777b
  7. 1mo ago Changed · -76 lines · -24,641 tokens per session scan C → B 18077b06d1a6
  8. 1mo ago Changed · +11 lines · +129 tokens per session 288e033c8b1e
  9. 1mo ago Changed · +9 lines · +618 tokens per session b235ebb83521
  10. 1mo ago First seen · 975 lines · 41,658 tokens per session scan C d1a9a4654429

Subscribe to this mod's changes

afm AGENTS.md is an instructions file published in the GitHub repository akopichin/afm (25 stars, last pushed today), licensed MIT. It adds 2,116 tokens to every session, about $0.0085 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-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens