# Daemon

Background process — runs scheduled tasks, listens for hook events, pushes live updates

Status
Offline
run: mink daemon start
Uptime
—
Heartbeat
—
paused
Hook wiring
—
.claude/settings.json

### Controls

Auto-restart on failure
max 5 attempts, backoff 30s
Boot on system login
launchd / systemd user service
Verbose logging
log level: debug

### Hook integration

.claude/settings.json

Event | Command | Purpose | Status
--- | --- | --- | ---
SessionStart | mink session-start | Create fresh session state | —
Stop | mink session-stop | Finalize session, calculate savings | —
PreToolUse (Read) | mink pre-read | Check file index, warn on repeats | —
PostToolUse (Read) | mink post-read | Track read, estimate tokens | —
PreToolUse (Write) | mink pre-write | Enforce learned rules, surface bugs | —
PostToolUse (Write) | mink post-write | Log write, update file index | —