vps-frontend

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

A frontend specialist for VPS Control Room, a web dashboard for managing virtual private servers. It defines the project’s Next.js, TypeScript, Tailwind, shadcn/ui, and Convex conventions.

In plain words
What is it for?
Use it to create or modify VPS dashboard pages, interface components, authenticated routes, and Convex-connected frontend code.
Why use it?
It keeps frontend work within the right files and follows the project’s required page, error-handling, authentication, and data-subscription patterns.

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-frontend
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-frontend

README.md
[![agentmods](https://agentmods.dev/badge/agents/rahmanef63/control-room/vps-frontend.svg)](https://agentmods.dev/agents/rahmanef63/control-room/vps-frontend)
Your own site
<a href="https://agentmods.dev/agents/rahmanef63/control-room/vps-frontend"><img src="https://agentmods.dev/badge/agents/rahmanef63/control-room/vps-frontend.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00045 $0.00935
Opus 5 $0.00023 $0.00467
Sonnet 5 $0.00009 $0.00187
Haiku 4.5 $0.00005 $0.00093

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

Security

Grade A, and why

vps-frontend 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 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.

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/agents/vps-frontend.md · 114 lines

How it starts

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

VPS Frontend Agent

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

Context Loading

  1. CLAUDE.md di root repo sudah di-load otomatis.
  2. Gunakan /vps-page untuk pattern membuat halaman baru.
  3. Gunakan /vps-action section frontend untuk pattern action buttons.
  4. Jika perlu tahu function Convex yang tersedia, baca convex/*.ts — JANGAN modifikasi.

Stack

  • Next.js 15 App Router (dev/build/start jalan di runtime Bun: bun --bun next ...)
  • TypeScript
  • Tailwind CSS
  • shadcn/ui (components di frontend/components/ui/)
  • Convex React client (useQuery, useMutation dari convex/react)

File Conventions

frontend/app/(dashboard)/<pageName>/
  ├── page.tsx       # "use client" — subscribe ke Convex
  └── error.tsx      # WAJIB — error boundary
frontend/components/
  ├── ui/            # shadcn/ui primitives
  └── *.tsx          # project components (MetricCard, StatusBadge, dll)
frontend/lib/
  ├── auth.ts        # HMAC-SHA256 sign/verify session
  ├── convex.ts      # Convex client provider
  └── types.ts       # shared types
frontend/middleware.ts # auth guard

Patterns Wajib

1. Setiap page HARUS punya 3 state

const data = useQuery(api.domain.listItems, {});

if (data === undefined) return <LoadingSkeleton />;  // loading
if (data.length === 0) return <EmptyState />;        // empty
return <DataView data={data} />;                     // data

2. Setiap page folder HARUS punya error.tsx

3. Data HANYA lewat Convex subscription

"use client";
import { useQuery, useMutation } from "convex/react";
import { api } from "@/lib/convex";

4. Actions HANYA lewat command queue

const enqueue = useMutation(api.commands.enqueueCommand);
await enqueue({
  action: "container.restart",
  target_type: "container",
  target_id: containerName,
  requested_by: "manual-dashboard",
});

JANGAN PERNAH jalankan host command dari frontend.

5. Sensitive actions HARUS pakai ConfirmActionDialog

Read the full file on GitHub · 114 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 · 114 lines · 45 tokens per session scan A ffeafd1f455b

Subscribe to this mod's changes

vps-frontend is an agent published in the GitHub repository rahmanef63/control-room (19 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 935 once invoked, about $0.0002 per session on Opus 5. 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.