One handoff file lets 24/7 Claude Code agents resume seamlessly after restarts
Any-Bobcat2370 · reddit · 2026-08-31
The author runs 8 Claude Code sessions in tmux restarted nightly by cron, but each restart wiped agent memory. His fix, persistent-handoff, packages a skill plus a SessionStart hook around a single handoff file per agent.
- Agents rewrite the file at milestones, drop resolved items, delete it when idle
- The hook re-injects the file at every start (including /clear and /compact), costing 400-600 tokens
- The file records where the agent is, next action, open questions, and traps; rules live in CLAUDE.md, durable facts in memory
- Some agents update the file and restart their own tmux session when context gets heavy, with the new session picking up mid-task
Unlike existing handoff skills that keep history, this maintains one always-current file. Known limit: stale files go unnoticed. Install via claude plugin marketplace add adrrr/persistent-handoff. Cross-platform CI, no tmux dependency.
More from coding & agent
- Dev shares a dirt-cheap approach to visual diffs — zeeg · 2026-09-01
- Grok Bot automates Shopify updates and supplier coordination — billyjhowell · 2026-09-01
- Investor calls GrokBot the next ChatGPT moment: 3 minutes beats hours of work — 新智元 · 2026-09-01
- Grok Bot automates lost deal analysis by mining call and email threads — lennysan · 2026-09-01
- Design pattern: immutable agent artifact revisions behind a stable review URL — RocketSeven · 2026-09-01
- Building a long-term memory benchmark for agents: what to add? — True_Mongoose_7073 · 2026-09-01