# Repository Briefing: xaspx/hermes-control-interface
> Source: https://repoforai.com/repo/xaspx/hermes-control-interface (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/xaspx/hermes-control-interface
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B+ (64/100 · Maintenance 12/35 · Adoption 18/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v3.6.2 (2026-06-28) — https://github.com/xaspx/hermes-control-interface/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted
- **Momentum**: 903 ★ total (+0 24h / +0 7d) · 128 forks
- **Topics**: `ai-agents`, `hermes-agent`
- **When to Use**: Best for: A Hermes operator or trusted team that wants one self-hosted console for chat, task triage, logs, gateways, cron, and MCP. Skip if: You need hard tenant isolation, a multi-host control plane, or a read-only dashboard with no shell or file access.

## Overview
```text
### Architecture & Core Mechanics
HCI is a vanilla JavaScript single-page app built with Vite. A monolithic Node.js/Express entry point (`server.js`) serves the browser through REST and WebSocket interfaces. The Hermes CLI handles gateway lifecycle operations, while streaming chat uses the gateway's WebSocket API. Office reads agent state from `config.yaml` and the SQLite `kanban.db` via `better-sqlite3`, avoiding CLI subprocesses for those state lookups.

The backend also works directly with local configuration, logs, skills, and workspace files. The browser terminal pairs xterm.js with `node-pty`; Chart.js renders metrics and usage views. MCP integration manages external servers and their configuration rather than providing a new inference runtime. The single service simplifies deployment, but it also brings observability and host-modifying operations into the same application boundary.

### Key Capabilities & Differentiators
Office connects agent health, an eight-lane Kanban board with task dependencies, and a live feed of up to 50 gateway events that operators can filter by agent or keyword. Task detail views expose runs, events, and workspace files. Chat streams across selectable profiles, shows tool-call payloads, and lets operators stop output, resume a session, or branch from a message; Workspace adds file editing alongside directory-scoped chat.

Operators can also manage profile configuration, sessions, gateways, cron jobs, and skills. The MCP panel starts, stops, and restarts servers, tails logs, and edits JSON or YAML configuration. Usage views cover token trends, cost projections, and budget alerts. These are management capabilities for an existing Hermes stack, not a separate model catalog or inference backend.

### Trade-offs & Limitations
Compared with operating the Hermes CLI alongside a generic monitoring dashboard, HCI reduces context switching: an operator can move from a stuck task to its run history, gateway logs, or workspace in one interface. The trade-off is tight coupling to the local Hermes CLI, gateway, and state layout. Direct SQLite and filesystem access are convenient for a same-host install, but they are not evidence of a distributed control plane or a general-purpose agent platform.

Treat the service as a privileged operations console, not a read-only dashboard. It exposes a terminal, file editing, and process controls. The bcrypt-backed password gate, session controls, CSRF protection, rate limiting, and role and profile restrictions are useful layers. Profile restrictions scope access to Hermes agents; they should not be treated as OS-level isolation between mutually untrusted users. Validate permissions across both REST and WebSocket interfaces before sharing the installation.

### Hardware & Deployment Guide
Run HCI on the same host as Hermes Agent with Node.js 20+ and the `hermes` CLI on PATH. Copy `.env.example` to `.env`, set `HERMES_CONTROL_PASSWORD` and a random `HERMES_CONTROL_SECRET`, run `npm install && npm run build`, then start `node server.js`. The local quick-start endpoint uses HTTP on port 10274. Set `HERMES_CONTROL_HOME` and `HERMES_PROJECTS_ROOT` if the default state or project paths do not match the intended scope.

For production, use the nginx and systemd deployment patterns, terminate TLS before exposing the service remotely, restrict network access, and run with only the host permissions the enabled features need. PWA caching is not offline operation: shell, chat, and gateway controls still depend on the runtime. Version 3.6.0 reworked Office and reduced polling frequency with an in-flight guard; 3.6.1 added Workspace; 3.6.2 introduced profile restrictions and Windows compatibility fixes, not a blanket guarantee of Windows parity.
```

## Key Capabilities
```text
- Swarm operations: Office combines agent health, an eight-lane dependency-aware Kanban board, and a filterable gateway event feed.
- Chat workflow: WebSocket streaming supports profile switching, tool-call inspection, stopping, resuming, and branching from a message.
- Workspace editing: Browse and edit project files alongside Hermes chat scoped to the selected directory.
- Access control: Three roles and 20 permissions are supplemented by per-user profile restrictions in v3.6.2.
- MCP lifecycle: Start, stop, and restart servers, tail logs live, and edit JSON or YAML configuration from the browser.
- Host diagnostics: Review CPU and RAM metrics, inspect live processes and gateway logs, and open an xterm.js terminal backed by node-pty.
```

## Quick Start / Clone
```bash
git clone https://github.com/xaspx/hermes-control-interface.git
cd hermes-control-interface
cp .env.example .env     # set HERMES_CONTROL_PASSWORD + HERMES_CONTROL_SECRET
npm install && npm run build
node server.js            # → http://localhost:10274
```
