Claude Hermes
Fork of moazbuilds/claudeclaw. Rebuilt around a SQLite state engine, an envelope-based router, an auto-promoting skills pipeline, and a human-triggered, verify-gated self-evolution loop. The Telegram and Discord bridges are the only interfaces — no web dashboard.
🇨🇳 中文 README
Claude Hermes turns your Claude Code into a personal assistant that never sleeps. It runs as a background daemon, executes tasks on a schedule, responds on Telegram and Discord, transcribes voice commands, and learns new skills from your usage.
Why Hermes (vs. the Claw fork it grew out of)
| Hermes | Claw |
|---|
| Storage | bun:sqlite + FTS5, single state.db | flat JSON files |
| Sessions | scope-based router (dm, per-channel-user, per-thread, shared, workspace) | global + per-thread overrides |
| Skills | candidate → active with a rollback window (shadow on regression) | manual install only |
| Self-evolution | human-triggered, verify-gated: auto-commits on green, reverts on red | none |
| Model routing | agentic routing plus persisted per-conversation overrides | bridge-specific model selection |
| Web dashboard | removed — talk to the daemon via Telegram/Discord/CLI | yes |
| Verify pipeline | typecheck + lint + unit + smoke + integration, all five must be green | manual |
Install
Easiest path — install from the Claude Code plugin marketplace. Inside any Claude Code session, run:
/plugin marketplace add sypsyp97/claude-hermes
/plugin install claude-hermes@claude-hermes
/claude-hermes:start
The setup wizard walks you through model, heartbeat, Telegram, Discord, and security; the daemon then runs in the background. Use Bun and Claude Code 2.1.257+ (claude update before upgrading). start offers to install Bun if missing. See the Claude compatibility and reliability review.
If you previously ran the upstream Claw daemon in this workspace, the first start migrates .claude/claudeclaw/ → .claude/hermes/ once and then leaves the legacy directory untouched as a safety net.
Develop from source
git clone https://github.com/sypsyp97/claude-hermes.git
cd claude-hermes
bun install
bun run verify
Then point Claude Code at the working tree:
/plugin marketplace add /absolute/path/to/claude-hermes
/plugin install claude-hermes@claude-hermes
Features
Automation
- Heartbeat: periodic check-ins with configurable intervals, quiet hours, and editable prompts. The heartbeat prompt can be an inline string or a file path; edits take effect without restarting the daemon.
- Cron jobs: timezone-aware schedules for repeating or one-time tasks. Job files hot-reload every 30s — no daemon restart needed.
- Scaffolder (
/claude-hermes:new): new job <name>, new skill <name>, or new prompt <name> writes a template file with sensible frontmatter so you don't hand-craft YAML. Runs as a CLI too: bun run src/index.ts new job my-job --schedule "0 9 * * *".
- Self-evolution (
bun run scripts/evolve.ts): opt-in local tool that takes a task body (CLI arg or stdin or Discord/Telegram message), asks your local Claude to implement it, runs the full verify pipeline, and commits on green / git restores on red. Small-step, verify-gated, journal-everything discipline. Human-triggered, not a cron — the verify gate is the safety net. Requires a clean worktree (commit or stash tracked and untracked changes first), and no concurrent external edits during the run. Keep generated memory/journal/ and .claude/ state ignored; dirty worktrees are reported before any self-edit or journal write. A lock at .claude/hermes/evolve.lock excludes concurrent evolve processes in the same physical workspace, including path aliases; other workspaces remain independent. A crash deliberately leaves the lock in place: stop its owner and all editing descendants before manually removing a stale lock. A dead owner PID alone is insufficient to reclaim it.
Job notification targets
Job frontmatter accepts notifyChannel: "DISCORD_CHANNEL_ID", notifyTelegramChat: "TELEGRAM_CHAT_ID" and optional notifyTelegramTopic: 42. You can specify both platforms. Explicit targets receive the result instead of the default recipient list; a missing transport or failed target never falls back to other recipients. Without these fields, the existing default forwarding remains. notify: false disables job progress and result notifications; notify: error sends only failed results. A topic requires a chat ID, and malformed targets reject the job during loading.