Skip to content
petllamaPublic

About

Local-first operator dashboard for Hermes Agent — chat, inspect memory, skills, cron, and session history via a read-only bridge.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

  ConradGUI · Bureaucrat Grade 34 · Certified
  ─────────────────────────────────────────────
  "If it ain't on a form, it ain't real." — H.C.

ConradGUI

Local-first operator dashboard for Hermes Agent.

ConradGUI is a browser-based control panel for Hermes — an autonomous LLM agent system. It gives you a focused operator surface for chatting, inspecting, and monitoring Hermes in real time, entirely on your own machine.

Think of it as: chat over HTTP + everything else from local state.

ConradGUI has two data paths:

  1. Chat — streams against the Hermes HTTP API through a server-side proxy
  2. Conrad Bridge — a companion backend that reads ~/.hermes/ locally and serves agent metadata (memory, skills, cron, config, session history) as read-only JSON + live WebSocket updates

No accounts. No cloud. No telemetry.


Disclaimer
I have not coded in nearly 20 years. Claude Code has renewed my interest in making stuff. This is 100% vibe coded.


Why "Conrad"?

Named after Hermes Conrad, Futurama's proud Grade 34 bureaucrat, expert limbo champion, and reluctant accountant of Planet Express. A dashboard for an agent named Hermes could really only be named one thing.

If it's not filed in triplicate, it didn't happen.


Features

Chat

  • Streaming chat with markdown rendering and syntax-highlighted code blocks
  • Retry & edit — regenerate responses or branch conversations from any point
  • System prompt control — global prompt + personality presets (helpful, technical, concise, creative, teacher)
  • In-chat approval helper — detects approval-required assistant replies and surfaces Approve / Approve Always / Deny buttons inline
  • Browser notifications for approval prompts when ConradGUI is in a background tab

Session management

  • Persistent client-side conversation history (ConradGUI sessions)
  • Search, filtering, sorting, export (JSON + Markdown), and import
  • Session branching — fork from any message
  • Hermes session history — read-only view of all Hermes sessions from state.db, including terminal, Telegram, cron, and API sessions with full message history, token usage, model info, and cost tracking

Agent inspection (via Conrad Bridge)

  • Memory — read-only view of MEMORY.md and USER.md with entry count, character count, and search/filter
  • Skills — browse the full Hermes skill inventory from ~/.hermes/skills/, grouped by category, with name, description, version, tags, and body preview
  • Scheduled jobs — view cron jobs from jobs.json with schedule, state, last run status, delivery target, prompt, and attached skills
  • Hermes configuration — active model, provider, fallback chain, agent settings, and toolsets from config.yaml (secrets redacted)
  • Live updates — WebSocket connection to Conrad Bridge pushes file-change notifications; bridge-backed pages refresh automatically when Hermes data changes

Operator tools

  • Operator dashboard — connection status, latency, request metrics, active model, cron summary, recent activity feed
  • Gateway request log — latency, endpoints, and status for every service call
  • Command palette — Ctrl+K for instant navigation across sessions and actions
  • Keyboard-first workflow — / focus chat, Ctrl+N new chat, arrow navigation
  • Runtime config — change mode, API URL, and system prompt without rebuild
  • Mock mode — full UI without a running Hermes instance
  • Responsive layout — desktop + mobile support
  • Toast notifications for operational events
  • Docker support (dev + production profiles)

What's supported

ConradGUI only ships surfaces backed by real data or real actions.

Chat path (via Hermes HTTP API)

  • Chat — streams against Hermes /v1/chat/completions through the proxy
  • ConradGUI sessions — persisted in localStorage, fully client-owned
  • Dashboard — real connection status, real latency, real request/error/fallback counts
  • Gateway — real /health probe and real per-request log
  • Settings — real runtime mode/URL switching and system prompt control

