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
- Robot-dev agents: frontier models work in sim, robots run fast policies — scott_e_reed · 2026-12-02
- RightNow Mini open-sourced: 729 tok/s on one GPU and 92/100 SWE-bench, zero weight changes — victormustar · 2026-12-02
- What Blocked Our MCP Server in ChatGPT and Claude Directory Reviews — kLOsk · 2026-12-02
- evilsocket: software built to be operated by AI agents is the next big thing — evilsocket · 2026-12-02
- One prompt, full autonomous run: agent finds a trend, makes song and video in 2h41m — tetsuoai · 2026-12-02
- YouTube explainer breaks down how MCP actually works — S20091981 · 2026-12-02