start
Installation
SKILL.md
autoloop: Start
Scaffold LOOP_CONTRACT.md and start a self-revising /loop that reads the contract each firing.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Arguments
- Positional (optional): contract file path. Defaults to
./LOOP_CONTRACT.md.
Step 1: Ensure hooks are installed
Install BOTH autoloop hooks into ~/.claude/settings.json if not already present. Idempotent.
- PostToolUse →
heartbeat-tick.sh— ticks heartbeat on every tool invocation, detects cwd drift. - SessionStart →
session-bind.sh— authoritatively bindsowner_session_idfrom stdin payload (replaces broken$CLAUDE_SESSION_IDenv-var capture; ref anthropics/claude-code#47018). - PreToolUse(ScheduleWakeup) →
pacing-veto.sh— denies pacing-disguised wakers (delays in the 300–1199s cache-miss zone, or any >270s with token-budget/cache-warm/self-pacing/cooldown/rest in the reason text). Forces Tier 0 (in-turn) when no real external blocker exists.