/hermitd:hermit-settingsfrom hermitd
Views or modifies hermit configuration including model, channels, approval rules, morning brief, heartbeat, routines, compaction thresholds, Docker packages, and unattended mode.
Ships in hermitd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
View or modify the hermit configuration for this project.
artifact-render: bun ${CLAUDE_PLUGIN_ROOT}/scripts/artifact.ts render <type> .hermitchannel-group-add: bun ${CLAUDE_PLUGIN_ROOT}/scripts/channel-access.ts "<hermit_state_dir>" group-addchannel-show: bun ${CLAUDE_PLUGIN_ROOT}/scripts/channel-access.ts "<hermit_state_dir>" show <channel>If this skill was invoked from a channel-arrived message (the inbound prompt contains a <channel source="..."> tag), reply via that channel's reply tool. Otherwise emit to conversation.
Everyday settings apply through settings-edit. A static list in scripts/settings-gate.ts protects trust, disclosure, credentials, executable configuration, and existing guarded settings with Claude Code's native permission prompt. Protected writes ask in either direction. Parent replacements ask only when protected content changes; routine containers keep their existing precheck comparison. A No is the operator's answer: never retry or route around it, and never edit config.json directly. The channel plugin delivers the prompt to the operator's DM or the terminal pane.
On a channel-tagged turn, every free-form Ask: prompt below is delivered via the reply tool instead of waiting on terminal input — the branch proceeds as an over-channel exchange (ask, then act on the reply when it arrives), the same as any other channel conversation. Never call AskUserQuestion on a channel-tagged turn — it renders in the terminal, invisible to a remote operator. The one bounded ask in this skill (quality-gate, below) additionally queues a durable task input decision per channel-responder § Channel-safe ask bridge (schema: channel-responder/questions.md), so it survives compaction or a session restart; any free-form question that outlives the exchange also belongs to a task.
/hermitd:hermit-settings — show all current settings
/hermitd:hermit-settings name — set agent name
/hermitd:hermit-settings language — set preferred language
/hermitd:hermit-settings messages : reword a fixed notice (watchdog, status, budget, login)
/hermitd:hermit-settings rules : view or change approval rules
/hermitd:hermit-settings voice : edit how the hermit talks (style: everyday; custom prose: native permission prompt)
/hermitd:hermit-settings timezone — set timezone
/hermitd:hermit-settings escalation — set escalation threshold
/hermitd:hermit-settings channels — configure channels
/hermitd:hermit-settings remote — toggle remote control
/hermitd:hermit-settings remote-environments <name> <link|env_id|remove>: manage remote helper environments
/hermitd:hermit-settings model — set Claude model
/hermitd:hermit-settings delegation-model — model for background helpers and task workers
/hermitd:hermit-settings delegation-effort — effort for background helpers and task workers
/hermitd:hermit-settings brief — configure morning brief
/hermitd:hermit-settings permissions — configure unattended mode
/hermitd:hermit-settings heartbeat — enable/disable, interval, quiet mode, active hours, check model and effort, clean recheck cooldown
/hermitd:hermit-settings watchdog — scheduler_enabled, enable/disable, stale_factor, wedge_floor, escalate_after, operator_grace, context hygiene compaction
/hermitd:hermit-settings routines — manage scheduled routines (add/edit/remove/enable/disable)
/hermitd:hermit-settings env — view/edit environment variables
/hermitd:hermit-settings docker — add/remove Docker packages; edit recommended plugins
/hermitd:hermit-settings browser-chrome-args — view/add/remove extra Chrome flags for the agent's browser
/hermitd:hermit-settings browser-options - view/edit agent-browser options and the browser's unsafe opt-ins
/hermitd:hermit-settings scheduled-checks — manage scheduled plugin skill checks
/hermitd:hermit-settings boot-skill — view/clear/change the operator’s replacement startup skill
/hermitd:hermit-settings quality-gate — set post-implementation /simplify gate tier (budget|balanced|quality)
/hermitd:hermit-settings skills-learning: enable or disable close-time skill learning
/hermitd:hermit-settings skills-notify: off, on, or verbose learning notifications
/hermitd:hermit-settings reflection — tune graduation threshold (graduation_min_sessions)
/hermitd:hermit-settings push-notifications — toggle PushNotification doorbell (fires when no channel is enabled or a configured channel is unreachable)
/hermitd:hermit-settings artifact-dashboard — toggle the Hermit Dashboard artifact (single-URL status/waiting/weekly-evolution page)
/hermitd:hermit-settings artifact-weekly-review — toggle the Weekly-review artifact (stable-URL passthrough of the compiled weekly report)
/hermitd:hermit-settings artifact-authorization — record the unattended Artifact publish decision (applied by hermitd-start at boot, not from this session)
/hermitd:hermit-settings artifact-backend — where pages publish: `claude` (default), or the name of a connected MCP artifact server you registered yourself
/hermitd:hermit-settings history [path] — recent recorded settings changes (who changed what, when)
Read .hermit/config.json. If it doesn't exist, inform the operator: "No config found — type /hermitd:hatch first, in a terminal or the Claude app."
Scalar and enum edits below are written through scripts/settings-edit.ts, which read-modify-writes the whole config (preserving every sibling key) and refuses a malformed file. Shorthand used in this skill:
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json show # operator-facing summary of live values
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json get [dotted.path] # dump whole config, or one value
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json set <dotted.path> <value> # 'none'/'clear' → null; value is JSON-parsed then falls back to raw string
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json toggle <dotted.path> # boolean flip (absent → true)
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json unset <dotted.path> # delete a key (siblings and parents untouched)
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json history [dotted.path] [--limit N] # recent audited changes
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json record-file HEARTBEAT.md # record checklist fingerprint
Every write goes through these verbs — never edit config.json with Edit/Write. The script preserves siblings, refuses a change that would make the config invalid, and records the change in the audit ledger that history reads. A hand-edit bypasses all three.
If argument is "rules": Read rules.md and follow its approval-rule procedure.
If no argument (or argument is "all"):
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json show
Compose the summary from its JSON: per area (identity, operational, artifacts), each label, value (absent: unset on a nullable row, else default), the arg that changes it (null: read-only) and when it applies; then each stateful section and its arg. Report only what it carries, never a remembered or example value.
Scalar and enum arguments — one table, one shape.
Each row is the same shape: ask the operator for a value, then write it with
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json apply-known <argument> <value>
Pass the argument name, not the dotted path — the script looks the path up, coerces the value by kind, and refuses an out-of-enum value or an unknown argument with status: refused and a detail to relay (this matters: settings-edit writes through fs, so the validate-config.ts PostToolUse hook never sees the write and a bad value would otherwise land silently). On success relay the new value and when it applies. none/clear maps to null wherever a row is marked nullable. Compose the prompt itself from the hint and the enum values.
| Argument | Config path | Type | Values | Applies |
|---|---|---|---|---|
name | agent_name | string, nullable | any; any string, or 'none' to clear | immediately |
timezone | timezone | string, nullable | any; scheduler-usable zone (UTC, Europe/Lisbon, America/New_York) | immediately; run /hermitd:hermit-routines load after success |
escalation | escalation | enum | conservative / balanced / autonomous; how much it acts without asking | immediately |
remote | remote | boolean | yes / no; connect from claude.ai/code or phone | next hermitd-start |
chrome | chrome | boolean | yes / no; use the operator's signed-in browser | next hermitd-start |
browser | browser.enabled | boolean | yes / no; enable the hermit’s own browser | next hermitd restart (Docker: next hermitd update) |
browser-default | browser.default | enum | agent-browser / chrome; agent-browser or chrome (requires chrome enabled) | immediately |
browser-use-when-fetch-fails | browser.use_when_fetch_fails | boolean | yes / no; open a page the agent could not fetch in its browser; off reports the block and offers the browser instead | immediately |
browser-inactivity-timeout | browser.inactivity_timeout | integer | any; seconds before an unused signed-in browser closes; 0 turns it off | within a minute |
browser-saved-logins | browser.saved_logins | boolean | yes / no; off stops the agent from saving or using saved logins; existing saved logins stay on disk until deleted | next start of the agent's browser |
browser-software-webgl | browser.software_webgl | boolean | yes / no; render WebGL in software when no GPU is usable; off leaves WebGL sites broken on GPU-less machines | next start of the agent's browser |
browser-executable-path | browser.executable_path | string, nullable | any; absolute path or command name of a Chromium-based browser for the agent's browser, or 'none' for the bundled Chrome | next start of the agent's browser |
browser-engine | browser.engine | enum | chrome / firefox / lightpanda / obscura; engine for anonymous --session browsers; anything but chrome launches without the agent's Chrome flags and loses the metadata-address block | next anonymous browser session |
browser-engine-path | browser.engine_path | string, nullable | any; absolute path or command name of the firefox, lightpanda or obscura binary, or 'none' to let agent-browser look for it | next anonymous browser session |
browser-default-args | browser.default_args | boolean | yes / no; off drops the agent's anti-detection, WebGL and matched user-agent flags; the metadata-address block stays | next start of the agent's browser |
transcription | transcription.enabled | boolean | yes / no; transcribe inbound voice notes | next voice note (Docker image: next hermitd update) |
transcription-echo | transcription.echo | boolean | yes / no; echo transcripts in the same chat | next voice note |
auth-mode | auth_mode | enum, nullable | login / token; login (claude.ai sign-in, renew ~monthly) or token (long-lived, renew yearly) | run /relogin to sign in with the new method |
model | model | string, nullable | any; model name passed straight to --model, or 'none' for the Claude Code default | next hermitd-start |
delegation-model | delegation.model | enum, nullable | opus / sonnet / haiku; model for work handed to background helpers and task workers, or 'none' for the built-in default | next helper or worker dispatch |
delegation-effort | delegation.effort | enum, nullable | low / medium / high / xhigh / max; effort for work handed to background helpers and task workers, or 'none' for the built-in default | next helper or worker dispatch |
boot-skill | boot_skill | string, nullable | any; operator-selected replacement startup skill; core startup does not run first; 'none' restores /hermitd:resident-start | next hermitd-start |
permissions | permission_mode | enum | auto / acceptEdits / default / plan / dontAsk / bypassPermissions; how much Claude Code asks before acting | next hermitd-start (Docker, to or from bypassPermissions: hermitd restart --build) |
push-notifications | push_notifications | boolean | yes / no; doorbell when no channel is reachable | immediately |
skills-learning | skills.learning | boolean | yes / no; review reusable procedures at task close | immediately |
skills-notify | skills.notify | enum | off / on / verbose; off, on, or verbose close replies | immediately |
reflection | reflection.graduation_min_sessions | integer | any; distinct sessions before a pattern becomes a proposal candidate | next reflect run |
artifact-dashboard | artifacts.dashboard | boolean | yes / no; status, proposal queue, weekly evolution | next refresh |
artifact-weekly-review | artifacts.weekly_review | boolean | yes / no; the compiled weekly report at a stable URL | next refresh |
artifact-backend | artifacts.backend | string | any; 'claude', or the name of a connected MCP artifact server | next refresh |
The enum values, dotted paths, and "applies" notes come from scripts/lib/settings/registry.ts, the same module show reads and validate-config.ts shares its enums with. When a setting is added, add the row there; this table mirrors it.
A change that applies at the next start or restart on a host agent takes effect when the operator types /hermitd:hermit-restart in a terminal or the Claude app; say so when relaying it.
model takes whatever Claude Code takes. The stored value is passed verbatim to --model by hermitd-start.ts, so no model list lives here. Offer the operator the aliases Claude Code itself accepts (opus, sonnet, haiku) or a full model ID, and pass it through.
Permission-mode note (surface when the operator picks one): auto is classifier-reviewed autonomy and the default; acceptEdits auto-approves file edits but prompts for shell; default prompts on first use of each tool; plan is read-only; dontAsk denies anything not in permissions.allow; bypassPermissions is for isolated containers only. auto may report unavailable depending on plan/model/provider — see Permission Modes.
The remaining arguments each do more than write one leaf, so they keep their own procedure below.
If argument is "language":
If a value is supplied with the argument, skip locale detection and the question; continue with that value. Otherwise:
Auto-detect the system locale via Bash as a default suggestion.
Ask for the preferred language (e.g. pt, en, es, fr), offering the current value or the detected locale as default.
Run settings-edit ... set language <value>.
Then re-sync the two fixed-text tables: the dashboard/proposals chrome (.hermit/state/artifact-strings.json) and the script notices sent to the channel (.hermit/state/messages.json). Both fall back to English per key.
New value is not en:
bun ${CLAUDE_PLUGIN_ROOT}/scripts/artifact.ts scaffold-strings <value> <current-ISO-timestamp>, translate every strings value, and write .hermit/state/artifact-strings.json.bun ${CLAUDE_PLUGIN_ROOT}/scripts/messages.ts scaffold .hermit <value>, translate each todo entry's en text (its note gives context), write .hermit/state/messages-draft.json as {"language":"<value>","locale":"<BCP 47 tag>","strings":{"<key>":"<translation>"}}, and run messages.ts apply .hermit. Translate again any key it returns under rejected.In both, keep keys and {placeholder} tokens verbatim.
New value is en: delete .hermit/state/artifact-strings.json if it exists, and run bun ${CLAUDE_PLUGIN_ROOT}/scripts/messages.ts clear .hermit.
Custom wordings are written in the language they were set in. When bun ${CLAUDE_PLUGIN_ROOT}/scripts/messages.ts status .hermit lists any under overrides, ask whether to keep them or drop them (messages.ts reset .hermit --all).
If argument is "messages":
Every set or reset change needs an approver's Yes in the native permission prompt. On No, stop; never retry or route around it.
The fixed notices scripts send to the channel (watchdog, status reply, budget, denial and login messages) can be reworded per message. bun ${CLAUDE_PLUGIN_ROOT}/scripts/messages.ts list .hermit gives every key with its English text and any custom wording. Pick the key the operator means, write the new wording in their language, and run messages.ts set .hermit <key> "<text>". A placeholder_mismatch reply names the {placeholder} tokens the text must keep (they carry times, commands and the reauth word the login flow listens for); rewrite and set again. messages.ts reset .hermit <key> restores the default. Custom wordings survive upgrades and retranslation; doctor's message-catalog check names any an upgrade made unusable.
If argument is "voice":
The hermit's tone lives in a native Claude Code output style, loaded into the system prompt at session start. config.json's voice block is what you own; the outputStyle key and, for a custom voice, .claude/output-styles/hermit-voice.md are rendered from it — at boot, and immediately when this runs in a terminal.
Picking a built-in is an everyday setting (three sealed values, no text). Writing custom prose raises the native permission prompt: it becomes every future session's system prompt. Both go through settings-edit. A No is the operator's answer: never retry or route around it.
Show the current value first: settings-edit ... get voice. If it is unset, say so plainly and add what is actually persisted (/hermit-doctor's voice-carrier line reports that, across every scope) — a style the operator picked in /config themselves is theirs, and this command would take the key over.
Ask: "How should I talk to you? (Default / Concise / describe it in your own words)". Describe Concise as it behaves — leads with the result, skips narration, keeps error and security detail in full.
Default / Concise →
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json apply-known voice <default|Concise>
default is lowercase; the /config picker displays "Default" but persists the lowercase literal. Neither writes a file. If a hermit-voice.md exists it stays on disk, inert — switching back is one command.
Their own words → write the prose first, then the style (the reverse order is refused — custom without prose is invalid):
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json set voice.prose '"<their words>"'
bun ${CLAUDE_PLUGIN_ROOT}/scripts/settings-edit.ts .hermit/config.json apply-known voice custom
Use their wording verbatim, or with only mechanical wrapping into instructions-to-yourself form. Keep it about tone, not work context (that's OPERATOR.md), and keep it short — it costs tokens on every API call. When editing an existing custom voice, show the current voice.prose and edit that text, not the rendered file.
Anything else they name (Explanatory, Learning, a style of their own): the hermit doesn't render those. Say so and point at /config, which sets outputStyle directly — the hermit will report it and leave it alone.
Then render it, terminal turns only:
bun ${CLAUDE_PLUGIN_ROOT}/scripts/apply-settings.ts .claude/settings.local.json voice-render
Local scope by design, whatever the hatch target: it is the scope /config writes and outranks committed settings, and the voice file is gitignored. The op refuses any other target. On a channel-tagged turn don't run it — say the change applies at the next restart, the same as an env change. Either way the config write already landed.
Tell the operator it takes effect in the next session — the system prompt is built at session start.
Clearing the voice (apply-known voice none) stops the hermit managing the key; it does not undo the last render. Say so: the current style stays until they pick another one here or in /config.
The voice file is a render of config.json, so a hand-edit is overwritten at the next boot. If they want to edit prose directly, that is voice.prose.
If argument is "channels":
Show current channel configuration from config.json → channels object. The channels.primary key (if set) is a magic pointer to the preferred outbound channel, not a channel itself — display it on its own line above the channel list:
Channels:
Primary: discord (or "none — falls back to first eligible channel in config order")
discord enabled allowed_users: [123456789] briefing chat: 987654321 morning_brief: 07:00 state_dir: /abs/path/...
(or "No channels configured")
"briefing chat" is default_chat_id, where unattended sends go; say "not paired yet" when the pin is empty.
Ask what to do next, offering: add discord / add telegram / remove / edit / primary / primary clear / done (default done).
Offer add <name> only for a channel absent from channels.
Loop until operator says "done":
add : If the channel is already configured, point to edit <name> and write nothing. Otherwise prompt for allowed_users (paste user ID or skip) and state_dir (relative or absolute path, defaults to .claude.local/channels/<name>), then use settings-edit set channels.<name> '{"enabled":true}', including allowed_users only when given and state_dir only when the operator supplied a non-default path. Do not include learned chat IDs or restate default paths. Channel enrollment raises Claude Code's native permission prompt. Note: "Configure the channel token next: Docker → /hermitd:docker-setup; tmux or interactive → /hermitd:channel-setup. Type it in a terminal or the Claude app."
remove : unset channels.<name>. If channels.primary === <name>, run unset channels.primary first (a dangling pointer fails validation and the write would be refused) and tell the operator: "Also cleared channels.primary (was pointing at the removed channel)."
edit : Sub-menu: "What to change? (allowed_users / briefing_chat / morning_brief / enabled / recall / operators / members / instructions / format / record / group / done)"
set channels.<name>.allowed_users '["id",...]' (clear ⇒ unset channels.<name>.allowed_users). Channel enrollment raises the native permission prompt.channels.<name>.default_chat_id — the destination for unattended sends (briefings, notices, weekly review) and, on a channel with neither operators nor allowed_users, the chat trusted for control commands and full status. Seeded once at first pairing and never moved by an inbound message, so it takes an explicit change here. This write raises the native permission prompt. Ask: "Paste the chat/channel ID that should receive briefings (current: <value>)." ID discovery is the same as for a group chat — Discord: Developer Mode → right-click the chat → Copy Channel ID; Telegram: forward a message from it to @userinfobot (group IDs are negative integers). Write it as set channels.<name>.default_chat_id '"<value>"' — the value must stay a string, and set JSON-parses its argument, so an unquoted chat ID lands as a number and the write is refused; clear it with set channels.<name>.default_chat_id none. Reject a value equal to that channel's maintainer_channel_id yourself before writing (outbound-only chat — see docs/security.md § tiered disclosure): that collision only warns, so the write would go through.set channels.<name>.morning_brief '{"enabled":true,"time":"<HH:MM>"}'; no ⇒ set channels.<name>.morning_brief none.toggle channels.<name>.enabled.unset channels.<name>.isolate_chats; no: set channels.<name>.isolate_chats false. "Chat IDs to share with every chat on every channel, or none?" IDs: set channels.<name>.shared_chats '["id",...]'; none: unset channels.<name>.shared_chats. Reject an id equal to that channel's maintainer_channel_id yourself before writing (outbound-only chat — see docs/security.md § tiered disclosure): that collision only warns, so the write would go through and every chat could then recall maintainer-tier messages. Channel enrollment raises the native permission prompt.set channels.<name>.operators '["id",...]'; clear: unset channels.<name>.operators. Channel enrollment raises the native permission prompt.set channels.<name>.members_only true; no: unset channels.<name>.members_only. This protected setting raises the native permission prompt.settings-edit … get channels.<name>.instructions. Add or replace with set channels.<name>.instructions.<n> '{"chat_id":"<id>","text":"<text>"}' (append at index = length); when the key is absent, create it with set channels.<name>.instructions '[{"chat_id":"<id>","text":"<text>"}]'. Remove with unset channels.<name>.instructions.<n>. Each chat ID must be unique and nonempty; text must be nonempty and at most 2,000 characters, with line breaks written as \n inside the JSON. Escape ' in text as '\'' so the approval label shows the whole value. Every write raises the native permission prompt. These instructions take precedence over memory roles in that chat and apply live.set channels.<name>.format <value>; clear with unset channels.<name>.format to infer built-in Discord or Telegram formatting. This protected setting raises the native permission prompt.set channels.<name>.log_chats true; no: set channels.<name>.log_chats false; inherit: unset channels.<name>.log_chats./hermitd:channel-access. For a new chat, run the group questionnaire with the selected channel key, absolute Hermit state directory, and channel-reply delivery on a channel-tagged turn (native prompts otherwise). Relay its result. Pair or enrol from a normal terminal session if bypass mode refuses the change. Never route a refusal through another writer.primary : Validate <name> exists as a key in channels (and is not primary itself). If valid, set channels.primary <name>. If invalid, reject: "No channel named <name> configured. Add it first with add <name>."
primary clear: unset channels.primary. Outbound sends will fall back to the default discord → telegram → imessage order.
Note: "Channel changes take effect on next hermitd-start run (type /hermitd:hermit-restart in a terminal or the Claude app). channels.primary and default_chat_id are consulted live by scripts/resolve-outbound-channel.ts on every proactive send — no restart needed for those keys."
If argument is "brief":
/hermitd:hermit-settings channels."channels.<name>.morning_briefset channels.<selected-channel>.morning_brief '{"enabled":true,"time":"<HH:MM>"}'; no ⇒ set channels.<selected-channel>.morning_brief none.If argument is "heartbeat":
stale_threshold)Heartbeat sub-fields (press Enter to keep current value):
interval — how often to check (e.g. 5m, 15m, 30m) [current]
active — active hours window (e.g. 08:00-23:00) [current]
stale — alert if no session progress for (e.g. 2h, 30m) [current]
Then ask each field in sequence.heartbeat.model: opus / sonnet / haiku, or none for the session model; heartbeat.effort: low / medium / high / xhigh / max, or none for the subagent's own effort) and heartbeat.clean_recheck_cooldown (a duration, or none to re-check every tick) are shown with the current config and changed only when the operator asks for them.settings-edit ... set heartbeat.<field> <value> (heartbeat.enabled, heartbeat.every, heartbeat.active_hours.start, heartbeat.active_hours.end, heartbeat.stale_threshold, heartbeat.model, heartbeat.effort, heartbeat.clean_recheck_cooldown). Per-field dotted sets preserve the untouched sibling (waiting_timeout).start time from heartbeat.every, so a config-only change otherwise leaves the running monitor on the old cadence (and /hermit-doctor would flag the mismatch). Surface the result inline:
/hermitd:heartbeat start (idempotent — stops the old monitor and re-registers at the new interval). Success: "Heartbeat monitor restarted at new interval (<every>). Active immediately."/hermitd:heartbeat stop. Success: "Heartbeat monitor stopped."/hermitd:heartbeat <start|stop> failed: . Run it manually to apply."If argument is "watchdog":
config.json:
Watchdog (config.json watchdog)
scheduler_enabled true
enabled false
stale_factor 2
wedge_floor 4h
escalate_after 3
operator_grace 15m
Context hygiene compact (config.json context_hygiene.compact)
enabled true
min_context_tokens 100000
min_interval 4h
scheduler_enabled, absent = yes), then whether watchdog restarts should be enabled (yes / no, default the current enabled).Watchdog sub-fields (press Enter to keep current value):
stale_factor — missed-cycle tolerance multiplier (e.g. 2); effective
threshold is max(stale_factor × heartbeat.every, wedge_floor) [current]
wedge_floor — lower bound on that threshold, whatever the poll interval
(e.g. 4h; lower it for faster detection, 0s = no floor) [current]
escalate_after — consecutive stale cycles before escalation (e.g. 3) [current]
operator_grace — silence window before alert fires (e.g. 15m, 1h) [current]
Then ask each field in sequence.settings-edit ... set watchdog.<field> <value> (watchdog.scheduler_enabled, watchdog.enabled, watchdog.stale_factor, watchdog.wedge_floor, watchdog.escalate_after, watchdog.operator_grace). Per-field dotted sets preserve any untouched siblings. set JSON-parses its argument, so a bare 0 for wedge_floor would be written as a number and read back as the 4h default — pass 0s to disable the floor.
scheduler_enabled (default true) is the OS-timer policy a tmux always-on boot reads: every hermitd-start registers the timer unless it is false. Setting it false by hand only stops future boots from re-registering — to remove a timer that is already installed run hermitd watchdog uninstall, which deletes the unit and sets both scheduler_enabled and enabled false. hermitd watchdog install re-registers it, and a first registration also sets enabled: true; a later re-install leaves enabled as you set it. Docker hermits run the watchdog from the entrypoint loop — no install step needed, and scheduler_enabled does not apply there."context_hygiene.compact — runs independently of the "Enable watchdog?" answer above): ask "Enable routine-hygiene compaction? (yes / no) [current: ]". If yes, show the sub-fields:
Context hygiene compact sub-fields (press Enter to keep current value):
min_context_tokens — routine-hygiene /compact when estimated compactible conversation exceeds this (e.g. 100000) [current]
min_interval — minimum time between compacts, avoids summary-of-summary loss (e.g. 4h) [current]
Then ask each field in sequence. Write each changed field through settings-edit ... set context_hygiene.compact.<field> <value> (context_hygiene.compact.enabled, context_hygiene.compact.min_context_tokens, context_hygiene.compact.min_interval). No restart/reconcile step needed — the watchdog reads config.json fresh on every scheduler tick.If argument is "routines":
config.routines array:
Routines (config.json routines → routine monitor; CronCreate fallback if the routine monitor misses its first tick):
# ID Schedule Skill Status Gate
1. morning 30 8 * * * hermitd:brief --morning enabled —
2. evening 30 22 * * * hermitd:brief --evening enabled —
3. reflect 0 9 * * * hermitd:reflect enabled reflect
4. weekly-deps 0 9 * * 1 hermitd:task list disabled tools/deps-gate.sh
(or "No routines configured" if empty)
Gate = the routine's `precheck`, run by the routine monitor before it wakes the session;
`—` means the routine always wakes it. Adding or changing one raises the native permission prompt.
chat (<sourceKey>:<chat_id>) is the chat that owns it. On a channel turn, list only
the routines whose chat is the asking chat, keeping their table numbers; edit, remove, enable and disable accept only a
number from that listing, and the settings gate asks for any write to a routine the asking chat does not own. The terminal, the maintainer chat and a technical-profile operator's home chat see every
routine, with each one's chat (or home) shown beside its status.routines.<index>, 0-based, so table number − 1. Never write the
whole routines array: the settings gate reads the value of a container write, and a value it cannot parse
($(cat …), a heredoc, a shell variable) raises the native permission prompt even when nothing is gated.
Entry JSON goes inline, single-quoted, in the command itself.get routines and re-show the
table after every add and every remove, and derive the next index from that fresh listing — a stale index
is an in-range write that silently replaces or edits the wrong routine, with nothing to refuse it.30 8 * * *0 9 * * 1-50 23 * * 0*/15 * * * *0 10 1,15 * *hermitd:brief for plugin skills, ha-refresh-context for local project skills)
hermitd:role-review./hermitd:proposal-create, using its For a new skill path with Evidence Source: operator-request for triage and Source: operator-request for creation, plus Evidence Origin: external-content when the sender is not a primary operator (channel-responder §1c). Do not create the skill or routine in this wizard."chat": "<sourceKey>:<chat_id>" for the asking chat. Reply-tool skills can reach it; script notices need
a direct sender or send_script. Non-primary routine writes raise the native permission prompt.
For a primary sender, binding a new routine here keeps the existing checks; any other chat value raises
the native permission prompt.set routines.<count> '<entry as JSON>', where <count> is the number of routines in the
latest listing (the first free index). A duplicate id is only a warning, so check the id against the
listed ones before writing; an invalid cron is refused by the script — relay its error rather than
retrying.set routines.<index>.<field> <value> (one call per changed field; siblings are preserved).unset routines.<index> — one call, and the remaining entries close the gap.set routines.<index>.enabled true|false./hermitd:hermit-routines load via the Skill tool to apply the new schedule live (no restart). Surface the result inline:
/hermitd:hermit-routines load failed: . Run /hermitd:hermit-routines load manually to apply."If argument is "env":
env values from config.json in a table:
Environment Variables (config.json env → resident launch overlay)
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE 65
MAX_THINKING_TOKENS 10000
CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES 1
Hook profile (process-scoped, not written to settings.local.json)
AGENT_HOOK_PROFILE (unset → strict on an always-on launch)
AGENT_HOOK_PROFILE. If the operator tries to set one, respond: "The hook profile is resolved at boot: unset means strict for an always-on launch and standard for an interactive one, and an ambient value in the launch environment outranks config. To pin it, edit config.json env directly; the boot script validates it and floors an always-on launch at standard on the next start."<KEY> <VALUE>, remove <KEY>, or done; default done).remove <KEY>: unset env.<KEY><KEY> <VALUE>: set env.<KEY> '"<VALUE>"' — env values must stay strings, and set JSON-parses its argument, so a bare 20000 would land as a number and reach the launch overlay as one.hermitd-start. Type /hermitd:hermit-restart in a terminal or the Claude app to apply them."If argument is "remote-environments":
remote_environments.<name> remove, use unset remote_environments.<name>./remote-env lists each environment's env_… ID.env_… ID as given or from the environment value of a https://claude.ai/code?environment=env_… link, and set remote_environments.<name> <env_id> with the ID alone; set rejects an invalid name or ID.If argument is "docker":
Show current docker.packages list:
Docker Packages (config.json docker.packages → Dockerfile.hermit)
build-essential
ffmpeg
(or "No packages configured" if empty)
Ask whether to add or remove packages. Validate added names against ^[a-z0-9][a-z0-9+\-.]+$, deduplicate, and preserve the rest of the list. Apply the complete array with settings-edit set docker.packages '<JSON array>'; complete the protected-path native permission request. Removing a package drops only that name.
Tell the operator: "Rebuild on the host with hermitd restart --build (from stopped, hermitd start --build). The wrapper renders from the current package list before building."
Then show current docker.recommended_plugins:
Recommended Plugins (config.json docker.recommended_plugins)
[enabled] context7 (claude-plugins-official) — auto-installed on boot
[enabled] hermitd-homeassistant (hermitd-homeassistant) — auto-installed on boot
(or "No recommended plugins configured" if empty)
Display each entry as [enabled/disabled] <plugin> (<marketplace>) — show the org/repo (the marketplace field) in parens.
Ask: "Enable, disable, add, or remove recommended plugins? (e.g., 'enable context7', 'add context7', 'add superpowers obra/superpowers-marketplace', 'remove superpowers', or 'done') [done]"
Loop until operator says "done", "skip", or presses Enter:
enable <PLUGIN>: set docker.recommended_plugins.<index>.enabled truedisable <PLUGIN>: set docker.recommended_plugins.<index>.enabled falseremove <PLUGIN>: read the list, drop that entry, set docker.recommended_plugins '<remaining array>'add <PLUGIN> [<MARKETPLACE>]: append an entry with scope: "project", enabled: true and write the whole list back with set docker.recommended_plugins '<array>'. <MARKETPLACE> is an org/repo (e.g. obra/superpowers-marketplace) or omitted (defaults to anthropics/claude-plugins-official). The marketplace need not be registered locally: the container entrypoint adds it on first boot. Dedupe rule: refuse the add if an existing entry has the same (plugin, marketplace) pair (scope is NOT part of the key) — operator should enable or remove first.enable if it exists, add if it doesn'tAfter changes, note: "Restart container to install new plugins: hermitd restart"
If argument is "browser-chrome-args":
browser.chrome_args list (or "No extra Chrome flags" if empty). These flags are appended to every launch of the agent's browser, after its own; WebGL is the separate browser-software-webgl setting.--, with its value after = (--lang=pt-PT). Apply the complete array with settings-edit set browser.chrome_args '<JSON array>'; it takes effect at the next start of the agent's browser.browser_arg_refused:<flag> (the list is in ${CLAUDE_PLUGIN_ROOT}/docs/config-reference.md under browser); tell the operator which flag to remove.If argument is "browser-options":
browser.options (agent-browser config keys, or "No agent-browser options") and browser.unsafe (or "No unsafe opt-ins").settings-edit set browser.options '<JSON object>' or settings-edit set browser.unsafe '<JSON array>'. The key lists, the tokens browser.unsafe accepts, and what each opt-in gives up are in ${CLAUDE_PLUGIN_ROOT}/docs/config-reference.md under browser; name that cost to the operator before adding a token.browser_option_refused:<key>; tell the operator which entry to change.If argument is "scheduled-checks":
state/reflection-state.json for last run dates. If missing, show "(no runs yet)".scheduled_checks entries with trigger: "session", under "Session checks", showing ID, plugin, last run, and enabled status. If empty, show "No session checks configured".enable <id> / disable <id>: for a session entry, set scheduled_checks.<index>.enabled true|false. Use its original config-array index, not the filtered display index.add <id> <plugin> <skill> session: append a session-triggered entry with enabled: true, then set scheduled_checks '<whole array>'. Deduplicate by id across the whole array.remove <id>: remove the session entry and set scheduled_checks '<remaining array>', then remove its state from state/reflection-state.json.routines. Point the operator to /hermitd:hermit-settings routines.If argument is "quality-gate":
Interactive (terminal) turn: Ask the operator via AskUserQuestion to pick a tier. Show the current value in brackets if quality_gate.tier is set.
Prompt: "Quality-gate tier for accepted-proposal auto-implementations. Controls whether /simplify (cleanup pass) runs at step (e.5) of the shared apply procedure."
Options:
/simplify never runs. Cheapest. No post-implementation cleanup./simplify, SKIP doesn't. Costs one /simplify run when the decision is RUN./simplify runs on every implementation, no judgment. One /simplify run per implementation.Run settings-edit ... set quality_gate.tier <chosen> (creates the quality_gate object if missing; a legacy enabled sibling is preserved untouched — skill behavior reads tier only).
Channel-tagged turn: send the same prompt via the channel reply tool with the three tiers numbered (Budget/Balanced/Quality, same descriptions as above), AND queue a pending task input decision per channel-responder/questions.md, using purpose input and admin authority: options: ["budget", "balanced", "quality"], authority: admin, decision.resume: "/hermitd:hermit-settings quality-gate --answer {answer}". If invoked as quality-gate --answer <tier> (channel-responder resolving that entry), skip the ask and run settings-edit ... set quality_gate.tier <tier> directly, then confirm via channel.
Note: if you commit autonomous-implementation diffs through a skill that already runs /simplify before committing, consider Budget — any non-Budget tier here would run the cleanup pass twice per committed implementation.
If argument is "history":
Run settings-edit ... history [dotted.path] [--limit N] (the operator may name a setting: "history heartbeat"). Relay the rows in the operator's language, naming who made each change — settings-edit is an operator edit, hermit-evolve a change an upgrade made, evolve-finalize an upgrade's version stamp alone, channel-hook a channel the hermit learned, hermitd-start/hermitd-stop a boot flip, heartbeat-edit a checklist edit made from chat (hash and line count, never the text). In a channel reply, drop the dotted paths and script names for plain language ("the heartbeat interval went from 2h to 30m on the 18th"). An empty ledger means nothing has changed since the audit trail started, not that the setting is unset.
If argument is "artifact-authorization":
This records a decision only — it never runs apply-settings.ts and never touches a settings file from this session. A channel reply may only flip hermit config, never permissions (auto-mode classifier invariant); the actual grant is applied by hermitd-start's boot-time applyArtifactGrant, outside any session.
Ask: "This hermit publishes status/proposal/weekly-review pages via Claude Code's Artifact tool. Unattended sessions can't answer a permission prompt, so authorize publishes now, or bank the first publish of each enabled page yourself instead?
settings-edit ... set artifacts.publish_authorized true. Reply: "Recorded: artifact publish authorized. The grant (permissions.allow Artifact) is applied automatically at next boot — hermitd stop then hermitd-start to apply now. No settings files were modified from this session."
On answer "Bank first publishes" (or "off"/"no"/"decline"): run settings-edit ... set artifacts.publish_authorized false. Reply: "Recorded: publishing declined. The standing permission is removed at the next boot from every settings file this install wrote it to, not from this session. An undecided (null) flag leaves an existing entry alone. First publish of each enabled page must happen in an attended session (docs/artifacts.md § refresh procedure); refreshes then reuse the same URL without prompting."
Channel-tagged turn: send the same prompt via the channel reply tool with the two options numbered, AND queue a pending task input decision per channel-responder/questions.md, using purpose input and admin authority: options: ["authorize", "bank first publishes"], authority: admin, decision.resume: "/hermitd:hermit-settings artifact-authorization --answer {answer}". Note in the message that "Bank first publishes" still needs a terminal session later to do the banking itself — only the decision travels over the channel.
Channel re-entry: if invoked as artifact-authorization --answer "<label>" (channel-responder resolving a task input decision opened by hermit-evolve's Step 10 deferred-migration relay), skip the Ask above and match <label> case-insensitively by prefix against Authorize / Bank first publishes, then run the matching settings-edit command and reply exactly as above. This branch is deliberately channel-reachable — the flag is a decision record, not a permission — so it does not raise the native prompt the rest of artifacts.* policy sits behind.Every branch persists through settings-edit verbs — apply-known for the registry table, set/unset/toggle everywhere else (arrays and objects are expressible: the value is JSON-parsed). Nothing in this skill edits config.json with the Edit/Write tools: the script preserves siblings, refuses a change that would leave the config invalid, and records every mutation in the audit ledger. If a verb refuses a write, relay its error to the operator instead of falling back to a direct edit.
Confirm the change to the operator.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gtapps/hermitd --plugin hermitd41 skills in this plugin
/briefReturns a 5-line executive summary of recent work. Checks open records first, then recent task outcomes. Activates on messages like "brief", "what happened", "morning update", "overnight summary", "progress", "what are you working on", "how's it going"./browserDrives the agent's own browser, or the operator's Chrome for their accounts. Use before giving steps that send someone to a web console to create or change something on an account (an API key, a bot, an app registration), even when the person will do them by hand or no browser is available. Also use when WebSearch fails, or when WebFetch cannot read a page: it is refused (such as 402 or 403), stays rate-limited after a retry, times out, or returns an empty page, a JavaScript-only shell, or a block notice in place of the content asked for. Use it before answering from other sites or searches, above all when the person named or linked the page, even if the browser may be off. Also use when a page needs clicks, forms, scrolling or sign-in; or when a screenshot or exact rendered text is needed. Public read-only lookups start with WebSearch or WebFetch./capability-brainstormMonthly routine plus on-demand hermit-voice brainstorm — synthesizes memory, capabilities, recent artifacts, and codebase shape into at most 2 capability ideas, each gated by proposal-triage before becoming a proposal task. Runs on the capability-brainstorm routine and when the operator asks to brainstorm capabilities or ideate, e.g. "brainstorm capabilities", "any capability ideas?"./channel-accessManage chat access. Let someone talk in a chat, remove them, see who can talk here, open a chat to everyone, turn a chat off, or remove someone who is no longer an approver./channel-responderHandles inbound messages tagged <channel source=...> from Claude Code Channels, routing replies, task work, approvals, and operator controls with session context./channel-setupGuided channel activation for local/tmux users; adds a channel entry when none is configured, installs the plugin, configures the bot token in the project-local state dir, and walks through pairing. Run after hatch, or any time to add or re-enable a channel.Other plugins' skills for the same job