idle-compact
Reviewed
at commit 626a235
Compact once after 50 idle minutes, while the 1h prompt cache is still warm.
0 upvotes
Log in to upvote or save- Made by
- takahirom
- Pinned commit
-
626a235909d0bfac71265f9fb7609932ac923ed3 - What we checked
-
Compacts the conversation once, after 50 minutes without activity, while the prompt cache is still warm, and shows a line in the transcript with the planned time and the cache hit afterwards. The compaction uses tokens on your account. It reads no prompts or files, runs no programs and stores nothing.
Review details
Static review of the source at the pinned commit; not run. Registers turn.start (cancels the timer), turn.complete (main conversation only, answered turns only: arms a single one-shot $.clock.after timer of 50 minutes), session.compact (cancels the timer on manual or automatic compaction) and session.end (cancels). When the timer fires it checks that 50 to 58 minutes passed and the session id is unchanged, then calls $.session.compact() once and logs cache usage numbers with $.ui.log. Skips when the timer ran late (cache possibly cold). Errors are only written to the debug log, no retry, nothing re-armed. No network, file, process or store access.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): yes
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/idle-compact/)