docflow: Instructions file for Codex

AGENTS.md

docflow AGENTS.md is an instructions file for Codex, OpenCode from EvolveHQ/docflow. It costs 2,016 tokens per session, scanned A, original, MIT.

Repository instructions for docflow, a tool that adds documentation-led working practices and architecture decision records to software projects. An architecture decision record is a short document explaining an important technical choice.

In plain words
What is it for?
Use them when working on docflow itself or its shared skills for Claude Code, Claude Cowork, pi, Codex, and OpenCode.
Why use it?
They give coding agents the repository structure and rules they must follow when creating, changing, shipping, or reviewing these records and plans.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/evolvehq/docflow/agents-md"><img src="https://agentmods.dev/badge/instructions/evolvehq/docflow/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,016 This file is loaded in full into every session.
When invoked 2,016 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.02016 $0.02016
Opus 5.5 $0.00806 $0.00806
Sonnet 5.5 $0.00403 $0.00403
Haiku 4.5 $0.00202 $0.00202

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

Security

Grade A, and why

docflow 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 11d 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 · 163 lines

How it starts

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

AGENTS.md

This file provides guidance to coding agents working in this repository.

What this repository is

docflow is a multi-target plugin that scaffolds (and retrofits) ADR-driven, documentation-led conventions into other repositories, plus a set of lifecycle skills to author, queue, ship, and audit ADRs. It ships the same plugins/docflow/skills/ directory to eight coding agents — Claude Code, pi, Codex, OpenCode, Grok, Cursor, omp and Copilot — from one source (see ADR 0015). This repo now also dogfoods its own conventions: the ADR catalogue, plan queue, and _agent/ coordination below describe how docflow itself is built and maintained.

Repository structure

  • plugins/docflow/skills/ — the product. bootstrap/ (with templates/) plus the lifecycle skills (new-adr, new-plan, ship-item, add-convention, audit, brainstorm, agent-wave, rollup), plus five workspace operating skills (workspace-setup, workspace-status, workspace-scope, workspace-dispatch, workspace-sync). Declarative agents/openai.yaml sidecars provide optional host interface metadata; SKILL.md remains sufficient on every target. This is what gets installed. One source for every target.
  • plugins/docflow/workspace/ — packaged workspace contract, schema, external validator and asset resolver, portable native-host guides and source-bound workspace/repository fixtures. Detached skill copies also require this complete asset directory; templates remain in bootstrap.
  • plugins/docflow/.claude-plugin/plugin.json — Claude Code / Copilot plugin manifest; plugins/docflow/.codex-plugin/plugin.json — Codex.
  • .claude-plugin/marketplace.json + .agents/plugins/marketplace.json — the marketplaces (root), each pointing at ./plugins/docflow.
  • package.json — pi manifest (pi.skills → ./plugins/docflow/skills)
    • npm metadata.
  • README.md, USAGE.md, docs/ — user-facing documentation.
  • adr/0000-template.md — canonical ADR template.
  • adr/NNNN-<kebab-slug>.md — one ADR per decision, contiguous numbering, no gaps. These describe docflow itself. (The optional domains/ grouping layer the product offers is not enabled in this repo.)
  • INDEX.md — table regenerated from every ADR's metadata block.
  • CONVENTIONS.md — authoring rules (read before editing anything).
  • plan/todo/NNNN-<slug>.md — pending work, lower numbers run first.
  • plan/done/<YYYY-MM-DD>-<slug>.md — shipped work, chronological.
  • _agent/prompts/autonomous.md — the single-writer run contract. Live ownership, blockers and stop reasons belong to each queued item.
  • scripts/verify.mjs — the static verify gate (manifests + version sync, skill structure + parity, ADR catalogue + INDEX sync, ADR-privacy leak scan).
  • evals/ — behavioural eval harness: deterministic assertions plus subagent-driven end-to-end skill runs (release gate, not per-push).

Read the full file on GitHub · 163 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. 11d ago Changed · +9 lines · +141 tokens per session a2a5efa5e3c5
  2. 1mo ago Changed · +19 lines · +195 tokens per session 79f03e57eb82
  3. 1mo ago First seen · 135 lines · 1,680 tokens per session scan A 38af1cf87185

Subscribe to this mod's changes

docflow AGENTS.md is an instructions file published in the GitHub repository EvolveHQ/docflow (16 stars, last pushed 3d ago), licensed MIT. It adds 2,016 tokens to every session, about $0.0081 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

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,649 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,257 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,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens