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…
In this repository2 other files it gives its agents.
- console/CLAUDE.mdCLAUDE.md
- factorySkill
The file
Files
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/nodeare gate tooling only. A git-clone user runsnode engine/src/main.ts(via theengine/bin/shims) with no install.engine/bin/factory-run.shmust 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 isconsole/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 testand the black-box harnessbash engine/harness/run-tests.sh(expectsRESULT: <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, plusbash 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.exampleis tracked. - The launchd service identity is
com.berth-dev.berth-console(console/service/, installed viapnpm console:install-service, macOS only).
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
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.

