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

berth / console

CLAUDE.md1 starsChanged 5 months agoMITView on GitHub

Authority chain: docs/SPEC.md is the product + technical spec — code lands against it. docs/FACTORY-CONTRACT.md pins the berth driver contract version this app implements (canonical spec: docs/CONSOLE-CONTRACT.md in the berth repo — never edit the canonical spec to fit the app). Plans in plans/ implement the spec phase by phase.

  • In this repository2 other files it gives its agents.

The file

Files
CLAUDE.md

berth-console — always-on localhost observability + task control for the plan-factory

Authority chain: docs/SPEC.md is the product + technical spec — code lands against it. docs/FACTORY-CONTRACT.md pins the berth driver contract version this app implements (canonical spec: docs/CONSOLE-CONTRACT.md in the berth repo — never edit the canonical spec to fit the app). Plans in plans/ implement the spec phase by phase.

Layout (pnpm monorepo, node >=22 — pnpm ONLY, never npm/yarn)

  • server — Hono Node server: API + SSE + ingestion + serves the built SPA. ONE process, no separate ingestion worker.
  • web — Vite + React 19 + Tailwind 4 (CSS-first) + shadcn/ui, dark-first.
  • shared — DTOs + SSE event unions both apps import.
  • data/ — gitignored runtime state (sqlite + logs); never committed.

Commands

  • pnpm dev · pnpm typecheck · pnpm build · pnpm test (wave-1 plan creates these; not yet present at bootstrap).
  • Fixture replay: scripts/replay-fixture.sh is the standing test harness — never test ingestion against paid workers.

Hard invariants (do not relax these while implementing)

  • .factory/ trees of WATCHED repos are strictly READ-ONLY. Only server/src/write/ may perform any mutation (plan files + an allowlisted set of git verbs), and only inside watched repos' plans/.
  • Event ordering truth is events.seq, never timestamps — stream-json events carry no timestamps of their own.
  • Plan parsing is lenient and never throws — unparseable fields render "unparsed" rather than failing ingestion.
  • _gates/_failed/_skipped ledgers truncate in place at every wave start: ingest via full-reread + diff against the in-memory snapshot, never byte-offset tailing. Worker .jsonl files: byte-offset tailing WITH shrink-detection → generation-bump (a shrink means a new run, not corruption).
  • Unknown model ids degrade to a visible "unpriced" state, never crash. No cost columns in sqlite — cost is always computed at query time from pricing.ts.

Service

Port 5599, launchd service com.berth-dev.berth-console (wired in phase 8).

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.