MEDIA PREVIEW

Overview & result
Compact Adviser asks Jev two short questions in one request: whether the current unit of work is finished and whether the session is hands-on work or coordination. Code combines those judgments with context fullness to show a /compact hint; supported hosts can opt into automatic compaction.
From the original post
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.
How Jev fits in the loop
- Gather current session state and context fullness.
- Ask Jev two one-sentence questions about work completion and work mode.
- Combine the answers in code with a fullness-dependent threshold.
- Show a hint, or on supported hosts run an opt-in /compact after first-use confirmation.
How to reproduce
- Follow the repository setup for Pi, Claude Code, Codex CLI, or Grok Build.
- Set a local TypeSafe API key and inspect the /compact hint on a disposable session.
- Test the boundary on completed and incomplete units of work before enabling automatic compaction.
Why this build matters
Illustrates Jev as a bounded compaction adviser while application policy retains the authority to compact.
Limitations
- Codex CLI and Grok Build are hint-only; Pi and Claude Code support opt-in automatic compaction.
- A Jev judgment is a recommendation, not a guarantee that all future context remains recoverable.