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
- Fintech HR built a sourcing agent on 60,000 past applicants — 30 qualified candidates in a month — G0NZ0BOY · 2026-10-16
- Orchestrating a 100-image portrait of humanity for aliens with ChatGPT, Argon and p5.brush — dx8xb · 2026-10-16
- 3x DGX Spark cluster runs GLM-5.3-Flash locally behind a proxy, 1.75M tokens/day at 119W — Teknium · 2026-10-16
- Builder's one rule for trusted desktop agents: read freely, but sending, deleting, buying always ask first — No_Fan5310 · 2026-10-16
- GPT-built unifi-simulator makes MikroTik switches appear inside UniFi Network — Pytlicek · 2026-10-16
- Stanford drops 45-min SpaceX lecture on how Grok Bot's always-on agent harness works — Hesamation · 2026-10-16