Bridge path (via Conrad Bridge reading ~/.hermes/)

  • Memory — real entries parsed from MEMORY.md and USER.md
  • Skills — real skill inventory discovered from skills/**/SKILL.md
  • Cron — real scheduled jobs parsed from cron/jobs.json
  • Config — real model/provider/agent settings from config.yaml (secrets redacted)
  • Hermes sessions — real session history and messages from state.db
  • Live updates — real file-change notifications via WebSocket

Not included (by design)

  • Standalone approvals queue — Hermes does not expose a pending-approvals queue via HTTP. Hermes's tool-approval flow happens through normal chat replies, and ConradGUI surfaces those inline.
  • Write operations — Conrad Bridge is strictly read-only. ConradGUI cannot edit memory, toggle skills, enable/disable cron jobs, or modify Hermes configuration.
  • Profiles — Hermes profiles are detected by the bridge but not yet surfaced in the UI.

Conrad Bridge

Conrad Bridge is a Node.js companion backend that runs on the same machine as Hermes. It reads ~/.hermes/ and serves parsed, structured JSON to the ConradGUI frontend. It never writes to Hermes files.

Conrad Bridge is intentionally read-only. It is an inspection layer, not a control layer.

See bridge/README.md for full details including endpoints, environment variables, WebSocket events, and Docker setup.

Why a companion backend?

Hermes does not expose memory, skills, cron, or session history through its HTTP API. Hermes keeps most of its state on disk, not behind HTTP endpoints. Those exist as local files (MEMORY.md, SKILL.md, jobs.json, state.db). Conrad Bridge reads them so the frontend can display them.

The chat path (/hermes-api) remains a direct proxy to Hermes and is completely independent of the bridge.

What it reads

Source Path Format
Memory memories/MEMORY.md, USER.md §-delimited plaintext
Skills skills/**/SKILL.md Markdown with YAML frontmatter
Cron cron/jobs.json JSON
Config config.yaml YAML (secrets redacted in output)
Sessions state.db SQLite (read-only)

What it never reads

auth.json, .env, and *.lock files are blocked by design.


Hermes sessions

ConradGUI has two separate session sources, clearly distinguished in the UI:

  1. ConradGUI sessions — client-owned chat sessions stored in localStorage. These are your active chat workspace. You can create, rename, delete, export, import, and branch them.
  2. Hermes sessions — read-only historical records from Hermes state.db via Conrad Bridge. These include every session Hermes has ever run across all channels (terminal, Telegram, cron, API). They show full metadata: model, token usage, cost, tool call count, source, and complete message history including tool calls and reasoning.

Hermes sessions are historical records, not active conversations.

The two are never merged or synced. The Sessions page has a source toggle to switch between them. Hermes sessions are observation-only — no editing, no deleting, no resuming into chat.


In-chat approvals

Hermes handles tool approvals through the normal chat channel, not a dedicated approvals API. When Hermes asks for approval it says something like "this one requires approval in this interface" or "if you approve it, I'll run it", and the user's next chat reply (approved, approve always, deny) is what moves the flow forward. There is no /approvals REST endpoint to read from or POST to.

ConradGUI adds a small client-side helper on top of that flow. It does not implement approvals itself — it makes the existing chat-based approval loop faster to notice and answer.

ConradGUI does not track approval state — it simply helps you respond faster.

How it works

  1. Detection. Every assistant reply is scanned for approval-request phrasings — "requires approval", "require approval", "needs approval", "if you approve", "awaiting approval", etc. It's plain case-insensitive substring matching — no regex, no NLP.
  2. Toast. When a freshly-received reply matches, an info toast appears: "Hermes is waiting for approval in this chat". The toast only fires on just-arrived messages, not on history reloads.
  3. Browser notification. If ConradGUI is in a background tab when an approval prompt arrives, a native browser notification fires so you don't miss it. Clicking the notification focuses the tab.
  4. Inline buttons. A small row of buttons renders right under the matching assistant message: Approve, Approve Always, Deny.
  5. Resolution state. Once you click a button, that approval prompt is marked as resolved with the chosen action highlighted. If the conversation moves on without clicking, older prompts are marked as stale and their buttons are muted.

