flow

flow is a cursor rule for Cursor from cofin/flow. It costs 1,177 tokens per session, scanned A, original, Apache-2.0.

Repository rules for Flow, a context-driven development process used in projects containing an .agents folder. They define which instructions, plans, specifications, and reviews an agent must follow.

In plain words
What is it for?
Use them when planning or implementing repository changes, reviewing work, handling disagreements in requirements, and preparing local commits.
Why use it?
They prevent work from being based on incomplete project context and require decisions, task status, and quality checks to stay synchronized.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

Good fit Use them when planning or implementing repository changes, reviewing work, handling disagreements in requirements, and preparing local commits.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cofin/flow/flow
View source ↗ cofin/flow
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.

Clone the repo
git clone --depth 1 https://github.com/cofin/flow

Made for: Cursor.

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 flow

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/cofin/flow/flow"><img src="https://agentmods.dev/badge/rules/cofin/flow/flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,177 This file is loaded in full into every session.
When invoked 1,177 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.01177 $0.01177
Opus 5.5 $0.00471 $0.00471
Sonnet 5.5 $0.00235 $0.00235
Haiku 4.5 $0.00118 $0.00118

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

Security

Grade A, and why

flow 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 19d 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.

.cursor/rules/flow.mdc · 64 lines

How it starts

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

Flow Operational Rule

Activation: The always-applied repository rule and AGENTS.md activate Flow.

When a repository has .agents/, read its configured root, bundle index, active spec, authoritative task worksheet, and applicable recursively nested knowledge before acting. Operational skills resolve only from .agents/skills/.

Route through the flow skill and exactly one lifecycle skill. Refine plans until every worksheet is executable, follow the selected worksheet without improvising, and route contradictions through revise/refine. Rewrite revised worksheets in place in present tense without historical transcripts, and keep Markdown checklist markers ([x], [~], [ ]) synchronized with task state. Apply direct Markdown frontmatter state synchronization and reconcile task-first.

Close and archive completed specs on the working branch without waiting for branch merge; when scope grows beyond the active spec, finish the current spec and open a follow-up spec via /flow:plan. Before deleting any spec during archive, curate evidence-backed OKF chapters across nested domain, architecture, pattern, testing, and gotcha folders (knowledge/index.md).

Write direct, zero-slop prose and code: avoid AI puffery, negative parallelisms, formulaic transitions, and inline # comments in Python (use docstrings and PEP 585 types). Proactively fix adjacent lint, typing, or dead-code issues in touched in-scope files and suggest the exact canonical /flow:<action> command next.

Use structured-choice-v1 for unresolved decisions: one decision at a time, only through a currently allowed compatible native tool or the equivalent sequential-text fallback. Run correctness review and then the mandatory fresh quality review before finish/archive.

Commits remain local unless the user explicitly asks for delivery. Never create, move, force-update, or delete Git tags.

Read the full file on GitHub · 64 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. 19d ago Changed · +13 lines · +193 tokens per session 9479f6548adf
  2. 1mo ago First seen · 51 lines · 984 tokens per session scan A 1d8e082a8909

Subscribe to this mod's changes

flow is a cursor rule published in the GitHub repository cofin/flow (19 stars, last pushed 20d ago), licensed Apache-2.0. It adds 1,177 tokens to every session, about $0.0047 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.