agentleFS
hranesshraness/oompa/src/AGENTS.md

oompa / src

AGENTS.md9 starsChanged 3 months agoMITArchived repositoryView on GitHub

The file

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

6 rules. About 1 is common, 2 are distinctive, and 3 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep cli.ts a thin composition entry point.

    line 14
  2. Distinctive:

    Use closed command and result unions.

    line 15
  3. Distinctive:

    Use absolute, canonical, no-follow paths for durable state and profile roots.

    line 18
  4. Common:

    Keep CLI and detached-daemon secret custody noninteractive.

    line 19
  5. Very specific:

    Keep semantic facts, rules, projections, raw store handles, database locators, and purge authority behind the host-owned facts-memory …

    line 20
  6. Very specific:

    Keep runtime imports flowing one way: domain -> storage -> daemon -> cli, cloud, codex.

    line 24

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

Contents

  • cli/ parses commands and renders stable human or JSON output.
  • daemon/ owns the local socket, lifecycle, command dispatch, joins, and the opaque facts-memory broker seam.
  • codex/ owns the pinned app-server process and protocol adapter.
  • claude/ owns the pinned Claude Code process, its stream-json dialect, and the delta assembler behind the same runtime port.
  • devin/ owns the pinned Devin CLI, isolated authentication, and bounded ACP v1 client.
  • domain/ owns identifiers, presets, projections, state transitions, encryption envelopes, and command outcomes.
  • storage/ owns SQLite migrations, repositories, secret custody, state paths, and facts-memory directory custody.
  • cloud/ owns the optional Convex client, sync projections, device enrollment, execution leases, and remote commands.

Guidelines

  • Keep cli.ts a thin composition entry point. Put behavior in owned modules with injected ports.
  • Use closed command and result unions. Do not pass argv strings or provider method names into domain code.
  • Parse all filesystem, database, socket, provider, cloud, and JSON values from unknown.
  • Store a prepared receipt before every mutation. Bind it to the exact authority generation and reconcile indeterminate outcomes without replay.
  • Use absolute, canonical, no-follow paths for durable state and profile roots. Require user-only permissions.
  • Keep CLI and detached-daemon secret custody noninteractive. Use current-user-owned mode-0700 directories and descriptor-read mode-0600 immutable values; never silently overwrite or delete recovery evidence. Do not depend on a Keychain prompt from an unsigned interpreter process.
  • Keep semantic facts, rules, projections, raw store handles, database locators, and purge authority behind the host-owned facts-memory broker. The Oompa control plane may retain only bounded opaque lifecycle authority and exact public heads or receipts.
  • Force both pinned Codex credential stores to file mode at the process boundary and prove their effective values before account, plugin, or session effects.
  • Preserve stdout for requested data. Send diagnostics to stderr. Never print secrets, provider payloads, environment values, or raw local paths in cloud-facing output.
  • Bound lines, frames, pages, bytes, timers, retries, queues, and retained records.
  • Keep runtime imports flowing one way: domain -> storage -> daemon -> cli, cloud, codex. Adapters reach the daemon through import type of daemon/ports.ts. eslint.config.mjs enforces the per-directory rule and scripts/check-import-cycles.ts proves zero file-level cycles; move a shared shape into domain/ instead of importing upward.

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.