FlowGuard: Instructions file for Codex

AGENTS.md

FlowGuard AGENTS.md is an instructions file for Codex, OpenCode from liuyingxuvka/FlowGuard. It costs 625 tokens per session, scanned A, original, MIT.

Project instructions for working on FlowGuard, a tool and skill suite that checks whether changes follow a repository's rules. They describe which checks to run, how to use the project's records, and how to maintain its agent skills.

In plain words
What is it for?
Use them when making non-trivial changes to FlowGuard, updating its skill suite, or running project audits and upgrades.
Why use it?
They give coding agents the repository-specific process for auditing and updating FlowGuard without using outdated formats or skipping required validation.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/liuyingxuvka/flowguard/agents-md"><img src="https://agentmods.dev/badge/instructions/liuyingxuvka/flowguard/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 625 This file is loaded in full into every session.
When invoked 625 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.00625 $0.00625
Opus 5.5 $0.00250 $0.00250
Sonnet 5.5 $0.00125 $0.00125
Haiku 4.5 $0.00063 $0.00063

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

Security

Grade A, and why

FlowGuard 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 · 35 lines

How it starts

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

FlowGuard repository rules

FlowGuard maintains one model tree of the project (map, executable models and tests bound to the code), with a current and a target model. This repository uses FlowGuard on itself.

Every task in this repository

  1. python -m flowguard read - read the map first; open only the files of the components you touch.
  2. Behaviour or structure change: target first (target start, target add, target check, then target promote); code-only change: edit directly. Keep responsibilities single-owned; extend the existing owner instead of adding a second one.
  3. python -m flowguard change - fix every check error; run the tests and models it lists.
  4. Update the description of every component listed as REVIEW, then python -m flowguard map confirm <id>.
  5. Before each push, run the affected checks selected above and report their results. For the final frozen source SHA, the complete ci.yml workflow must pass: Ubuntu Python 3.11 runs python -m pytest -q and python -m flowguard release once; Ubuntu Python 3.13 and Windows Python 3.12 run the core path/packaging test files listed in ci.yml and the real skill copy/--check. Those two smoke environments do not claim complete cross-platform coverage. Publication waits for the entire workflow on the exact source SHA; do not repeat the full local suite solely to produce another checkpoint.

Layout

  • flowguard/ engine, node kinds (validator.py, ui_flow.py), the test-tree shard tool; flowguard/map/ map, target, discovery and proof layer.
  • .agents/skills/flowguard/ the single public skill (SKILL.md, references).
  • .flowguard/map.json, .flowguard/models/: FlowGuard's own map and models. .flowguard/cache/ is never committed.
  • tests/ unit tests; examples/ runnable teaching models; docs/ long-form notes.

Rules

  • No generated check outputs, execution records or standalone hashes in git except the fingerprint fields written by confirm.
  • Do not add a second way to do something that already has an owner; extend the owner.
  • When map lint reports a real architecture problem you are not fixing now, record it in accepted_debts with a reason instead of hiding it.
  • Report exactly which commands you ran and their results; never mark unrun checks as passed.
  • Installing the skill (python scripts/install_skill.py --target <skills dir>), tagging and publishing are separate steps that need the maintainer's explicit request.

Read the full file on GitHub · 35 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 Changed · -7 tokens per session eb65ef539096
  2. 6d ago Changed · +43 tokens per session 60441771c526
  3. 8d ago Changed · +3 lines · +43 tokens per session 733ec8f44076
  4. 12d ago Changed · +104 tokens per session 7569db295ee1
  5. 16d ago Changed · -72 lines · -830 tokens per session 8bc2d8f0e94f
  6. 22d ago Changed · +79 tokens per session ebbc390db6b1
  7. 1mo ago Changed · +4 lines · +26 tokens per session f3de6a97b1e4
  8. 1mo ago Changed · -56 lines · -1,820 tokens per session 364ed5e751a1
  9. 1mo ago Changed 90815ddffd08
  10. 1mo ago First seen · 156 lines · 2,987 tokens per session scan A 2c53a33ad897

Subscribe to this mod's changes

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