agentleFS
berth-devberth-dev/berth/CLAUDE.md

berth

CLAUDE.md1 starsChanged 5 months agoMITView on GitHub

One product, two components, joined by a file contract: - engine/ — the factory driver. TypeScript executed natively by Node >= 24. Zero runtime dependencies is an invariant: dependencies: {} stays empty forever; typescript/@types/node are gate tooling only. A git-clone user runs node engine/src/main.ts (via the engine/bin/ shims) with no install. engine/bin/factory-run.sh must stay a <= 20-line, bash-3.2-safe shim — the CLI contract and live symlinked installs depend on its path and behavior. - console/ — localhost observability + task…

The file

Files
CLAUDE.md

berth — monorepo layout and working rules

One product, two components, joined by a file contract:

  • engine/ — the factory driver. TypeScript executed natively by Node >= 24. Zero runtime dependencies is an invariant: dependencies: {} stays empty forever; typescript/@types/node are gate tooling only. A git-clone user runs node engine/src/main.ts (via the engine/bin/ shims) with no install. engine/bin/factory-run.sh must stay a <= 20-line, bash-3.2-safe shim — the CLI contract and live symlinked installs depend on its path and behavior.
  • console/ — localhost observability + task control. pnpm workspaces (server/web/shared), Hono + React 19 + better-sqlite3. Read-only over driven repos; its authority chain is console/CLAUDE.md → console/docs/SPEC.md.
  • docs/CONSOLE-CONTRACT.md — the canonical emission spec: every file, status word, ledger grammar, and LOG line the engine writes IS the API the console ingests. Changing any emission means updating this doc in the same PR; the engine's harness pins the strings.

Package management

pnpm ONLY (workspace root pnpm-workspace.yaml), never npm/yarn. Node >= 24 everywhere (engine requires it at runtime; better-sqlite3 is built against it — rebuild after Node upgrades).

Gates (run what you touched; CI runs all)

  • Engine: pnpm -C engine typecheck && pnpm -C engine test and the black-box harness bash engine/harness/run-tests.sh (expects RESULT: <N> passed, 0 failed). The harness is the migration spec: additions-only; never weaken an existing assertion to make something pass.
  • Console: pnpm typecheck && pnpm build && pnpm -C console test, plus bash console/scripts/lint-write-paths.sh.

Repo conventions

  • plans/ at the root is this repo's own factory working directory (the v0.2 phase that built the engine lives there as the audit trail); console/plans/ is the console's historical plan set. Both are records — don't rewrite them.
  • Secrets never in the repo. console/server/berth-console.config.json (real watched-repo paths) is gitignored; only the .example is tracked.
  • The launchd service identity is com.berth-dev.berth-console (console/service/, installed via pnpm console:install-service, macOS only).

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.