agentleFS
rahmanef63rahmanef63/control-room/CLAUDE.md

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.

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
  1. Very specific:

    Use $props(), $state, $derived, $effect, snippets, and rune-backed state modules.

    line 60
  2. Very specific:

    Do not introduce legacy export let, $:, on:click, legacy <slot>, or writable/readable store patterns in modified code.

    line 61
  3. Very specific:

    Keep /landing presentation-only and public: prerendered, csr = false, no host/gateway reads, no external runtime resources, route-specific …

    line 68
  4. Distinctive:

    Delete obsolete implementations.

    line 69
  5. Very specific:

    Keep the privileged daemon on Node.js 22 unless PTY behavior is proven equivalent elsewhere.

    line 73
  6. Distinctive:

    Every privileged endpoint requires the machine gateway secret.

    line 74
  7. Distinctive:

    Keep host APIs minimal and directly justified by terminal UX.

    line 78
  8. Very specific:

    Never store passwords, tokens, cookies, session secrets, or API keys in .agent/.

    line 89
  9. Distinctive:

    Verify health before considering a release known-good.

    line 119
  10. Distinctive:

    Do not push, merge, rewrite remote history, or deploy unless the user explicitly requests it or the current task already includes that …

    line 122

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 UX

The 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 /landing presentation-only and public: prerendered, csr = false, no host/gateway reads, no external runtime resources, route-specific SEO/structured data, and prefers-reduced-motion support.
  • 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 verify

Focused gates:

bun run docs:check
bun run check
bun run lint
bun run test:coverage
bun run build
bun run test:e2e

UI 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 current symlinks.
  • 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.

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.