claude-command-center copilot-instructions.md

Project instructions for Claude Command Center, an Electron desktop app that runs multiple Claude Code sessions. They describe its React and TypeScript interface, terminal integration, testing tools, and communication rules between the app's parts.

In plain words
What is it for?
They are for developing features, tests, styles, and architecture changes in Claude Command Center, including its terminal, remote-session, browser-control, and memory-related components.
Why use it?
They keep changes consistent with the app's architecture, such as routing renderer-to-main communication through defined channels and keeping operating-system code out of the interface layer.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/nubbymong/claude-command-center/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/nubbymong/claude-command-center

Made for: GitHub Copilot.

Per session 766 This file is loaded in full into every session.
When invoked 766 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00766 $0.00766
Opus 5 $0.00383 $0.00383
Sonnet 5 $0.00153 $0.00153
Haiku 4.5 $0.00077 $0.00077

Measured 3d ago against content hash 3e6d21b63a6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-command-center copilot-instructions.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Never import Node.js modules (fs, path, os, child_process) in renderer code - use the preload bridge
.github/copilot-instructions.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copilot Instructions - Claude Command Center

Project Overview

Claude Command Center is a multi-session Claude Code terminal orchestrator built with Electron 33, React 18, TypeScript, and Tailwind CSS v4. It manages multiple Claude Code CLI sessions in parallel, with features like SSH remoting, vision/browser control, cloud agents, tokenomics tracking, and a memory visualizer.

Tech Stack

  • Runtime: Electron 33 (main + renderer + preload)
  • UI: React 18 with Zustand 5 for state management
  • Styling: Tailwind CSS v4 with @theme directive in src/renderer/styles.css (no tailwind.config)
  • Terminal: xterm.js 5.5 with WebGL addon, node-pty for PTY management
  • Build: electron-vite, electron-builder for packaging
  • Testing: Vitest (unit), Playwright (E2E)
  • Color palette: Catppuccin Mocha - use theme tokens (base, mantle, crust, surface0-2, overlay0-2, subtext0-1, text, blue, green, red, yellow, peach, mauve, teal, etc.)

Architecture Rules

  • All renderer↔main communication goes through IPC channels defined in src/shared/ipc-channels.ts
  • Never import Node.js modules (fs, path, os, child_process) in renderer code - use the preload bridge
  • IPC handlers live in src/main/ipc/ with one file per domain
  • Config is persisted as JSON files via src/main/config-manager.ts
  • Stores are in src/renderer/stores/ using Zustand - hydrated from config on startup

Coding Style

  • Use named exports. Default exports only for React components that are the sole export of their file
  • Prefer const over let. No var
  • Use TypeScript strict mode patterns - avoid any where possible
  • Keep components focused - if a file exceeds ~400 lines, consider splitting
  • Use Catppuccin color tokens in Tailwind classes, not raw hex values
  • Inline SVG icons - no icon library dependencies

Common Gotchas

  • esbuild (used by electron-vite) does not support \u{...} Unicode escapes in JSX - use String.fromCodePoint() or inline SVGs instead
  • PTY write chunking: only chunk large writes (>256 bytes, 12ms delay). Never queue all PTY writes - this was tried in v1.2.113 and caused severe input lag
  • xterm.js scrollback must stay at 10000 max - higher values cause ~1GB RAM per terminal
  • Modal backdrop clicks: never put onClick={onCancel} on backdrop divs because Ctrl+C triggers click events
  • SSH sessions use base64-encoded setup scripts - comments in the script body break single-lining

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 55 lines · 766 tokens per session scan A 3e6d21b63a6b

Subscribe to this mod's changes

claude-command-center copilot-instructions.md is an instructions file published in the GitHub repository nubbymong/claude-command-center (42 stars, last pushed 3d ago), licensed MIT. It adds 766 tokens to every session, about $0.0038 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens