agentleFS
get-bbget-bb/bb/AGENTS.md

bb

AGENTS.md4.1k starsChanged 2 months agoMITView on GitHub

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 19 mentionsSep 2026: 17 mentionsOct 2026: 10 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the get-bb/bb repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about get-bb/bb

The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 46

Talked about on GitHub, Hacker News and Bluesky (46 times).

On GitHub · 44

39 more on GitHub

On Hacker News · 1

  • 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the linked guidance when its topic applies to the task.

    line 7
  2. Distinctive:

    When renaming a domain concept, search project-wide for stale names in variables, files, query keys, constants, tests, and docs.

    line 12
  3. Distinctive:

    Keep one-off types local; share types only for real cross-package contracts.

    line 14
  4. Distinctive:

    Delete accepted-but-ignored route or command fields, or implement them end to end.

    line 16
  5. Very specific:

    Every end-user feature must also be usable through the SDK and bb CLI.

    line 26
  6. Very specific:

    Use targeted WHERE/JOIN queries instead of loading all rows and filtering in JavaScript.

    line 33
  7. Very specific:

    Never mock the database in tests.

    line 35
  8. Very specific:

    Use sanctioned typography tokens instead of arbitrary text-[Npx] classes.

    line 39
  9. Very specific:

    Never use CSS @scope; it causes severe WebKit style-recalculation costs.

    line 41
  10. Very specific:

    Use Turbo for builds, typechecks, and tests so upstream dependencies run first: pnpm exec turbo run <task> --filter=@bb/<pkg>.

    line 46
  11. Very specific:

    If a plugin cannot resolve @get-bb/plugin-sdk, run pnpm exec turbo run build:types --filter=@get-bb/plugin-sdk.

    line 48
  12. Distinctive:

    Test plausible failure modes.

    line 49
  13. Distinctive:

    When filing issues, follow docs/filing-issues.md: reproduce first, check for duplicates, and include versions, copy-pasteable steps, …

    line 54
  14. Very specific:

    Use .github/PULL_REQUEST_TEMPLATE.md: root cause, change, verification that demonstrates the fix, and Fixes #N when applicable.

    line 55

≈ “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.

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

Codebase Guidelines

Task Completion

  • Carry the requested change through implementation, relevant verification, and fixes for failures it causes. Continue authorized, reversible local work without asking for approval at each step; ask when a missing user decision blocks progress.
  • Match verification to the change. Once relevant checks pass, broaden or repeat them only for new changes, failures, or unresolved concerns.
  • Read the linked guidance when its topic applies to the task.

Code And Contracts

  • Code comments are forbidden, except for semantic tool directives and Plugin SDK declaration comments.
  • When renaming a domain concept, search project-wide for stale names in variables, files, query keys, constants, tests, and docs; TypeScript only catches type references.
  • Parse and validate data at system boundaries, then pass typed values internally. Restrict unknown and as X casts to genuinely unknowable boundaries and narrow immediately.
  • Keep one-off types local; share types only for real cross-package contracts.
  • Optional or nullable fields must represent meaningful absence. Fill defaults once at the server boundary and pass explicit values through internal routes, commands, and persisted events.
  • Delete accepted-but-ignored route or command fields, or implement them end to end. Document route and command behavior when it is non-obvious.

Server And Daemon

  • The server owns product policy: defaults, instructions, manager behavior, tool lists, and thread behavior. The host daemon owns host-local primitives, provider translation, runtime/session management, and workspace execution.
  • Return raw host-local data from the daemon; assemble product behavior on the server. Move responsibility across this boundary only when the change requires it.
  • Increment HOST_DAEMON_PROTOCOL_VERSION for changes to server/daemon wire fields, including their types, requiredness, defaults, or meaning, unless compatibility with the previously shipped daemon is deliberately preserved and tested. This covers session payloads, WebSocket messages, and host RPC commands/results. Shared TypeScript builds do not verify compatibility with enrolled machines; the version bump triggers their update.

