freeflow
AGENTS.md3 starsChanged 5 months agoMITView on GitHub
This repo develops freeflow, a plugin/skill pack for guiding coding agents through consequential work without ceremony, silent decisions, or AI slop. The plugin is not a new agent. It is a portable workflow layer for agents such as Codex, Claude Code, Pi, and similar coding environments. This file governs contributing to the Freeflow repository. It does not define the model-facing workflow or task-memory method; those belong to the runtime context and active skills. Repository-specific constraints here still apply to changes…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository25 other files it gives its agents.
- action-selectionSkill
- bypassSkill
- commit-workSkill
- decision-gateSkill
- design-for-depthSkill
- diagnose-failureSkill
- discussSkill
- evaluate-skillSkill
- execute-workSkill
- finish-branchSkill
- handoffSkill
- launch-workSkill
- migration-workSkill
- release-workSkill
- review-artifactSkill
- review-workSkill
- setup-freeflowSkill
- simplify-codeSkill
- track-workSkill
- verify-workSkill
- workflowSkill
- write-docsSkill
- write-planSkill
- write-skillSkill
- write-specSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
32 rules. About 0 are common, 17 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use the smallest current source set relevant to the change:
- Very specific: line 13
Read CONTEXT.md for project language and direction.
- Very specific: line 14
Read dev-docs/README.md for the architecture and the developer docs index, then the subsystem doc or guide for the area you change.
- Distinctive: line 15
Before treating behavior as a bug, read its subsystem doc's decisions and intended behavior that looks wrong.
- Very specific: line 16
Read dev-docs/adr/ when the change touches a durable decision.
- Very specific: line 19
Read the latest relevant file in docs/handoffs/ only when a point-in-time transfer is needed or the current record does not cover it.
- Distinctive: line 20
Read the relevant live skill, runtime contract, test, package metadata, or release-evidence record before editing.
- Distinctive: line 27
When work depends on Pi or another external host's source, API, lifecycle, or documentation:
- Distinctive: line 29
Do not use installed, bundled, cached, or locally generated host documentation as current source authority.
- Distinctive: line 33
Do not float to a newer upstream commit during one qualification or implementation slice without recording the source change and …
- Very specific: line 50
When authoring or revising a Freeflow skill and current coverage, evidence, or behavior needs an outside reference, consult this stack:
- Distinctive: line 58
Use Matt for concise skill wording, sharp failure-prevention rules, low-ceremony loops, and practical engineering judgment.
- Very specific: line 60
Use Obra/Superpowers for workflow phases, planning, execution, review, verification, debugging, and lifecycle gaps Freeflow has not encoded …
- Very specific: line 62
Use Anthropic skill-creator for skill structure, trigger descriptions, progressive disclosure, baseline versus with-skill evals, and …
- Distinctive: line 64
When reference skills conflict during skill development:
- Very specific: line 75
Use CONTEXT.md for project language.
- Distinctive: line 76
Use ADRs sparingly for hard-to-reverse, surprising, tradeoff-driven decisions.
- Distinctive: line 77
Do not hardcode volatile repo facts, directory inventories, or stack summaries into durable memory.
- Distinctive: line 78
Do not add enforcement hooks until skill wording and evals prove the behavior needs mechanical enforcement.
- Distinctive: line 84
Never change content a provider has already cached: no edits, reordering, truncation, or re-rendering of earlier messages or tool results.
- Very specific: line 86
Keep the Freeflow system section and tool definitions fixed.
- Very specific: line 97
Follow its rules: memory-first state, ask Pi for the branch once per change (cachedBranch()), hash once, extend whole-history values …
- Very specific: line 98
Keep pi-extension/tests/integration/request-path-budget.test.js passing, and add a count there for any new work that could grow with the …
- Very specific: line 99
Run npm run perf:request before and after a request-path change, and report the numbers when they move.
- Very specific: line 104
Run npm run check:changelog after changelog changes.
- Distinctive: line 105
Never edit released changelog sections.
- Distinctive: line 109
If leaving a document stale would make the repository misleading, stop and ask rather than silently editing it.
- Very specific: line 113
Use release-work for version classification, release preparation, artifact checks, publication, recovery, and consumer-side verification.
- Distinctive: line 117
Never reuse an npm version or force-move a release tag.
- Very specific: line 119
Do not run npm run snapshot:refresh as part of a production release.
- Distinctive: line 129
Write like Matt Pocock's best skills:
- Distinctive: line 137
Do not write long manuals when a sharp rule will do.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Freeflow Agent Memory
This repo develops freeflow, a plugin/skill pack for guiding coding agents through consequential work without ceremony, silent decisions, or AI slop.
The plugin is not a new agent. It is a portable workflow layer for agents such as Codex, Claude Code, Pi, and similar coding environments.
This file governs contributing to the Freeflow repository. It does not define the model-facing workflow or task-memory method; those belong to the runtime context and active skills. Repository-specific constraints here still apply to changes made in this repo.
Read First
Use the smallest current source set relevant to the change:
- Read
CONTEXT.mdfor project language and direction. - Read
dev-docs/README.mdfor the architecture and the developer docs index, then the subsystem doc or guide for the area you change. Readplugin-docs/README.mdfor user-facing behavior when the change touches it. - Before treating behavior as a bug, read its subsystem doc's decisions and intended behavior that looks wrong; listed behavior is a design choice for the user to change, not a fix.
- Read
dev-docs/adr/when the change touches a durable decision. - Recover the active Working Record through Track Work when an ongoing task has one.
- Before designing or changing a capability, check
.freeflow/tasks/for related tasks and read theirrecord.md,specs/, andplans/. Accepted designs and their rationale often live only there. The directory is Git-ignored:.ignorekeeps it visible to ripgrep-based search, but tools that honor only.gitignoreskip it, so search that path explicitly. - Read the latest relevant file in
docs/handoffs/only when a point-in-time transfer is needed or the current record does not cover it. - Read the relevant live skill, runtime contract, test, package metadata, or release-evidence record before editing.
- Inspect
.skill-eval/and the accepted bundle when changing or evaluating a skill's evidence. Historical v1 cases and reports under.deprecated/skill-evals-v1/are documentary only and never establish current readiness.
Historical plans, research, handoffs, issues, and evidence under docs/ preserve project context but are not current product authority. Live repository evidence and current plugin-docs/ pages override them.
External Host Source Provenance
When work depends on Pi or another external host's source, API, lifecycle, or documentation:
- Do not use installed, bundled, cached, or locally generated host documentation as current source authority.
- Clone or fetch the upstream repository into an ignored temporary checkout, resolve the current tip to an exact commit before reading it, and use that pinned checkout's source and docs for design work.
- Record the remote, exact commit, relevant package version, and source/artifact hashes in task evidence when the claim is consequential.
- For behavior of an installed or bundled artifact, identify the exact artifact and establish correspondence to the source commit when possible. A current upstream checkout does not prove an older artifact's behavior; qualify the artifact through an isolated fixture and state the boundary when correspondence is unavailable.
- Do not float to a newer upstream commit during one qualification or implementation slice without recording the source change and reconciling affected evidence.
- Network fetches, temporary clones, and artifact qualification remain covered environment effects; this rule does not authorize them by itself.
Development Snapshot Boundary
Pi development consumes a committed Freeflow snapshot, not this checkout's working tree:
npm run snapshot:refreshCommit intended Freeflow changes before refreshing. The tool archives the selected Git revision, installs only its declared runtime dependencies from the committed lockfile with scripts disabled, packs it with npm pack --ignore-scripts, records source/package/dependency provenance, and replaces the self-contained target atomically. It excludes uncommitted and ignored source files and does not mutate host state. Snapshots are development-only; production uses ordinary npm/Git sources. Read plugin-docs/integrations/pi.md for current native Pi guidance; use .deprecated/project-docs/guides/tooling/freeflow-development-snapshot.md only for detailed historical snapshot mechanics.
Host launch, import, and update behavior remain host-owned; a development snapshot does not establish host support or runtime delivery.
Reference Stack For Skill Development
When authoring or revising a Freeflow skill and current coverage, evidence, or behavior needs an outside reference, consult this stack:
- Matt Pocock skills are the primary style and behavior reference.
- Obra/Superpowers skills are the workflow lifecycle reference.
- Anthropic
skill-creatoris the skill authoring and eval methodology reference.
These references guide skill development and evaluation; they are not runtime dependencies and do not replace the active Freeflow skills during ordinary work.
Use Matt for concise skill wording, sharp failure-prevention rules, low-ceremony loops, and practical engineering judgment.
Use Obra/Superpowers for workflow phases, planning, execution, review, verification, debugging, and lifecycle gaps Freeflow has not encoded yet.
Use Anthropic skill-creator for skill structure, trigger descriptions, progressive disclosure, baseline versus with-skill evals, and iteration from measured failures.
When reference skills conflict during skill development:
- User instruction wins.
- Repo memory wins:
AGENTS.md,CONTEXT.md, ADRs. - Freeflow docs and eval reports win.
- Matt style wins for interaction shape and skill wording.
- Obra/Superpowers wins for lifecycle coverage.
- Anthropic
skill-creatorwins for skill creation and eval mechanics.
Working Rules
- Use
CONTEXT.mdfor project language. Do not turn it into a spec or implementation summary. - Use ADRs sparingly for hard-to-reverse, surprising, tradeoff-driven decisions.
- Do not hardcode volatile repo facts, directory inventories, or stack summaries into durable memory.
- Do not add enforcement hooks until skill wording and evals prove the behavior needs mechanical enforcement.
Prompt Cache
Freeflow must never make a user pay more than native Pi for the same work. Read Prompt cache rules before changing prompts, tools, projection, request history, routing, tool results, or provider support.
- Never change content a provider has already cached: no edits, reordering, truncation, or re-rendering of earlier messages or tool results.
- Append new content after what the requester already received; do not insert it earlier.
- Keep the Freeflow system section and tool definitions fixed. Gates and the Runtime State express changing state.
- Route generated per-turn content through request history so it keeps its position.
- Prove every request-assembly change with a test in which a later request starts with the earlier one.
- Gate provider-specific request changes on provider documentation or a recorded live probe; leave unqualified routes untouched.
- Advise on host cache settings such as retention; never override them.
- Report cache diagnostics to
/freeflow status, not the footer.
Request-Path Performance
Freeflow runs on every Pi turn and request, so its work delays every model call and can grow with session length unnoticed. Read Performance before changing Freeflow's event handlers or anything they call.
- Follow its rules: memory-first state, ask Pi for the branch once per change (
cachedBranch()), hash once, extend whole-history values incrementally, write only on change, and keep diagnostics off the request path. - Keep
pi-extension/tests/integration/request-path-budget.test.jspassing, and add a count there for any new work that could grow with the session. - Run
npm run perf:requestbefore and after a request-path change, and report the numbers when they move.
Documentation And Changelog Policy
- Agents may update
CHANGELOG.mdunder## Unreleasedfor verified consumer-visible work when the task authorization covers that update. Use only the canonical categoriesBreaking Changes,Added,Changed,Fixed, andRemoved; keep each entry as a bullet under exactly one category. Defer the entry until the final implementation slice unless bounded write-ahead authorization says otherwise. - Run
npm run check:changelogafter changelog changes. Never hand-edit versioned release sections or ask automation to infer a category; release preparation only normalizes already categorized entries. - Never edit released changelog sections.
- Two kinds of documentation, each for its own reader: user docs in
plugin-docs/(installing, configuring, using Freeflow) and developer docs indev-docs/(architecture, subsystems, maintainer guides, decision records). Write and update both with the Write Docs skill. - Developer docs change in the same commit as the behavior they describe, without separate authorization; run
node skills/write-docs/scripts/docs-check.mjs dev-docsafter changing them. - Changes to
plugin-docs/, public contract or install guidance, ADRs, or release evidence require explicit authorization and should be deferred to the final documentation slice. - If leaving a document stale would make the repository misleading, stop and ask rather than silently editing it.
Release And CI
- Use
release-workfor version classification, release preparation, artifact checks, publication, recovery, and consumer-side verification. npm run checkis the deterministic local/CI gate. It does not run model-based skill evaluations or require publication credentials.- Release preparation may update version metadata and move verified
Unreleasednotes into a version section, but it must not commit, tag, push, publish, or create a GitHub Release by itself. - A Git tag in the form
vX.Y.Zis the human-controlled release boundary. The tag workflow verifies the exact source and version, validates changelog/release notes before publication, builds and checks generated output, publishes one exact npm tarball with provenance, verifies registry identity, and creates the GitHub Release. - Never reuse an npm version or force-move a release tag. If publication partially succeeds, inspect remote state before retrying; recovery is allowed only when the existing registry artifact matches the candidate checksum and provenance.
- npm Trusted Publishing and the protected
npmGitHub environment are external prerequisites; source checks cannot prove their configuration. - Do not run
npm run snapshot:refreshas part of a production release. Snapshots are development-only.
Implementation Pointers
The repo root is the single source of truth for runtime skills, plugin docs, current .skill-eval/ definitions, and command-surface metadata. Retired Output Router source and evidence live under .deprecated/output-router/. The npm tarball contains only runtime-required files; GitHub retains docs and evidence.
For the current skill set, inspect skills/ when changing or evaluating a skill. Runtime behavior and task-memory mechanics belong to their corresponding skill and runtime sources; this contributor file does not restate them.
Style
Write like Matt Pocock's best skills:
- concise
- generalizable
- specific where behavior can fail
- light on procedure
- clear about stop conditions
Do not write long manuals when a sharp rule will do.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

