heartbeat
Proactive check-in with pre-gathered context. Run automatically via launchd every 30 minutes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Proactive check-in with pre-gathered context. Run automatically via launchd every 30 minutes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | heartbeat |
| description | Proactive check-in with pre-gathered context. Run automatically via launchd every 30 minutes. |
| disable-model-invocation | true |
| allowed-tools | Bash Read Write |
Proactive heartbeat — gather context first, then reason:
Gather context (deterministic, no reasoning yet):
bash .claude/scripts/gather-context.sh
Read the output and assess:
Act based on what you find:
bash ./bin/start-agent.sh to restart (the watchdog also does this, but belt-and-suspenders)Only notify if something is actionable. Silent heartbeats are good. Don't be noisy.
getUpdates API via curl — this competes with the bun long-poller and breaks message deliverygetWebhookInfo (read-only, no side effects)pgrep -f "bun.*server\.ts" (process alive?)lsof -i -P | grep bun (network connections?).claude/runtime/watchdog.log, .claude/runtime/incidents/*.log, and the latest .claude/runtime/agent-session-*.log before restarting anythingRun the morning standup. Use when {{OWNER_NAME}} says "good morning", "standup", or "what's on my plate".
Compress and save the key context from this session to the daily log. Run before ending a long session.
Search through all past daily logs, cold memory files, and conversation history. Use when {{OWNER_NAME}} asks "when did we...", "do you remember...", "what did I say about...", or needs context from a past session.
Bootstrap an UnClaw agent from scratch. Converts a stock Claude Code instance into a persistent personal agent with identity, memory, and scheduling.
Distill this session's key learnings into long-term memory. Use after completing significant work or when user says "update memory" or "save this session".
Extract key learnings from daily logs and promote them to identity/memory.md. Run automatically via launchd once per day, or manually after a productive day.