Skip to content
项目

关于

Think Claude Tag, but local.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+3
1个月
+5

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

MIT License Claude Code Plugin Version 1.4.47 Downloads PRs Welcome Join

Like Claude Tag, but local.

Run an always-on Claude Code agent on your own machine, for you or your team.

Multi-project orchestration: The agent can start and orchestrate sessions from any projects it can reach. Take over the same session in the Claude app or the CLI. Tasks, saved watches, and pending decisions survive a restart.

Connect Discord, Telegram, iMessage, or a custom Claude Code channel. Use the Claude app via Remote Control, or your terminal.

The agent has its own browser (agent-browser). Take over and Hand back when you want, for example a login. Or use Chrome on your laptop, including when the agent runs on another machine.

Give it ongoing responsibilities: maintain research, monitor systems, run routines, and follow up on unfinished work. Between requests, it checks those responsibilities, carries progress across sessions, and reaches you when something needs attention.

Run it on your Claude subscription and extend it with your own MCP servers, skills, and plugins.

It's Claude Code. hermitd is a plugin for Claude Code, no new harness, no wrapper around Claude Code. You get all of Claude Code.

https://github.com/user-attachments/assets/84012a4d-4ca1-475e-b82d-1db45634a5e3

How it compares

Option Why hermitd
Hermes Agent, OpenClaw hermitd runs directly inside Claude Code as a plugin, without a wrapper or separate agent loop. You get Claude.ai, Artifacts, the Claude app, Remote Control, and the rest of Claude Code, with your tools, permissions, skills, plugins, and MCP.
Claude Projects Multi-project orchestration, with your CLIs and tools. Chat through any Claude Code channel. Significant cheaper on routines: Monitor and a precheck can skip a run without model tokens.
Claude Tag Use any Claude Code channels: Discord, Telegram, iMessage, or a custom channel, and continue the same session in the Claude app or terminal.
Claude Duet, ChatGPT Dots, Grok Bot It runs locally, fully customizable. Routines can be significant cheaper.
Self-hosted Claude Managed Agents hermitd runs on your Claude subscription rather than API usage, which can be 10x cheaper.

Set up

Choose one installation method below. Run it from the folder where you want your agent, empty or existing. Uses your Claude subscription on Linux, macOS, or Windows via WSL2. See prerequisites.

Already run Claude Code? Install the plugin

With Claude Code 2.1.330+ and Bun 1.4.2+ installed:

claude plugin install hermitd --marketplace gtapps/hermitd --scope local
claude --chrome "/hermitd:hatch"
Fresh machine? Use the bootstrap installer

Prepares Claude Code, Bun, and tmux, installs the plugin, and launches setup:

curl -fsSL https://gtapps.github.io/hermitd/install.sh | bash
Prefer a coding assistant? Send it a prompt

Open Claude Code, Codex or another coding assistant anywhere on the machine and send:

Set up a hermitd agent by following the Set up and Keep it running sections of https://github.com/gtapps/hermitd#quick-start. First ask me which folder the agent should live in. Install or update what's missing, then hand me each Claude Code command I have to type myself, starting with hatch in that folder. Stop and tell me when something needs my login or approval.

Each option sets up the agent in the folder you pick. Hatch guides you through the agent’s purpose and preferences, then shows how to start it. Choose Quick for defaults you can adjust later.

Keep it running

After setup, follow the printed next steps to start your agent.

On your machine

To start without a chat channel, run:

hermitd start

Requires tmux. The watchdog recovers failed sessions while your machine stays on. Claude Code's /sandbox is recommended for unattended use. If you selected a chat channel at hatch, type /hermitd:channel-setup start to configure the credential, start the agent, and pair. To add a channel to a running agent, type /hermitd:channel-setup.

Host setup and operations

In Docker

Run the guided setup in Claude Code:

/hermitd:docker-setup

Builds and starts the container, then walks you through authentication and channel pairing. Requires Docker Compose v2.

Docker setup

Customize the container. Ask the agent to add tools, packages, or services to its Docker setup. For example: “Add ffmpeg to the container.”

