◆ Claudius
Status

compact-adviser

Plugin

Claude Code plugin that detects when work appears complete and advises running /compact to reduce token usage.

by kunchenguid·kunchenguid/compact-adviser·TypeScript·compact-adviser-v0.1.12
83· B
Install
/plugin marketplace add kunchenguid/compact-adviser
Stars
195
7d change
▲ 4.28%
Downloads / week
—
Last active
1 day ago
About

compact-adviser is an agent plugin that answers a single question: should I /compact now?

It uses Jev to instantly judge whether the current session is likely at a boundary that's safe to compact.

It can give you a hint to run `/compact` - or, on Pi and Claude Code, if you opt in, it can run it for you at the right time automatically. Codex CLI and Grok are hint-only: nothing outside their sessions can trigger `/compact`.

Judgment is two one-sentence Jev questions in one request (is the unit finished; is this hands-on work or coordination), composed in code into one score. The hint floor is 0.90 while the context is mostly empty (through about 10%) and relaxes toward 0.50 by about 90% full - a wrong hint costs most when there is still room. "Full" means the point where the host compacts: on Claude Code that is its auto-compact threshold when enabled, elsewhere the model's window. If you would rather compact we…

Read more on GitHub →
30-day stars
Trust factors
Source
community
Known advisories
0
Maintenance
active
License
MIT
Age
0 months
token-efficiencyproductivity#compaction#token-saving#notifications#claude-code#claude-code-plugin#pi#pi-extension#typesafe