control-room: Command for Claude Code

.claude/commands/vps-deploy.md

vps-deploy is a command for Claude Code from rahmanef63/control-room. It costs 0 tokens per session (529 once invoked), scanned A, original, MIT.

A deployment and troubleshooting guide for systemd services, which are background programs managed by Linux. It covers installing, building, configuring, and starting the project's frontend, agent, and Convex database.

In plain words
What is it for?
Use it for first-time deployment, code redeployment, systemd service management, Convex schema deployment, and diagnosing service problems.
Why use it?
It turns deployment and service recovery into a documented sequence with the required dependencies, permissions, environment settings, and commands.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is rahmanef63/control-room's own configuration. It tells Claude Code how to work on control-room itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything control-room configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rahmanef63/control-room. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rahmanef63/control-room/main/.claude/commands/vps-deploy.md
Clone the repo
git clone --depth 1 https://github.com/rahmanef63/control-room

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vps-deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/rahmanef63/control-room/vps-deploy/github.svg)](https://agentmods.dev/commands/rahmanef63/control-room/vps-deploy)
Your own site
<a href="https://agentmods.dev/commands/rahmanef63/control-room/vps-deploy"><img src="https://agentmods.dev/badge/commands/rahmanef63/control-room/vps-deploy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vps-deploy

Your own site · 80×15
<a href="https://agentmods.dev/commands/rahmanef63/control-room/vps-deploy"><img src="https://agentmods.dev/badge/commands/rahmanef63/control-room/vps-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00529
Opus 5.5 $0.00000 $0.00212
Sonnet 5.5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

Measured 2mo ago against content hash 092364fad1f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vps-deploy scanned grade A with 0 findings 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/vps-deploy.md · 62 lines

How it starts

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

VPS Control Room — Deploy Pattern

scripts/deploy.sh is the deployment SSOT. Do not invent a parallel deployment path in an agent command.

The bundled production route currently targets the repository's Dokploy/Traefik dynamic-config layout; another reverse proxy needs an intentional adaptation rather than copied paths.

Preconditions

  • Confirm the intended worktree/branch and current HEAD.
  • Confirm whether the user permits remote GitHub changes. If not, use local worktree deployment mode and do not fetch/pull/push.
  • Confirm .env.local, Traefik template, Bun, and systemd prerequisites exist.
  • Frontend-only work must not restart the Node agent.

Local gates

bun install --cwd frontend --frozen-lockfile
bun run --cwd frontend check
bun run --cwd frontend test
bun run --cwd frontend build
git diff --check

Run agent tests/build only if agent/ changed:

bun install --cwd agent --frozen-lockfile
bun run --cwd agent test:all
bun run --cwd agent build

Deployment model

The deploy script:

  1. serializes deployments with a lock;
  2. optionally fast-forwards a requested remote branch, or uses DEPLOY_FROM_WORKTREE=1 for the current local tree;
  3. prepares canonical runtime/state/env locations;
  4. verifies frontend check/lint/coverage/audit/Playwright/build/bundle budget;
  5. verifies/builds an immutable agent release only when agent source changed or no valid deployed agent exists;
  6. stages immutable frontend + agent releases and records the previous pair;
  7. refreshes the canonical systemd units;
  8. switches and verifies the agent when required;
  9. switches and verifies the frontend;
  10. publishes/verifies the frontend-only Traefik route;
  11. restores the previous frontend + agent pair (and previous proxy config when needed) if candidate verification fails;
  12. records success and prunes stale inactive releases/uploads.

Post-deploy verification

  • public /login responds over HTTPS
  • /api/health responds
  • protected APIs still reject unauthenticated access
  • HTML/assets are Svelte /_app/immutable/ assets
  • real xterm output arrives through SSE
  • terminal input/resize/reconnect still works
  • agent PID is unchanged for frontend-only work
  • transient preview port/process is absent
  • rollback release still exists

Read the full file on GitHub · 62 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. 2mo ago Changed · -54 lines scan B → A 092364fad1f2
  2. 2mo ago First seen · 116 lines · 0 tokens per session scan B 1f7345501714

Subscribe to this mod's changes

vps-deploy is a command published in the GitHub repository rahmanef63/control-room (19 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 529 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

vps-deploy compared with commands from other repositories

vps-deploy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vps-deployrahmanef63/control-roomCommand199d agoMITA0Claude Code
portaljs-architectdatopian/portaljsCommand2.4k9d agoMITA36Claude Code
plan-featureHoangNguyen0403/agent-skills-standardCommand583yesterdayMITA0Claude Code
retro-learnHoangNguyen0403/agent-skills-standardCommand583yesterdayMITA0Claude Code
memory-storeverygoodplugins/mcp-automemCommand66yesterdayMITA10Claude Code
devvendurehq/vendureCommand8.6kyesterdaynoneA0Claude Code
startvendurehq/vendureCommand8.6kyesterdaynoneA0Claude Code