Optional Docker security controls cover local-network access, DNS policy, resource limits, and plugin installation auditing.

What the plugin adds

  • Continuity. Persistent working state and archived session handoffs carry progress across compaction and restarts. An external watchdog recovers failed sessions, while context management keeps long-running sessions manageable.

  • Proactive work. Heartbeats regularly check the responsibilities you give the agent. Routines run scheduled work, and watches surface changes. Together, they let the agent follow up without waiting for another request.

  • Work through chat. Assign work and receive results in your connected chat. Longer assignments get threaded progress updates, with a separate reply when the agent needs a decision. Assignments can also carry a persistent task record with requester, due date, result confirmation, and a dashboard view by person.

  • Your network. Local databases, SSH, LAN devices, filesystem are reachable because the agent runs where they are.

  • Token efficiency. With Claude Code’s Monitor, heartbeat checks and optional routine prechecks run outside the model. Quiet checks and skipped routines use no model tokens; eligible routines due together can share a wake.

  • Lasting knowledge. Turn source material in raw/ into a maintained LLM wiki in compiled/, alongside Claude Code's auto memory. /recall searches past sessions, knowledge, proposals, and captured channel conversations.

  • Learning from experience. The agent reviews evidence from its work and operation, saves useful lessons, and verifies proposed behavior changes before bringing them to you for approval.

  • Control and visibility. Track progress, pending decisions, and usage through the dashboard. Pause is enforced at the tool boundary, and optional usage caps can alert you or pause further work.

Part of your project channel. With passive mode, the agent saves incoming group messages to look back on later, and wakes when someone you allow @mentions it. It also remembers instructions for that channel. Fixed policies you set for a chat change only through an approval prompt, and an optional scheduled review proposes rule updates when the same correction keeps coming up.

Work that belongs to a chat. Routines, watches, and reminders created from a chat report back to that chat. A team chat lists and edits its own routines, and changing one it does not own asks for approval. Third-party channel plugins can join in: a small send script gives them proactive notices and routine chats, and Docker approves them for you.

Configure

Tune from a terminal with /hermit-settings, or change permitted settings from a trusted connected chat. Every write is validated and recorded in a redacted audit ledger; /hermit-settings history [setting] shows what changed. Some of the settings available:

Key Default / options (default bold)
agent_name your assistant's name
operator_profile primary-chat audience: technical / non-technical
timezone machine's zone stored at setup; must be usable by the scheduler
language unset until chosen or learned in the first conversation
escalation how much it does before asking: conservative / balanced / autonomous
model session model: sonnet
effort session reasoning effort: unset (Claude Code default)
permission_mode how freely the unattended agent acts: auto
AGENT_HOOK_PROFILE guardrail profile: minimal / standard (interactive) / strict (always-on)
channels Discord / Telegram / iMessage / third-party channel plugins (+ allowed_users)
channels.primary which channel gets outbound pings
channels.<name>.maintainer_channel_id optional separate chat for technical alerts, diagnostics, and usage details
push_notifications native/mobile push on alerts: true
remote remote control; false also requires approval for cross-machine peer messages; true
approvals auto-mode approval policy: personal (existing behavior) or team (typed turns and DM-paired approvers in the maintainer chat; chat prompts close after 60 seconds); effective at next start
ask_gate route unattended questions to a paired channel: true
budget optional daily / weekly / monthly caps; alert or binding pause action
artifacts dashboard / weekly review: dashboard enabled
heartbeat.enabled timed idle sweeps: true
heartbeat.every idle sweep cadence: 30m
heartbeat.active_hours active window: 08:00–23:00
heartbeat.model / heartbeat.effort heartbeat evaluator: haiku at high
routines persistent routines managed via /hermit-routines
monitors persistent background watches managed via /watch
scheduled_checks session-triggered skills at task completion
reflection.graduation_min_sessions proposal recurrence bar: 1
quality_gate.tier post-change cleanup spend: budget / balanced / quality
knowledge.compiled_budget_chars fresh/resumed startup catalog budget: 2500
knowledge.raw_retention_days raw/ retention: 14
knowledge.working_set_warn warn above N compiled docs: 20
auto_session auto-start session on boot: true
boot_skill / shutdown_skill custom boot / teardown skill
context_hygiene.clear safe-boundary context clear: enabled, quiet 1h, max age 24h, minimum 20,000 tokens
context_hygiene.compact compact long-running active context: enabled, 100000 compactible tokens / 4h cooldown
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE auto-compact at % of context: 65
MAX_THINKING_TOKENS thinking-token cap per turn: 10000
CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES skips subagent spinner-label requests: 1
watchdog.scheduler_enabled OS scheduler for the watchdog tick: true on tmux always-on (auto-installed at boot); false or hermitd-watchdog uninstall opts out
watchdog.enabled recovery/restart tier: false until first scheduler registration (or /docker-setup); hygiene still runs

