agentleFS
FlatbreadLabsFlatbreadLabs/flatbread/AGENTS.md

flatbread

AGENTS.md69 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

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
  1. Distinctive:

    Write every agent-facing text in clear, concrete English in the manner of George Orwell.

    line 5
  2. Distinctive:

    Prefer short words, short sentences, and the active voice.

    line 13
  3. Very specific:

    Avoid unexplained internal shorthand and abstract labels such as epistemic, homogeneous refs, retro-link, roll up, dogfood, hero, surface, …

    line 22
  4. Distinctive:

    Before you send text, make sure a reader can answer:

    line 27
  5. Very specific:

    Use mergify stack push instead of git push on feature branches (the .husky/pre-push hook will remind you).

    line 58
  6. Very specific:

    Prefer inherit (or omit Task model) so children match the parent.

    line 67
  7. Very specific:

    Vitest packages run in watch mode by default: Always use vitest run (not bare vitest) to get a single run and exit.

    line 74
  8. Very specific:

    Proof skill in this monorepo: Use the workspace flatbread binary.

    line 76
  9. Very specific:

    Build before test: All packages must be built (pnpm build) before running tests or starting dev servers.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  1. What changed?
  2. What does each named thing do?
  3. 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 via preinstall script)
  • 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 match pnpm 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 use pnpm -F @flatbread/utils exec vitest run / pnpm -F @flatbread/codegen exec vitest run (run avoids 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). From examples/nextjs, prefer pnpm exec flatbread start -- next dev --turbopack. Use flatbread start — flatbread dev is 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 push instead of git push on feature branches (the .husky/pre-push hook will remind you).
  • The commit-msg hook (.husky/commit-msg) auto-appends a Change-Id trailer for stack tracking.
  • See .agents/skills/mergify-stack/SKILL.md for 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. The onlyBuiltDependencies list allows esbuild, sharp, @swc/core, etc. to run their postinstall scripts automatically during pnpm install.
  • Vitest packages run in watch mode by default. Always use vitest run (not bare vitest) to get a single run and exit.
  • flatbread CLI is not on PATH globally. From examples/nextjs, prefer pnpm exec flatbread … (local binary), or npx flatbread from a shell. The pnpm play script from the root handles this automatically.
  • Proof skill in this monorepo. Use the workspace flatbread binary. After editing packages/proof/skills/proof, run pnpm skills:sync. Do not run proof install-skill here; the CLI skips it.
  • Build before test. All packages must be built (pnpm build) before running tests or starting dev servers. pnpm test handles this automatically.
  • -H, --https does not make Flatbread serve HTTPS. The server listens over plain HTTP whatever you pass. From examples/nextjs, run pnpm exec flatbread start -- next dev --turbopack.
  • Full local CI parity check: pnpm verify runs 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) and weave-driver (git merge driver), installed via cargo 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 setup was already run; git config merge.weave.driver points to weave-driver. No re-run needed unless the binary path changes.
  • Rust toolchain: Weave requires Rust >= 1.89. The update script ensures rustup default stable is set.

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.