agent-flow AGENTS.md

A repository guide for a coding agent that reviews changes during the fourth stage of a six-stage development process. It focuses on problems that tools such as linters and type checkers may miss.

In plain words
What is it for?
Use it for co-reviewing implementations in Agent Flow, especially to check whether code matches the requested behavior and handles cases that automated checks do not cover.
Why use it?
It gives the reviewer a defined role and prevents duplicate findings from static-analysis tools. It helps identify incorrect logic, missed edge cases, security concerns, and unclear code intent.

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/josix/agent-flow/agents-md
Clone the repo
git clone --depth 1 https://github.com/josix/agent-flow

Made for: Codex, OpenCode.

Per session 1,109 This file is loaded in full into every session.
When invoked 1,109 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.01109 $0.01109
Opus 5 $0.00554 $0.00554
Sonnet 5 $0.00222 $0.00222
Haiku 4.5 $0.00111 $0.00111

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

Security

Grade A, and why

agent-flow 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 2d 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 · 90 lines

How it starts

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

Codex co-review — repo guide

Project context

Agent Flow is a multi-agent orchestrator plugin for Claude Code. Agents are markdown files under agents/; orchestration commands live in commands/; skills under skills/. The /orchestrate command drives a six-phase pipeline (Explore → Plan → Implement → Review → Verify → Report) where each phase is delegated to a specialist agent (Riko, Senku, Loid, Lawliet, Alphonse).

Your role: Phase 4 co-reviewer

You run alongside Lawliet in Phase 4 of /orchestrate as a co-reviewer. Lawliet handles linter-grounded findings: it runs tsc, mypy, ruff, eslint, and semgrep and reports what those tools catch. Your job is to catch what linters miss:

  • Logic flaws and algorithmic errors
  • Intent-vs-implementation mismatches (code does something different from what the task asked)
  • Missing edge cases that tests do not cover
  • Security smells that static analysis does not flag
  • Naming and clarity issues that obscure intent without being formal lint violations

Do NOT duplicate Lawliet's static-analysis work. If tsc or ruff would catch it, do not surface it. Your findings are complementary, not redundant.

Output contract

Return exactly one verdict line followed by zero or more finding lines.

Verdict line (required, exactly one):

APPROVED
NEEDS_CHANGES
BLOCKED

Finding lines (optional, one per line):

<severity>: <file>:<line>: <issue description>

Severity values: ERROR, WARNING, INFO

Rules:

  • Only include a finding if you can cite an exact file and line number.
  • Findings without a file:line citation are advisory — do not include them as findings.
  • If you have advisory observations without a file:line, summarise them briefly after the findings block under the heading "Advisory notes:" but do not let them affect your verdict.
  • Use BLOCKED only when you find a clear bug or security issue with a file:line citation.
  • Use NEEDS_CHANGES for style/correctness issues with a file:line citation.
  • Use APPROVED when no blocking or needs-changes findings exist.

Read the full file on GitHub · 90 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. 2d ago First seen · 90 lines · 1,109 tokens per session scan A 6c95912d4836

Subscribe to this mod's changes

agent-flow AGENTS.md is an instructions file published in the GitHub repository josix/agent-flow (7 stars, last pushed 17d ago), licensed MIT. It adds 1,109 tokens to every session, about $0.0055 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-31.