agentleFS
vivekchandvivekchand/flywheel.md/llms.txt

flywheel.md

llms.txt12 starsChanged 6 months agoMITView on GitHub

FLYWHEEL.md is a single Markdown file you drop in your repo root, next to AGENTS.md, that defines the loop your AI coding agents follow to ship a change, prove it works in production, learn from it, and improve. Humans gate the steps that matter. AGENTS.md says what to do, SOUL.md says who to be, FLYWHEEL.md says how to ship and how to know you did. The loop has four default stages: Ship, Verify, Learn, Improve. Each stage names a "Done…

  • In this repositoryOne other file it gives its agents.

The file

Files
llms.txt
# FLYWHEEL.md

> FLYWHEEL.md is a single Markdown file you drop in your repo root, next to AGENTS.md, that defines the loop your AI coding agents follow to ship a change, prove it works in production, learn from it, and improve. Humans gate the steps that matter. AGENTS.md says what to do, SOUL.md says who to be, FLYWHEEL.md says how to ship and how to know you did.

The loop has four default stages: Ship, Verify, Learn, Improve. Each stage names a "Done when" exit criterion and an optional human "Gate" where the agent stops and waits for a person before going on. The point is compounding momentum: what each turn learns feeds the next, so every turn ships faster and safer. The file is instructions an agent reads, not a runtime or a plugin. To make a gate binding, wire the same rule into CI.

## Docs

- [FLYWHEEL.md, the full spec](https://flywheel.md/FLYWHEEL.md): The complete file. The four stages with their Done-when and Gate lines, where humans stay in the loop, the bar that holds every turn, and how to adapt the stages to your project.
- [README](https://flywheel.md/README.md): Short overview, the agent-file canon (AGENTS.md, SOUL.md, FLYWHEEL.md), and how to adopt it.
- [Full text for LLMs](https://flywheel.md/llms-full.txt): Everything above expanded into one Markdown file.

## Examples

- [CLI tool](https://flywheel.md/examples/cli-tool.md): A FLYWHEEL.md tuned for a command-line tool.
- [Library](https://flywheel.md/examples/library.md): A FLYWHEEL.md for a published package or SDK.
- [Web service](https://flywheel.md/examples/web-service.md): A FLYWHEEL.md for a deployed backend service.
- [Frontend app](https://flywheel.md/examples/frontend-app.md): A FLYWHEEL.md for a user-facing web app.
- [ML project](https://flywheel.md/examples/ml-project.md): A FLYWHEEL.md for a model, with evals as the evidence bar.

## Adoption

- No coding tool reads a file named FLYWHEEL.md on its own. Tools load AGENTS.md (or CLAUDE.md, .cursor/rules, GEMINI.md). To make FLYWHEEL.md default context, reference it from the file the agent already loads, with one line: "Follow the loop in ./FLYWHEEL.md for every change." Because that context file is auto-loaded, the loop travels with it for Claude Code, Cursor, Codex, and Gemini CLI. No plugin, no per-tool config matrix to keep current.
- Claude Code can import the whole file by writing @FLYWHEEL.md in CLAUDE.md.
- To make a gate actually block, wire the same rule into CI. The file states the intent; the pipeline makes it binding.

## Key ideas

- The loop: Ship, Verify, Learn, Improve. Each turn compounds.
- Done means deployed and verified, with evidence. A passing test is not proof.
- Gates are where a human stays in control: risk and trust boundaries, irreversible changes, legal, product taste. Keep gates deterministic, written as code your CI runs.
- A company without this loop is an open-loop control system that drifts at machine speed. The flywheel is the closed loop.
- License: MIT. Copy it, fork it, make it yours. No attribution needed.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.