claude-code-hermit
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 57 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in .claude/settings.json
- process.env — Environment variable access in plugins/claude-code-dev-hermit/scripts/git-push-guard.js
- fs module — File system access in plugins/claude-code-dev-hermit/scripts/git-push-guard.js
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Turn Claude Code into an Always-on Personal AI assistant
claude-code-hermit
Claude Code plugin that turns it into a 24/7 personal AI assistant. Self-learning, Local, Cost-aware, One Claude subscription, multiple hermits.
Hermit wires all the native Claude Code capabilities (/loop, CronCreate, channels, Monitor, auto-memory, native Tasks) to turn CC into a self-learning personal assistant.
# Install
claude plugin marketplace add gtapps/claude-code-hermit
claude plugin install claude-code-hermit@claude-code-hermit --scope project
# Boot Claude Code and run the setup wizard
/claude-code-hermit:hatch
# Go always-on
/claude-code-hermit:docker-setup
One Claude subscription, multiple hermits — each with its own memory, budget, and routines.
What you get
Drops into any folder. Existing codebase, empty directory, new idea — /hatch scans what's there, asks 4–5 questions, and writes a personal rulebook (OPERATOR.md) capturing your priorities, constraints, and approval gates.
Drive it from anywhere. DM your hermit on Discord or Telegram, or remote-control. Powered by Claude Code's native Channels plugin and remote control — no web app, no separate UI.
Self-learning, operator-gated. Reflects on its own session journals and token usage, applies a three-condition rule (repeated pattern + meaningful consequence + actionable change), and proposes new skills, agents, routines, or rules. You approve, defer, or dismiss.
Cost-aware by default. Per-call tokens logged to .claude/cost-log.jsonl; per-session running total in .status.json; per-day rollup in cost-summary.md. Morning briefs include yesterday's spend.
Two guided wizards. /hatch (initialize), /docker-setup (always-on container). Each runs a Quick path (sensible defaults) or Advanced (full wizard).
Always-on Docker isolation, cap_drop: ALL, no-new-privileges, pids_limit baseline. The opt-in /docker-security wizard adds LAN containment with DNS allowlist sidecar, resource bounds, and a plugin-install audit log.
Built on Claude Code's native stack
/loop(scheduled tasks) — heartbeat ticks at your chosen cadence, local routinesCronCreate— built-in local routines (morning brief, evening summary, scheduled checks, heartbeat restart) plus your own custom routines- Channels — talk to your hermit via Discord or Telegram
- Remote Control — drive live sessions from claude.ai/code or your phone; survives sleep and network drops
- Monitor tool — background watches stream events as conversation notifications; zero tokens when quiet
- Auto-memory (
MEMORY.md) — load-bearing memory; hermit layersraw/andcompiled/for durable domain artifacts - Native Tasks —
TaskCreatefor plan tracking; hooks read task files fortasks-snapshot.md - Deny patterns — configured in
.claude/settings.jsonfor fail-closed safety
Hermit adds the integration layer — /hatch to spawn one, the proposal pipeline to evolve one, OPERATOR.md as policy.
The Learning Loop
Hermit reflects at natural pauses: end of session, idle ticks, scheduled-check cadence. Most reflections never hit the LLM: a precheck script gates whether any of five phases (compute, resolution check, cost spike, digest, newborn) are actually due. When something is, hermit drafts a candidate.
Two subagents gate quality before anything reaches your inbox:
reflection-judgeverifies that cited cross-session evidence actually exists in the report files.proposal-triagededuplicates against existing proposals, cross-checksMEMORY.md, and applies the three-condition rule.
Survivors land as a proposal you can act on:
/claude-code-hermit:proposal-list # see what hermit found
/claude-code-hermit:proposal-act accept PROP-003 # approve
What gets proposed: improvements, routines, new capabilities (skills, agents, heartbeat checks), constraints (OPERATOR.md guidance you confirm), and bugs.
Voyager-style auto-curriculum, you're editor-in-chief. Under the hood, raw session journals distill into compiled artifacts that reload next session — the raw-vs-compiled pattern Karpathy described for his wiki-LLM.
Quick Start
Prerequisites: Claude Code v2.1.140+, a Claude plan (Pro, Max, Teams, or Enterprise), and Node.js 22+. Linux, macOS, and Windows via WSL2 — see FAQ.
1. Install
cd /path/to/your/project # or any folder — even an empty one
claude plugin marketplace add gtapps/claude-code-hermit
claude plugin install claude-code-hermit@claude-code-hermit --scope project
2. Initialize
claude /claude-code-hermit:hatch
The wizard sets up your agent's identity, scans your folder, generates OPERATOR.md, and offers Quick (5 questions) or Advanced (full wizard).
Just trying it? After
hatch, run.claude-code-hermit/bin/hermit-start --no-tmuxfor sessions, routines, heartbeat, and the learning loop without 24/7 autonomy. Run/claude-code-hermit:channel-setupfirst if you want Discord or Telegram.
3. Go Always-on
/claude-code-hermit:docker-setup
Generates the Docker scaffolding, builds the image, starts the container, and walks through auth and channel pairing. The container ships with the hardening baseline (cap_drop: ALL, no-new-privileges, pids_limit). Want stronger isolation? Run /docker-security for opt-in LAN containment + DNS allowlist + resource bounds.
See Always-On Setup for the full guide. Want always-on without Docker? See Always-On Operations for bare tmux.
Upgrading
claude plugin update claude-code-hermit@claude-code-hermit --scope project
/claude-code-hermit:hermit-evolve
Cost & local-first
- Per-call token usage logged to
.claude/cost-log.jsonl(model, input/output/cache split, USD estimate). - Per-session running total in
.status.json; carried into archived session reports as frontmattercost_usd. - Per-day rollup in
cost-summary.md, regenerated on every cost-tracker tick. - Morning brief (when scheduled as a routine) reads
cost-summary.mdand includes yesterday's spend. idle_budgetis a soft cap.hermit-doctorwarns at 80%, fails the cost check at 100% — no surprise stop-mid-task; you decide when to wind down.
No daily caps, no per-runtime-hour billing.
Pre-built Hermits
Domain plugins you stack on top of any hermit you've hatched.
dev-hermit— For software builders. Safety layer for code-writing agents: push guard, branch discipline, gated PRs.homeassistant-hermit— For Home Assistant users. HA skills, safety hook, automation builder, Python CLI.fitness-hermit— Fitness focused. Strava MCP wiring, activity deep-dives, weekly-load routines.
Many operators run several hermits in parallel — one per domain. Each one is a /hatch away. They share nothing but the protocol; their memory, budgets, and routines are independent. See Creating Your Own Hermit.
Documentation
- Always-On Operations
- Always-On Setup
- Architecture
- Config Reference
- Creating Your Own Hermit
- Docker Security
- FAQ
- Getting Started
- Plugin Hermit Storage
- Recommended Plugins
- Security
- Skills Reference
- Testing
- Troubleshooting
- Upgrading
Credits
- OpenClaw — Inspiration for autonomous agent ergonomics
- Everything Claude Code — Hook patterns and lifecycle architecture
- Andrej Karpathy — Inspiration for the raw/compiled knowledge system
License
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found