COMMUNITY OBSERVEDMetric claims: UNVERIFIEDSOURCE AUDITED🤖 Jev Agent⚡ Jev Skills

Compact Adviser

Uses Jev to recommend whether the current agent session is safe to compact.

Compact Adviser preview from the original source

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.

— Kun Chen

How Jev fits in the loop

  1. Gather current session state and context fullness.
  2. Ask Jev two one-sentence questions about work completion and work mode.
  3. Combine the answers in code with a fullness-dependent threshold.
  4. Show a hint, or on supported hosts run an opt-in /compact after first-use confirmation.

How to reproduce

  1. Follow the repository setup for Pi, Claude Code, Codex CLI, or Grok Build.
  2. Set a local TypeSafe API key and inspect the /compact hint on a disposable session.
  3. 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.

Patterns