Full schema in the Config Reference

Your own prompt. Replace the agent's built-in prompt and rules with .hermit/resident-prompt.md, and spawned helpers' with .hermit/helper-prompt.md. Delete the file to return to the shipped prompt. See Replacing the resident prompt.

Observe

Artifacts. The agent uses Claude Code Artifacts to provide an interactive dashboard and custom pages generated on demand that you can view, interact with, and share. Ask it to build your own personalized agent dashboard.

Ask for an update from your terminal or connected chat:

Command What it gives you
/brief Current status and a summary of recent work.
/recall Search past sessions, knowledge, proposals, and captured conversations.
/hermit-health Alerts, routines, channels, blockers, and recent learnings.
/hermit-doctor Diagnostics for the installation, runtime, scheduling, credentials, and permissions.
/hermit-evolution Cost trends, proposal activity, routines, and what the agent has produced over time.
/cost-reflect A breakdown of usage by token type, session, and what triggered the work.
/hermit-dashboard-design A dashboard designed around what your agent actually tracks.

Learning loop

The agent learns along three paths: closed work can save or revise its own learned skills when skill learning is enabled, a nightly dream verifies and tidies memory, and reflection keeps durable lessons and brings other behavior changes to you for approval.

        Work produces evidence
  (task records, transcripts, cost logs)
                   │
     ┌─────────────┼──────────────┐
     ▼             ▼              ▼
Task closes    Nightly dream  Reflect when due
     │             │              │
     ▼             ▼              ▼
Review the     Verify and     Verify the cited
procedure      tidy memory    evidence
     │         and topic          │
     ▼         pages (undo)   ┌───┴────┬─────────┐
Save or patch                 ▼        ▼         ▼
a learned skill           Remember  Note it  Candidate
(pin, rollback)           a lesson  until it change
                                    recurs       │
                                                 ▼
                                          Drop duplicates,
                    Monthly brainstorm ──► weak cases, and
                                          what memory covers
                                                 │
                                                 ▼
                                           You approve?
                                              │     │
                                             no    yes
                                              │     │
                                        No change   Re-check,
                                                    then implement
                                                    │
                                                    ▼
                                              A check passes, or
                                              you accept the result

Reflection runs daily when something is due, after routines configured to reflect, and on scheduled skill checks. Suggestion paths check memory first, so nothing memory already records is proposed again. Close-time learning reviews delegated and longer tasks and edits only learned skills; a needed routine or agent becomes a proposal. Proposals are task records waiting for admin consent.

Ask it from your chat

Ask What it does
“Start X in ~/code/api on Opus at high effort, in its own worktree.” Starts a session in any project, on your model and effort.
“Tell me when my session in ~/code/web finishes.” Watches your other Claude Code sessions.
!pause · !snooze 2h · !model sonnet · !effort high Claude Code controls, straight from chat.
!status · !scheduled See work in progress, what’s waiting on you, and this chat’s routines and watches without a model turn.
Voice messages The agent transcribes it and replies in text in the same chat. See voice-note requirements and controls.
“/later check tomorrow whether those errors have returned.” Checks whether a fix held up over time.
“remind me Monday at 14:00 to pay the invoice” Delivers a durable reminder at the due minute in monitor mode, even after a restart.
“Download last month's invoices from the supplier portal.” Uses its own managed browser by default and offers phone Take over and Hand back on Docker and Linux/WSL2 tmux. The operator's Chrome is opt-in for their account.
“When I ask for a status update, include blockers.” Remembers instructions for that channel.
“What else could you be doing for me?” Make me proactive offers standing jobs such as reminders and watches. Say yes to set one up, or ask to “brainstorm capabilities” for new capability ideas.

