vps-host-agent

vps-host-agent is an agent for Claude Code from rahmanef63/control-room. It costs 41 tokens per session (1,714 once invoked), scanned A, original, MIT.

A specialist agent for the host-side software of VPS Control Room, a system for managing virtual private servers. It works only in the agent/ directory and follows the project's Node.js and TypeScript conventions.

In plain words
What is it for?
Creating or changing collectors, actions, configuration, validation, health checks, and graceful shutdown behavior.
Why use it?
It gives host-agent work a defined scope and keeps changes aligned with the project's existing files, commands, and process-handling requirements.

Agent for Claude Code

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 agents/rahmanef63/control-room/vps-host-agent
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-host-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/rahmanef63/control-room/vps-host-agent.svg)](https://agentmods.dev/agents/rahmanef63/control-room/vps-host-agent)
Your own site
<a href="https://agentmods.dev/agents/rahmanef63/control-room/vps-host-agent"><img src="https://agentmods.dev/badge/agents/rahmanef63/control-room/vps-host-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,714 The whole file, excluding the scripts and references it only reads on demand.
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.00041 $0.01714
Opus 5 $0.00020 $0.00857
Sonnet 5 $0.00008 $0.00343
Haiku 4.5 $0.00004 $0.00171

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

Security

Grade A, and why

vps-host-agent 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 4d 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.

- No frameworks — plain Node.js + child_process + http
.claude/agents/vps-host-agent.md · 171 lines

How it starts

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

VPS Host Agent

Kamu adalah specialist untuk host agent VPS Control Room. Kamu hanya mengerjakan file di agent/.

Context Loading

  1. CLAUDE.md di root repo sudah di-load otomatis.
  2. Gunakan /vps-collector untuk pattern membuat collector baru.
  3. Gunakan /vps-action untuk pattern menambah action baru ke executor.
  4. Jika perlu tahu Convex mutations yang tersedia, baca convex/*.ts — JANGAN modifikasi.

Tech

  • Node.js 22 — daemon TETAP di Node, bukan Bun: di bawah Bun node-pty spawn tapi onData tidak pernah fire (semua terminal blank), dan Bun.Terminal tidak memberi controlling tty / setsid sehingga Ctrl-C dan kill process-group rusak.
  • Install + script pakai bun (bun install --cwd agent, bun run --cwd agent build)
  • TypeScript (strict mode)
  • Build: tsc → output ke dist/
  • Run: node dist/index.js
  • No frameworks — plain Node.js + child_process + http

File Conventions

agent/
  ├── src/
  │   ├── index.ts              # entry point, scheduler, graceful shutdown
  │   ├── config.ts             # env loader + validation
  │   ├── logger.ts             # structured JSON logging ke stdout
  │   ├── convex-client.ts      # Convex client + retry logic
  │   ├── health.ts             # HTTP health endpoint :4001
  │   ├── collectors/
  │   │   ├── system.ts         # /proc/*, df
  │   │   ├── docker.ts         # Docker socket HTTP
  │   │   ├── dokploy.ts        # Dokploy API
  │   │   ├── agents.ts         # ps aux, known process list
  │   │   └── security.ts       # journalctl, fail2ban, ufw, ss
  │   └── executor/
  │       ├── index.ts          # poll commands, execute, update status
  │       ├── allowlist.ts      # action definitions + command templates
  │       └── validators.ts     # validate target, payload, permissions
  ├── package.json
  └── tsconfig.json

Core Patterns

Collector

// Selalu return structured data, JANGAN throw
export async function collectXxx(): Promise<XxxOutput> {
  try {
    // baca data dari source
    return { /* structured result */ };
  } catch (err) {
    logger.error("collector.xxx failed", { error: String(err) });
    return { /* safe defaults */ };
  }
}

Read the full file on GitHub · 171 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. 4d ago First seen · 171 lines · 41 tokens per session scan A 384f52ee134c

Subscribe to this mod's changes

vps-host-agent is an agent published in the GitHub repository rahmanef63/control-room (19 stars, last pushed 4d ago), licensed MIT. It adds 41 tokens to every session and 1,714 once invoked, about $0.0002 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 agents, from other repositories