idle-compact-warning

by ohnotnow · ★ 0 · updated 15 Oct 2026

Bandsvalidates

0

Warns you before Claude Code's idle compaction, with a band above the prompt, a terminal notification and an optional notify URL, so you can come back while the full context is still there.

install idle-compact-warning

Install

/plugin marketplace add ohnotnow/idle-compact-warning
/plugin install idle-compact-warning@idle-compact-warning

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startturn.startturn.completeui.render
API calls
$.clock.after$.clock.now$.env.get$.fs.read$.fs.write$.http.fetch$.session.cwd$.session.id$.session.usage$.state.get$.state.set$.ui.notify$.ui.resolve$.ui.toast
Draws
AbovePrompt
Reach
level 3 of 3 networkwrites filesreads filesreads env varsreads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/ohnotnow/idle-compact-warning
Path in repo
repository root
Source commit
3450d9d the exact code the scan read
Author
@ohnotnow
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.