Phrases sent back to Hermes

Button Phrase sent to Hermes
Approve approved
Approve Always approve always
Deny deny

Adding new approval phrases

All detection patterns live in one file: src/services/approvals.ts.

If Hermes uses a phrasing that doesn't trigger the approval buttons, add it to the APPROVAL_PATTERNS array:

const APPROVAL_PATTERNS: readonly string[] = [
  // ... existing patterns ...
  "requires approval",
  "needs approval",
  "awaiting approval",
  "if you approve",
  // Add your new phrase here:
  "your new phrase here",
];

Patterns are plain lowercase strings matched case-insensitively against the full assistant message text. No regex needed — just the substring Hermes uses. For example, if Hermes says "This action will need your sign-off before I proceed", you'd add "need your sign-off".

The same file also contains APPROVAL_PHRASES — the words sent back to Hermes when you click Approve, Approve Always, or Deny. Edit those if Hermes expects different response wording.

After adding a pattern, run the regression test to make sure existing detection still works:

npm run test:approvals

Known limitations

  • False positives. If an assistant reply contains a trigger phrase without actually asking for approval, the buttons will appear anyway.
  • False negatives. If Hermes uses a phrasing not in the pattern list, the buttons won't appear and you'll have to type the reply manually. See Adding new approval phrases above.
  • No state tracking. The buttons are a pure function of message text.
  • Streaming safety. Buttons are suppressed while a message is still being streamed in.
  • Not a security gate. This is a UX shortcut for a chat-based approval loop, not a backend approvals system.

Screenshots

Chat with in-chat approval helper

Streaming chat with markdown rendering, syntax highlighting, and inline approval buttons. Hermes asks for approval, ConradGUI surfaces Approve / Approve Always / Deny right under the message.

Chat with approval buttons

Memory

Read-only view of Hermes agent memory (MEMORY.md) and user profile (USER.md) via Conrad Bridge. Searchable, with entry count and character usage.

Memory page

Skills

Full skill inventory from ~/.hermes/skills/, grouped by category with search and filter. 103 skills across 23 categories, each with name, description, version, and tags.

Skills page

Scheduled Jobs

Cron jobs from jobs.json with schedule, state, last run status, and delivery target. Expandable for full prompt and attached skills.

Cron page

Sessions

Dual-source session management. ConradGUI Sessions tab shows client-owned chat sessions with search, filter, sort, export, and import. Hermes Sessions tab shows read-only historical records from state.db.

Sessions page


Quick Start

Docker (recommended)

Docker prod mode is the recommended setup — it runs nginx + Conrad Bridge with correct proxying out of the box.

git clone https://github.com/petllama/ConradGUI.git
cd ConradGUI
cp .env.example .env

# Edit .env and set:
# - HERMES_PROXY_TARGET
# - HERMES_API_KEY
# - HERMES_HOME (path to ~/.hermes on the host)

docker compose --profile prod up --build

Native (npm)

git clone https://github.com/petllama/ConradGUI.git
cd ConradGUI
cp .env.example .env

npm install
npm run dev

# In a second terminal, start Conrad Bridge:
cd bridge
npm install
npm run bridge

Mock mode

Set:

VITE_HERMES_MODE=mock

The chat UI will run with simulated data. Bridge-backed pages require Conrad Bridge to be running separately — they will show a clean "bridge not connected" state if it isn't.


Configuration

Copy .env.example → .env

