ballast
Reviewed
at commit 867b81f
KOZMOS Ballast: a context coach. A toast when the context window passes warnAt, then a band with an anchor and a water-level gauge at actAt: "⚓ ctx 89% —…
0 upvotes
Log in to upvote or save- Made by
- KOZMOS
- Pinned commit
-
867b81f5651059bb0c22563c8b175475787c84ae - What we checked
-
Watches how full the context window is, shows a toast at 75% and a band with 'Compact now' and 'Not now' buttons at 88% (both configurable), and shows a before-and-after toast for every compaction. Compacting happens only when you press the button or run /ballast now, unless you switch on the off-by-default auto-compact option. Compaction uses your own Claude account.
Review details
Static review of the source at the pinned commit; not run. Registers /ballast (toggle, 'now', 'status') and hooks session.start, session.measure, turn.start, turn.complete, session.compact (observes the result and toasts before and after tokens) and ui.render for AbovePrompt (SVG band on desktop, text gauge on terminal). Runtime calls: $.session.usage (context percent and token counts only), $.session.compact (on button press, /ballast now, queued to the end of a running turn, or automatically when autoCompact is true, at most once per 60 s), $.ui.toast, $.store.get and $.store.set for a hidden flag, $.clock, plugin atoms. Reads no prompts, files, tool calls or environment; no network or processes. Failure of a compaction is caught and reported or queued. hooks/lib/probe.ts is not imported and was not reviewed beyond its header; kz.ts and text.ts were read in full. npm dependencies: none.
- 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: yes
- Shows something on screen: yes
- Hooked events
KOZMOS Ballast: a context coach. A toast when the context window passes warnAt, then a band with an anchor and a water-level gauge at actAt: "⚓ ctx 89% — compact before the next big task" with Compact now (queued to the end of a running turn) and Not now. Optional auto-compaction between turns, and a before→after toast for every compaction. /ballast toggles the band.
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/ballast/)