Cost

Quiet heartbeat checks, skipped routines, and passive chat capture use no model tokens. Work, evaluations, and replies consume usage; context management keeps conversation history bounded.

event: a file, a log line, a webhook, a schedule
   │
   ▼
precheck (plain script, no model tokens)
   │
   ├── nothing changed ──▶ back to sleep
   │
   ▼ something to do
Claude Code turn on your machine
   │
   ├── needs a decision ──▶ asks you in chat
   │
   ▼
result in your chat  +  usage recorded
  • See what drives usage. Token usage is recorded per call, including the model, input/output/cache split, and whether work came from a routine, heartbeat, channel, or another source. Session and daily totals feed the dashboard, weekly review, and /cost-reflect.
  • Set limits. Optional daily, weekly, and monthly caps can alert you or enforce a pause until the exceeded budget window resets. Under Claude subscription billing, dollar figures are usage estimates rather than additional per-token charges.
  • Choose where to spend. Set the session model and effort, and optionally a model and effort per routine or per task. Heartbeat checks run on Haiku at high effort by default. Routine models run in isolated subagents, so use them for work that can return a concise result.

See budgets and routine scheduling for configuration and scheduler fallback behavior.

Remote work

Live chat & voice through your AI app. Reach your running agent from a conversation in Claude, ChatGPT, Grok, or Gemini with hermitd-connector.

Reach the running agent through your connected channels or Claude Code Remote Control. You can also start separate sessions for additional work:

  • Background sessions with follow-up. Through /spawn-session, the agent launches a local Claude Code helper in the project, or in another folder with --cwd, and relays its status when it becomes idle. Claude Code isolates the helper's edits in a Git worktree unless the project sets worktree.bgIsolation to none; pass --worktree to give it one from the start. Set the helper’s model and effort with options such as --model sonnet --effort high.
  • Task threads for helpers. Helpers end on their full report, and the resident handles the receipt after the idle notice. Chat tasks receive their reports in the task conversation. Reply-only channels and terminal sessions get a short report-back with the full report available on request. Related new work can return to the same idle helper in the same chat and folder. Use !model or !effort in a bound thread to switch the helper, and !status to see results ready for review.
  • Local Remote Control gate. Through /rc-gate, the agent manages a Remote Control server on your machine or server. While the gate is open, you can spawn new Claude Code sessions from the Claude app, using your local files and tools. Each session gets its own Git worktree, while the agent keeps running.

Both session-spawning paths require a Git workspace. Remote Control requires a Claude sign-in through /login on the machine running the agent.

Watch other sessions. Through Claude Code cross-session messaging, ask the agent to watch a local Claude Code session, including one you started interactively, and notify you when it next becomes idle.

Claude Code controls from chat. Use !model sonnet, !effort high, !advisor opus, !compact, !clear, !doctor (alias !checkup), and !permission-mode auto directly from your connected chat. Control the agent’s work with !pause, !resume, and !snooze 2h. Use /when-done-switch-to --model sonnet to switch automatically at the end of the current turn.

Extensions

Optional plugins that add domain tools and workflows to your agent.

  • dev-hermit: Branch discipline, push guards, and gated PR workflows.
  • homeassistant-hermit: Home Assistant tools, automation workflows, and safety checks.
  • fitness-hermit: Strava integration, activity analysis, and training routines.
  • hermitd-feed: Source curation, recurring briefs, and weekly synthesis.
  • hermitd-connector: Pair people to talk to the agent from their own Claude, ChatGPT, Grok or Gemini app.
  • hermitd-laravel-forge: Laravel Forge deployments, logs, and server management.
  • hermitd-scribe: GitHub issues and comments from proposals through a dedicated bot identity.

You can run separate agents for different responsibilities, each with its own working state, knowledge, and routines. See Creating Your Own Hermit.