CLI And Plugin API

  • Every end-user feature must also be usable through the SDK and bb CLI; ship and document these surfaces with the UI.
  • For changes to CLI commands/flags or user-facing configuration (env vars, .bb/ workspace files, settings), update the discoverable surfaces listed in docs/cli-guide-and-skill.md.
  • New public plugin API members (@get-bb/plugin-sdk/app exports, app.slots.* methods, or BbPluginApi properties) require an experimental_ prefix and an entry in docs/api_to_audit.md describing behavior and stabilization criteria. Stabilization includes the audit, a project-wide rename, and removal of the entry.
  • The Plugin Guide is the only plugin API documentation. Add new surfaces to plugins/plugin-api-docs/src/surfaces.ts with their SDK symbols.

Data Access

  • Use targeted WHERE/JOIN queries instead of loading all rows and filtering in JavaScript. Add indexes only when required by the query.
  • Change Drizzle schemas and regenerate migrations/snapshots; never edit snapshot JSON manually.
  • Never mock the database in tests. Use createConnection(":memory:") and migrate(db).

UI

  • Use sanctioned typography tokens instead of arbitrary text-[Npx] classes.
  • Derive theme colors from --canvas/--ink or other derived tokens; never use achromatic oklch(L 0 0) literals. Mix opaque steps in oklch and translucent steps in oklab. See apps/app/src/components/ui/theme.css and theme.test.ts.
  • Never use CSS @scope; it causes severe WebKit style-recalculation costs. Confine styles with zero-specificity :where(<roots>) descendant and compound selector arms, as implemented in packages/plugin-build/src/scope-plugin-utilities.ts.
  • Use the shared persistent responsive drawer for compact slide-out menus, pickers, popovers, and dialogs. Avoid modal primitives that add inert or aria-hidden to the app root. Start the transform before heavy content; realize content after two animation frames with a timeout fallback, then retain it. Verify representative drawers in iOS Simulator Safari and test app-root and deferred-realization behavior.

Build And Test

  • Use Turbo for builds, typechecks, and tests so upstream dependencies run first: pnpm exec turbo run <task> --filter=@bb/<pkg>. Use the package's actual name for other scopes. Bypass orchestration only for deliberate investigation; do not invoke package scripts or raw tsc routinely.
  • Generated modules are gitignored: packages/templates/src/generated/, packages/plugin-build/src/generated/, and packages/plugin-sdk/bundled-types/. Never commit them or add a --check mode. New generated modules need Turbo tasks with explicit inputs, outputs, and consumer dependencies.
  • If a plugin cannot resolve @get-bb/plugin-sdk, run pnpm exec turbo run build:types --filter=@get-bb/plugin-sdk.
  • Test plausible failure modes; avoid trivial getters/setters and framework wiring. Pipe slow test output to a file and inspect it.
  • Build Vitest projects with sharedWorkerProjects from vitest.shared.ts. Node tests share workers (isolate: false); DOM tests and files/helpers that mutate worker-global state receive isolated workers. Restore any global state a test changes.

Issues, Pull Requests, And Debugging

  • When filing issues, follow docs/filing-issues.md: reproduce first, check for duplicates, and include versions, copy-pasteable steps, verbatim expected/actual output, commit-permalink evidence, and what you ruled out. Add evidence to an existing issue when applicable.
  • Use .github/PULL_REQUEST_TEMPLATE.md: root cause, change, verification that demonstrates the fix, and Fixes #N when applicable.
  • End every agent-created issue and PR body with > AGENT GENERATED.
  • Ground debugging in observed state: logs, database queries, server APIs, or CLI output. For dev ports, data directories, entity IDs, and the local QA launcher, see docs/debugging-and-qa.md.
  • Never tail the production bb connect gate (bb-connect) with wrangler tail or the dashboard's live logs. Attaching or detaching a tail resets its Durable Objects and drops every connected tunnel. Instead, query stored Workers Logs or the Cloudflare GraphQL Analytics API (httpRequestsAdaptiveGroups, durableObjectsInvocationsAdaptiveGroups), and reproduce with wrangler tail --env staging against bb-connect-staging.

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.