# run /clear with a script? — retained record

> Retained reddit record from reddit:ClaudeCode.

Canonical: https://highsignal.app/data/records/e529237b9e884d70

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeCode)  published 2026-11-18 02:05 ingested 2026-11-19 02:39

[original source ↗](https://www.reddit.com/r/ClaudeCode/comments/1xz35tj/run_clear_with_a_script/)

## retained text



```
I have a setup with multiple sessions acting as agents and being token-conscious. They often suggest to clear their context and prompt them to check their handoff notes. Can I script this somehow? I don’t want to spin up processes I can’t interact with. I want a script that runs /clear and prompts the session. Seems straightforward enough, right?
```



document fetched 2026-11-19 00:42 · canonical https://reddit.com/r/ClaudeCode/comments/1xz35tj/run_clear_with_a_script