External orchestration. Other agents and tools can check the agent’s status, health, and recent work through its MCP interface, and request a wake when needed.

Maintenance

Sign-in renewal from chat. When your agent’s Claude sign-in needs renewing, use /relogin from your connected chat. Open the link in your browser, sign in, and send the code back in chat.

Tool sign-ins. Anyone admitted may ask to reconnect a tool or claude.ai connector; the agent tells an admin, who finishes the sign-in with /mcp at the agent's terminal. The account used serves every chat and routine, so prefer a dedicated account over a personal login, and forward the link /mcp shows if the tool belongs to someone else's account.

Scheduled backups. Optional backups preserve the agent’s knowledge, session reports, settings, and Claude Code memory in Git, with an optional private remote copy. Backups run without model tokens.

Instruction file audit. Claude Code's /doctor prompt-audit, typed in the agent's terminal or the Claude app, checks the agent's CLAUDE.md, rules, skills and subagents for outdated, redundant or conflicting instructions and proposes edits. It can't be started from chat.

Upgrading

Run hermitd update from the project folder, or hermitd update <name> from anywhere. Docker updates refresh the host core first, then the container. The update applies migrations, then restarts the agent once and resumes the conversation. External updates finish with a hermitd doctor --fix pass and record its result in update history. Run hermitd doctor [--fix] to list health findings and their commands, or apply safe repairs and re-check; queued upgrades remain pending until the agent applies them.

Without a host terminal, type /hermitd:hermit-update, /hermitd:hermit-restart or /hermitd:doctor-fix into a host agent's session from the Claude app (or a terminal). These management commands run only when typed: chat cannot start them, and the agent never starts them on its own. A Docker agent takes the restart; its update and repair stay on the host.

hermitd list shows registered and discovered agents on this host, including stopped and missing projects. hermitd status [name] shows transport, execution and its age, open and waiting tasks, and the task in progress, including one a worker or helper runs. Both support --json. Listing never removes entries; hermitd prune [name] removes missing projects, or the named one, with their host stores (approved Docker copies, which include a copy of .env, and credential proxy data), keeping them while a container of the project still runs.

Use hermitd start|stop|restart|attach [name] for lifecycle commands, hermitd pause [name] on|off|snooze <duration>|status, hermitd watchdog [name] run|install|uninstall, or hermitd run [name] <script> [args] for maintenance. Names match the project folder or agent name; with no name, the nearest project above the current folder is used.

hermitd agents [name] opens Claude Code's agent view (claude agents) where the agent runs: inside the container for Docker agents, on the host under the agent's Claude config folder otherwise. On the host that view lists every session in the config folder, so pass --cwd <path> to narrow it. Extra flags pass through, and --json works from scripts.

hermitd skills [name] status|pin|unpin|rollback|archive|restore [skill] inspects or controls learned skills. Use status --skill <skill> for one bounded history and its last use. Mutations run inside the container when the Docker agent is up. A task close can save a reusable procedure automatically; "keep this skill" pins it and "stop doing it that way" about a named learned skill rolls back its latest revision.

See the Upgrade guide for details.

Guides

All documentation

Community

Join the Discord community for setup help and discussion. See CONTRIBUTING.md for reporting bugs or contributing.

Credits

Andrej Karpathy inspired the raw/ → compiled/ knowledge system.

Building always-on agents describes the surrounding architecture: an event inbox, timers, memory, permissions, and an outbox.

The components of agent memory describes a small index loaded every session, with the detail behind it.

Continual-ARC measures skill acquisition over a working lifetime for agent harnesses (Lenton, Arif, and Mahmood, 11 Nov 2026). The authors' write-up is Why we built Continual-ARC.

Securing persistent agents like OpenClaw at OpenAI describes how OpenAI isolates, sandboxes, and identifies the persistent agents in its own deployment.

Hermes Agent and OpenClaw are other open source agents.

agent-browser from Vercel is the managed browser. Claude in Chrome is the alternative.

License

MIT

Independent project, not affiliated with Anthropic.

探索相关项目

加载中…