resident-start
Orient a resident after boot or resume, reconcile recovery and report readiness without choosing work.
- License 许可
- MIT
- 所属仓库
- gtapps/hermitd
- 最近更新
- 2026-11-13
- Stars
- ★ 84
- Forks
- 16
01 前言 Front Matter
- name
- resident-start
- description
- Orient a resident after boot or resume, reconcile recovery and report readiness without choosing work.
03 SKILL.md 正文
Resident Start
Inputs and goal
Use the startup hook context, .hermit/config.json, state/runtime.json, state/execution.json, and open task records to establish resident readiness. OPERATOR.md and TASKS.md are injected by SessionStart; use their policy and read them only when absent from context. Startup does not select a task or ask what to work on next.
Workflow
- Upgrade classification. When the hook emits
---Upgrade Available---withREQUIRED:, run/hermitd:hermit-evolve unattendedbefore continuing. An advisory upgrade is a notification only. If it emits---Stale Plugin Runtime---, relay the stale-install notice and do not run evolve: evolve cannot replace the plugin copy loaded by this process. - Boot classification. Freshly read runtime and execution state. A missing runtime is a first boot. A resumed process is still a new boot for process-scoped watches. Observe execution without writing its state: hook observations own
execution.json, andunknownis not evidence that work finished. If the lifecycle lock is held, report that the boot operation is still in progress and stop this readiness flow. - Record inventory and recovery. Run
bun ${CLAUDE_PLUGIN_ROOT}/scripts/task.ts list .hermit --open. Use the returned execution observation and each open record's result or waiting state. Forlast_errorofunclean_shutdownordead_process, report the interruption and the open records, includingwatchdog_restart_reasonwhen present. Preserve records and pending results; an interrupted process neither completes nor cancels a commitment. Report readiness with the recovery facts, without an archive-or-resume question. After reporting, clear only the acknowledgedlast_errorandwatchdog_restart_reason. Iforphaned_processis recorded, alert the operator that the prior process may still exist and needs verification before treating the resident as ready; do not start duplicate work. - Duty and worker recovery. Run
/hermitd:watch startunconditionally. List the open task threads withbun ${CLAUDE_PLUGIN_ROOT}/scripts/task.ts list .hermit --open --owner 'worker:*' --jsonand report them: the next reply in each thread goes to the worker id the record names, and only a failed send starts a fresh worker. Load/hermitd:hermit-routines loadand start/hermitd:heartbeat startwhen enabled and not already running. - Readiness report. Use the configured identity and language, and notify per CLAUDE.md Operator Notification policy. Give one brief report of readiness, interrupted or waiting records, and duty availability. Recovery notification is the boot notification, so do not send a second ping. In always-on mode never ask for a task. Leave task selection to an operator assignment, a routine or the queued-record workflow.
Result
A ready resident with reconciled duties and an accurate open-record inventory. This skill does not open, close, cancel or select a task. There is no task argument path. Task mutations and lessons belong to task.ts and /hermitd:task.
04 同仓库更多 Skills
dream
Nightly memory maintenance from transcript ground truth. Verifies, enriches and tidies auto-memory and topic pages with snapshot validation and undo. Also handles 'undo the dream'.
when-done-switch-to
Arm a deferred model or effort switch. Use for "when done switch to", "after this drop to sonnet", or "switch model when idle".
weekly-review
Generate the weekly review report for the current ISO week. Writes to .hermit/compiled/review-weekly-YYYY-Www.md (dev-facing detail) and sends a plain-language channel summary (Delivered / Decisions / Waiting on you / Spend). Runs every Sunday at 23:00 via routine.
watch
Background events via the config watch monitor or ad-hoc Monitor tool. Quiet watches cost zero tokens.
watch-activate
Activate the config watch monitor.
voice-notes
Transcribe and respond to voice notes. Activates when any channel message carries an audio attachment, or when asked to transcribe an inbound voice message.