control-room
CLAUDE.md19 starsChanged 3 months agoMITView on GitHub
Current baseline: v2.0.0, terminal-first. Control Room is a tmux-like terminal multiplexer with a browser/PWA UI. Core product scope: Out of scope: A CLI inside a pane manages its own auth, tools, browser work, deployments, and agent behavior. The frontend never shells out directly and never exposes AGENT_GATEWAY_SECRET or CONTROL_ROOM_SECRET to browser JavaScript. The repository must remain independently understandable and runnable. Do not add architecture, docs, configuration, imports, or runtime requirements that assume another internal repository exists. Optional third-party CLI programs…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 60
Use $props(), $state, $derived, $effect, snippets, and rune-backed state modules.
- Very specific: line 61
Do not introduce legacy export let, $:, on:click, legacy <slot>, or writable/readable store patterns in modified code.
- Very specific: line 68
Keep /landing presentation-only and public: prerendered, csr = false, no host/gateway reads, no external runtime resources, route-specific …
- Distinctive: line 69
Delete obsolete implementations.
- Very specific: line 73
Keep the privileged daemon on Node.js 22 unless PTY behavior is proven equivalent elsewhere.
- Distinctive: line 74
Every privileged endpoint requires the machine gateway secret.
- Distinctive: line 78
Keep host APIs minimal and directly justified by terminal UX.
- Very specific: line 89
Never store passwords, tokens, cookies, session secrets, or API keys in .agent/.
- Distinctive: line 119
Verify health before considering a release known-good.
- Distinctive: line 122
Do not push, merge, rewrite remote history, or deploy unless the user explicitly requests it or the current task already includes that …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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.
Files
Control Room — Canonical Agent Instructions
Current baseline: v2.0.0, terminal-first.
Product boundary
Control Room is a tmux-like terminal multiplexer with a browser/PWA UI.
Core product scope:
- PTY lifecycle and reconnect;
- multiple terminal panes;
- workspaces;
- single/grid/fullscreen terminal views;
- mobile terminal UX and safe areas;
- rename/duplicate/move/focus/close;
- terminal history and restore;
- terminal templates;
- cwd/file-picker helpers;
- broadcast input;
- lightweight terminal/host status;
- optional CLI launch profiles and activity decoration.
Out of scope:
- provider/account or credential management;
- browser automation;
- cron/job orchestration;
- AI supervisory orchestration;
- managed application lifecycle platforms;
- project-specific runtime dependencies;
- deployment orchestration unrelated to deploying Control Room itself.
A CLI inside a pane manages its own auth, tools, browser work, deployments, and agent behavior.
Architecture
browser / PWA
-> SvelteKit 2 + Svelte 5 frontend (Node 22 production runtime)
-> authenticated HTTP proxies
-> terminal output to browser over SSE
-> frontend server is the WebSocket client to the agent
-> Node 22 host agent on loopback
-> node-pty
-> bounded host/file/state helpers required by terminal UXThe frontend never shells out directly and never exposes AGENT_GATEWAY_SECRET or CONTROL_ROOM_SECRET to browser JavaScript.
Standalone rule
The repository must remain independently understandable and runnable. Do not add architecture, docs, configuration, imports, or runtime requirements that assume another internal repository exists.
Optional third-party CLI programs may be launched as normal terminal processes. Their existence is not a Control Room runtime dependency.
Frontend rules
- SvelteKit 2 + Svelte 5 runes.
- Use
$props(),$state,$derived,$effect, snippets, and rune-backed state modules. - Do not introduce legacy
export let,$:,on:click, legacy<slot>, or writable/readable store patterns in modified code. - UI primitives:
frontend/src/lib/components/ui/. - Terminal features:
frontend/src/lib/features/terminals/. - Server-only helpers:
frontend/src/lib/server/. - Route APIs:
frontend/src/routes/api/**/+server.ts. - Preserve safe-area, mobile keyboard, fullscreen, viewport and xterm-fit behavior.
- Preserve the app-chrome hierarchy: compact app/status bar → workspace rail → session/command bar → terminal stage; collapse labels/secondary utilities before allowing toolbar wrapping.
- Keep
/landingpresentation-only and public: prerendered,csr = false, no host/gateway reads, no external runtime resources, route-specific SEO/structured data, andprefers-reduced-motionsupport. - Delete obsolete implementations; do not keep compatibility placeholder files.
Agent rules
- Keep the privileged daemon on Node.js 22 unless PTY behavior is proven equivalent elsewhere.
- Every privileged endpoint requires the machine gateway secret.
- Agent binds loopback by default.
- PTY data, resize, Ctrl-C, process-group teardown and reconnect semantics are critical.
- Interactive shells must not inherit Control Room master auth secrets.
- Keep host APIs minimal and directly justified by terminal UX.
Engineering workflow and memory
Use docs/engineering-workflow.md.
- Low-risk isolated UI/copy changes may go directly to main after targeted verification.
- High-risk shared/auth/runtime/deploy changes use a short-lived branch/worktree.
- For heavy/debug tasks, query relevant
.agent/memory/first. - Significant verification should produce an evidence receipt.
- Repeated reasoning workflows may become recipes; deterministic stable workflows may become scripts.
- Never store passwords, tokens, cookies, session secrets, or API keys in
.agent/.
Build and verification
bun install --cwd frontend --frozen-lockfile
bun install --cwd agent --frozen-lockfile
bun run verifyFocused gates:
bun run docs:check
bun run check
bun run lint
bun run test:coverage
bun run build
bun run test:e2eUI changes require relevant browser/mobile verification, not only a successful compile.
Deployment and rollback
scripts/deploy.sh is the deployment SSOT for Control Room itself.
- Deploy immutable frontend/agent releases.
- Switch through stable
currentsymlinks. - Preserve mutable state outside Git.
- Verify health before considering a release known-good.
- Restore the previous pair if a production switch fails.
Do not push, merge, rewrite remote history, or deploy unless the user explicitly requests it or the current task already includes that action.
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.

