recyclelisted
Install: claude install-skill 0xAddict/threadwork
# recycle — Evacuate-then-Rehydrate Context Recycle
## Purpose
Recycle a threadwork agent's session context safely. The agent's running
session is preserved as a durable handoff memory, `/clear` is injected into
the target pane, and the SessionStart hook rehydrates the fresh session from
the memory on next boot.
Targets one of: `boss`, `steve`, `sadie`, `kiera`, `snoopy`.
The hard problem this skill solves: a naive `/clear` silently nukes whatever
the agent had in flight — unsubmitted user intent, in-flight Agent
sub-agents, the thread of an ongoing user conversation. This skill exists to
preserve real intent before clearing.
## When to fire
- **60% auto-trigger.** `~/.claude/hooks/context-budget-watch.sh` (PreToolUse)
estimates context-token usage from the session transcript jsonl. At 60% of
`CLAUDE_CONTEXT_BUDGET_TOKENS` (default 1,000,000), it `tmux send-keys -l`
an `AUTO-RECYCLE NUDGE` block into the persistent `claude-snoopy` session.
Snoopy then runs this SOP. Self-loop guarded — never recycles snoopy
about snoopy.
- **Manual request.** User asks an agent to recycle itself or another agent.
- **Proactive.** End of a logical work block, before the next round, when
drift is starting to feel like it's compounding.
- **Post-compaction safety.** Per deep-research finding #638(c): if an
auto-compaction has already happened in this session, a manual recycle
here is safer than relying on a second compaction. Compaction is itself a
drift step.
## Inputs