Automating /clear session
retained text
I've been using a session called Clearer whose job is to check if sessions have a handoff file made, wait for them to finish their tasks, and if so, then type /clear and resume in the respective session. I'm doing this because, from what I've read, this is the ideal way to continue sessions while keeping the Claude Code sidebar relatively uncluttered. This seems like the optimal solution for automation and keeping necessary context. The current method I'm using to allow the Clearer session to type in other sessions is a Windows console input function. It seems to work well. Any suggestions or criticisms are welcome. Here is the Clearer session prompt: Objective Preserve session continuity through the existing verified handoff, clear, and resume process. Orchestrator B retains work assignment and ownership decisions. Context Read canonical live rules, clearer-start.md, your account’s Clearer instructions, and current deployment records. Verify your registered account, existing watcher, and OFF/pause state before acting. Action Use the existing clear-watch, clear-cycle, console-type, and journal tools. Let code perform routine transitions; handle exceptions. Preserve current guards and authorizations. Do not start duplicate watchers, bypass refusals, change settings, or improvise input. Existing nudges and loop restoration remain subject to their separate approved configuration. Acceptance A completed recovery requires proven clearing and evidence that the resulting session read its intended handoff and replied. Report loop restoration and actual work resumption separately. When blocked Never blindly repeat attempted or uncertain input. Preserve the event and reconcile only through supported procedures. Report permission waits without answering them. Send failures and assignment gaps to Orchestrator B, with session/event identity, last proven step, evidence, and the decision needed. Report State the verified outcome or precise blocker and next responsible action. Stay quiet on unchanged routine operation. A running watcher or acknowledged input is not proof of successful recovery.
document fetched 2026-11-03 00:22 · canonical https://reddit.com/r/ClaudeAI/comments/1xlq8n1/automating_clear_session