Variable Scope Required Description
VITE_HERMES_MODE Browser Yes mock or real
VITE_HERMES_API_URL Browser Yes Use /hermes-api for proxy mode
VITE_BRIDGE_URL Browser No Bridge URL; defaults to http://localhost:8787 in dev, /bridge-api in Docker prod
HERMES_PROXY_TARGET Server Yes URL of your Hermes API (for example http://127.0.0.1:8642)
HERMES_API_KEY Server Yes* Hermes API key injected by proxy (not exposed to browser)
HERMES_HOME Server No Path to ~/.hermes on host; used by Docker to mount into bridge container

Required when using real mode with authentication enabled.

Important

  • VITE_* variables are visible in the browser
  • Never store secrets in VITE_*

Recommended Setup (Secure)

VITE_HERMES_MODE=real
VITE_HERMES_API_URL=/hermes-api
HERMES_PROXY_TARGET=http://127.0.0.1:8642
HERMES_API_KEY=your-key
HERMES_HOME=/home/youruser/.hermes

Flow:

  1. Browser → /hermes-api → proxy adds Authorization header → Hermes
  2. Browser → /bridge-api → nginx → Conrad Bridge → ~/.hermes/ (read-only)
  3. Browser → /bridge-ws → nginx → Conrad Bridge WebSocket (live updates)

API key never touches the browser. Bridge never writes to ~/.hermes/.


Architecture

browser → nginx → /hermes-api → Hermes    (chat, streaming)
               → /bridge-api → Conrad Bridge → ~/.hermes/  (read-only metadata + sessions)
               → /bridge-ws  → Conrad Bridge WebSocket     (live updates)
  • Vite (dev) or nginx (prod) acts as proxy
  • Proxy injects API key server-side for Hermes chat
  • Conrad Bridge reads local Hermes files (memory, skills, cron, config, sessions)
  • Bridge is read-only — never writes to ~/.hermes/
  • Frontend never sees secrets

Design philosophy

  • Local-first: your data stays on your machine
  • Read-only bridge: inspect Hermes, don’t mutate it
  • Thin UI: no reimplementation of Hermes logic
  • Honest surfaces: if Hermes doesn’t expose it, ConradGUI won’t fake it

Direct API Mode (Removed)

Direct browser-to-Hermes mode has been removed.

Hermes currently rejects POST requests that include an Origin header, which browsers always send. As a result, direct mode was nonfunctional and has been replaced by the proxy-based architecture.

ConradGUI now requires the proxy for real-mode operation.


Security Notes

ConradGUI is designed for trusted local/LAN use only.

Do not expose this directly to the public internet.

Safe by default

  • API key stays server-side (with recommended setup)
  • Chat history is local-only
  • Markdown rendering is safe
  • Conrad Bridge is read-only and binds to localhost (or internal Docker network)
  • Config output has secrets redacted
  • Bridge never reads auth.json, .env, or *.lock files

Limitations

  • No authentication
  • LAN accessible by default
  • Uses localStorage (not secure storage)
  • Not safe for internet exposure

See SECURITY_NOTES.md for full details.


Development

# Frontend
npm install
npm run dev
npm run build
npm run preview
npm run lint

# Bridge
cd bridge
npm install
npm run bridge
npm run build
npm test

Project Structure

src/                     # Frontend (React + TypeScript)
├── components/          # Shared UI components
├── hooks/               # Custom React hooks
├── models/              # Type definitions
├── pages/               # Page components
├── services/            # Service layer (Hermes, bridge client, approvals)
├── router.ts
├── App.tsx
└── main.tsx

bridge/                  # Conrad Bridge backend (Node.js + TypeScript)
├── src/
│   ├── adapters/        # Data source parsers
│   ├── server.ts        # Express server + WebSocket
│   ├── watcher.ts       # File change watcher
│   ├── capabilities.ts  # Feature detection
│   └── paths.ts         # Path resolution + safety
└── test/                # Vitest test suite

Tech Stack

  • React 19 + TypeScript
  • Vite 8
  • Tailwind CSS v4
  • react-markdown + Prism
  • Express (bridge)
  • better-sqlite3 (bridge, read-only)
  • chokidar + ws (bridge, file watching + WebSocket)

Contributing

PRs and issues welcome. I probably won't know what to do with them :-D

For major changes, open an issue first.


License

MIT (see LICENSE)

About

Local-first operator dashboard for Hermes Agent — chat, inspect memory, skills, cron, and session history via a read-only bridge.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages