flatbread
AGENTS.md67 starsChanged 2 months agoMITView on GitHub
Write every agent-facing text in clear, concrete English in the manner of George Orwell. This covers chat replies, plans, pull request titles and bodies, commit messages, documentation, and code comments. Write for readers who understand software but are new to Flatbread and the change at hand. The always-on Cursor rule .cursor/rules/orwell-prose.mdc holds the full style contract. In short: - Prefer short words, short sentences, and the active voice. - Cut any word that does no work. Prefer everyday English to…
- Installs packages
- Commits and pushes
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 repository18 other files it gives its agents.
- .cursor/rules/cursor-cloud-agent-url.mdcCursor rule
- .cursor/rules/cursor-grok-latest.mdcCursor rule
- .cursor/rules/flatbread-pmf-workflow.mdcCursor rule
- .cursor/rules/flatbread-schema-migration.mdcCursor rule
- .cursor/rules/orwell-prose.mdcCursor rule
- .cursor/rules/post-edit-lint-fix.mdcCursor rule
- .cursor/rules/typescript-rules.mdcCursor rule
- agent-browserSkill
- effort-modelingSkill
- grill-with-effortsSkill
- mergify-ciSkill
- mergify-configSkill
- mergify-merge-protectionsSkill
- mergify-merge-queueSkill
- mergify-stackSkill
- proofSkill
- flatbread-major-migrationSkill
- orchestrator-executorSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Write every agent-facing text in clear, concrete English in the manner of George Orwell.
- Distinctive: line 13
Prefer short words, short sentences, and the active voice.
- Very specific: line 22
Avoid unexplained internal shorthand and abstract labels such as epistemic, homogeneous refs, retro-link, roll up, dogfood, hero, surface, …
- Distinctive: line 27
Before you send text, make sure a reader can answer:
- Very specific: line 58
Use mergify stack push instead of git push on feature branches (the .husky/pre-push hook will remind you).
- Very specific: line 67
Prefer inherit (or omit Task model) so children match the parent.
- Very specific: line 74
Vitest packages run in watch mode by default: Always use vitest run (not bare vitest) to get a single run and exit.
- Very specific: line 76
Proof skill in this monorepo: Use the workspace flatbread binary.
- Very specific: line 77
Build before test: All packages must be built (pnpm build) before running tests or starting dev servers.
≈ “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
Agents
Plain-language output
Write every agent-facing text in clear, concrete English in the manner of George Orwell. This covers chat replies, plans, pull request titles and bodies, commit messages, documentation, and code comments. Write for readers who understand software but are new to Flatbread and the change at hand.
The always-on Cursor rule .cursor/rules/orwell-prose.mdc holds the full
style contract. In short:
- Prefer short words, short sentences, and the active voice.
- Cut any word that does no work. Prefer everyday English to jargon.
- Lead with what changed, why it matters, or what the reader must do.
- Explain a Flatbread term the first time it appears. Keep exact API, CLI, field, and record names in code formatting.
- Describe behavior directly: say what creates, links, stores, reads, or validates what.
- Present multi-step work as ordered steps.
Avoid unexplained internal shorthand and abstract labels such as epistemic,
homogeneous refs, retro-link, roll up, dogfood, hero, surface, and
stack. Use one only when accuracy demands it, and define it in the same
sentence.
Before you send text, make sure a reader can answer:
- What changed?
- What does each named thing do?
- What must they do next, and in what order?
Cursor Cloud specific instructions
Overview
Flatbread is Git-native relational content for TypeScript/JavaScript apps: flat files become a typed graph; GraphQL is one read surface, not the whole product. It's a pnpm monorepo. See CONTRIBUTING.md for the canonical onboarding path.
Key commands
See CONTRIBUTING.md for full details. Quick reference:
- Install:
pnpm install(enforces pnpm viapreinstallscript) - Build:
pnpm build(builds all packages except examples via tsup) - Lint:
pnpm lint(prettier) - Lint fix (after edits):
pnpm lint:fix:fast(writes formatting repo-wide to matchpnpm lint; staged-only:pnpm lint:fix, also runs via.husky/pre-commit) - Typecheck:
pnpm typecheck - Test:
pnpm test(builds, then runs ava + vitest suites). Vitest packages usepnpm -F @flatbread/utils exec vitest run/pnpm -F @flatbread/codegen exec vitest run(runavoids watch mode). - Full verify:
pnpm verify(lint + typecheck + build + test) - Oven: the DAG task runner lives at https://github.com/FlatbreadLabs/oven.
- Proof: agent memory in this repo. CLI is
flatbread proof …; records live under.flatbread-proof/. - Dev server:
pnpm play(GraphQL on port 5057, Next.js on port 3000). Fromexamples/nextjs, preferpnpm exec flatbread start -- next dev --turbopack. Useflatbread start—flatbread devis not a CLI command.
Mergify Stacks
The repo uses Mergify stacks for PR management. The mergify-cli is installed via pip install mergify-cli (included in the update script). Key points:
- Use
mergify stack pushinstead ofgit pushon feature branches (the.husky/pre-pushhook will remind you). - The commit-msg hook (
.husky/commit-msg) auto-appends aChange-Idtrailer for stack tracking. - See
.agents/skills/mergify-stack/SKILL.mdfor the full workflow.
PR review models
The Flatbread PR Review automation runs .cursor/commands/read-branch.md
as /read-branch. Architecture, proof-journal, and correctness subagents
use the latest Cursor Grok model. Do not pin cursor-grok-4.5-high.
Prefer inherit (or omit Task model) so children match the parent.
Quality/simplify stays on Composer. See
.cursor/rules/cursor-grok-latest.mdc.
Gotchas
- Native build scripts are approved in
pnpm-workspace.yaml. TheonlyBuiltDependencieslist allows esbuild, sharp, @swc/core, etc. to run their postinstall scripts automatically duringpnpm install. - Vitest packages run in watch mode by default. Always use
vitest run(not barevitest) to get a single run and exit. flatbreadCLI is not on PATH globally. Fromexamples/nextjs, preferpnpm exec flatbread …(local binary), ornpx flatbreadfrom a shell. Thepnpm playscript from the root handles this automatically.- Proof skill in this monorepo. Use the workspace
flatbreadbinary. After editingpackages/proof/skills/proof, runpnpm skills:sync. Do not runproof install-skillhere; the CLI skips it. - Build before test. All packages must be built (
pnpm build) before running tests or starting dev servers.pnpm testhandles this automatically. -H, --httpsdoes not make Flatbread serve HTTPS. The server listens over plain HTTP whatever you pass. Fromexamples/nextjs, runpnpm exec flatbread start -- next dev --turbopack.- Full local CI parity check:
pnpm verifyruns lint, typecheck, build, and all tests.
Weave merge driver
The repo uses weave for entity-level semantic merges. The .gitattributes file routes supported file types (.ts, .js, .json, .md, .yaml, etc.) through weave-driver, which resolves merges at the function/class/entity level instead of line-by-line.
- Binaries:
weave(CLI) andweave-driver(git merge driver), installed viacargo install --git https://github.com/Ataraxy-Labs/weave weave-cli weave-driver. The update script handles this. - Preview a merge:
weave preview <branch>— dry-run that shows which files/entities would merge cleanly or conflict. - Config:
weave setupwas already run; git configmerge.weave.driverpoints toweave-driver. No re-run needed unless the binary path changes. - Rust toolchain: Weave requires Rust >= 1.89. The update script ensures
rustup default stableis set.
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.

