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.
npx agentmods add instructions/xiaojiou176-open/codeflow/agents-mdgit clone --depth 1 https://github.com/xiaojiou176-open/codeflowWrote 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.
[](https://agentmods.dev/instructions/xiaojiou176-open/codeflow/agents-md)<a href="https://agentmods.dev/instructions/xiaojiou176-open/codeflow/agents-md"><img src="https://agentmods.dev/badge/instructions/xiaojiou176-open/codeflow/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.06303 | $0.06303 |
| Opus 5 | $0.03152 | $0.03152 |
| Sonnet 5 | $0.01261 | $0.01261 |
| Haiku 4.5 | $0.00630 | $0.00630 |
Grade D, and why
codeflow AGENTS.md scanned grade D with 2 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 5d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
live-provider rule that resolves process env first and `~/.codex/config.toml` Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
before the clean-room `rm -rf` sweep, plus quarantining stubborn dashboard How it starts
The opening of the file, as written. The whole thing — 442 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS Guide
Mission
Work in Codeflow as a contract-first engineering agent:
- keep diffs small and auditable
- keep code and docs in sync
- verify behavior with real commands before claiming success
- never commit runtime caches, local secrets, logs, or generated noise
Canonical Read Order
README.mddocs/index.htmlconfigs/repo_positioning.jsonconfigs/docs_nav_registry.json- nearest local wrapper under
apps/*/AGENTS.mdorapps/*/CLAUDE.md
Key Commands
- bootstrap:
npm run bootstrap - local fast CI:
npm run ci - local strict CI:
npm run ci:strict - fast verification:
npm run test:quick - main local gate:
npm run test - host safety scan:
npm run scan:host-process-risks - space audit:
npm run space:audit - docker runtime audit:
npm run docker:runtime:audit - hygiene:
bash scripts/check_repo_hygiene.sh - workflow security:
npm run scan:workflow-security - Trivy repo scan:
npm run scan:trivy - closeout secret scan:
npm run security:scan:closeout - truth split:
npm run truth:triage - full pre-commit:
pre-commit run --all-files - repo-owned
scripts/*.pyentrypoints must remain runnable through directpython3 scripts/<name>.pyexecution orbash scripts/run_governance_py.shwithout relying on a pre-seeded repo-rootPYTHONPATH - host-compatible pre-commit hooks that execute repo-owned
scripts/*.pyentrypoints must use the same wrapper path (or an equivalentpython3 -Bcontract) so clean hook runs do not leave repo-local__pycache__residue
Generated Governance Context
- active CI layers:
pre-commit,pre-push,hosted,nightly,manual - do not reintroduce a sixth CI/profile/workflow layer; move scheduled heavy checks to
nightlyand explicit high-cost verification tomanual
- trust flow:
ci-trust-boundary -> quick-feedback -> hosted policy/core slices -> pr-release-critical-gates -> pr-ci-gate - hosted policy/core slices:
policy-and-security, core-tests - untrusted PR path:
quick-feedback -> untrusted-pr-basic-gates -> pr-ci-gate - protected sensitive lanes:
workflow_dispatch -> owner-approved-sensitive -> ui-truth / resilience-and-e2e / release-evidence - canonical machine SSOT:
configs/ci_governance_policy.json
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.
- 5d ago First seen · 442 lines · 6,303 tokens per session scan D 9423310cd698
codeflow AGENTS.md is an instructions file published in the GitHub repository xiaojiou176-open/codeflow (207 stars, last pushed 1mo ago), licensed MIT. It adds 6,303 tokens to every session, about $0.0315 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
ai-agent-thinkroom AGENTS.md
Instructions for phenomenoner/ai-agent-thinkroom, covering repository instructions, authority, engineering method, required gates and claim discipline.
decapod CLAUDE.md
Instructions for DecapodLabs/decapod, covering claude.md - agent entrypoint, orientation & documentation, mandatory prompt safety gate, project context and quick start.
geolens CLAUDE.md
Claude Code instructions for geolens-io/geolens: This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
flyto-core CLAUDE.md
Claude Code instructions for flytohub/flyto-core, covering claude notes, cross-agent handoff and shared code intelligence.
substack-gateway-oss CLAUDE.md
Claude Code instructions for jakub-k-slys/substack-gateway-oss, covering claude.md, commands, install dependencies (dev included, all workspace members), run the server (dev mode with reload) and lint.
briefloop AGENTS.md
AGENTS.md instructions for Stahl-G/briefloop, covering agents.md, purpose, instruction scope, environment separation and context mode.