Skip to content

Compact Adviser

An agent plugin for Pi, Claude Code, Codex CLI and Grok Build that asks Jev two classification questions to decide whether a session sits at a safe compaction boundary, then hints or compacts for you.

Stars
210
Language
TypeScript
License
MIT
Published by
Community
Author
kunchenguid
Last verified
Oct 2026

About this project

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.

Quoted from the project's README. Read the full README.

Highlights

  • Two one-sentence Jev questions per checkpoint, is the unit finished and is this hands-on work, composed in code into a single score.
  • The threshold starts near 0.90 on an almost empty context and relaxes toward 0.50 as the host's own compaction point approaches.
  • Automatic compaction exists on Pi and Claude Code only; Codex and Grok are hint-only because nothing outside their sessions can trigger the command.
  • Requests are capped at 32,000 serialized bytes and an error is never treated as an affirmative judgment, so a failure stays silent rather than lying.

Watch out

Installing is stated as consent to send eligible checkpoint context to TypeSafe once a key is available, and redaction of known key patterns is described as best-effort with no guarantee, which is not enough for material that must not leave the machine. Codex support is macOS and Linux only with hooks running through POSIX sh, hints are suppressed below a constant 40,000-token minimum, and the adviser stays inert in non-interactive sessions. Grok needs manual hook and status-line setup because it never loads a plugin's own hooks file. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

1.5kGitHub stars
Open-source platform that puts ACP-compatible agents such as Claude Code, Codex, and Pi inside the team's Slack, Telegram, Discord, and GitHub workflows, with reusable Jev decisions for routing, response gating, and reviewer selection.
Jev Agents & MCP#community#jevbest
488GitHub stars
A coding agent built on pi that hands its non-code decisions — what enters the context, whether a command is safe, whether the work is done — to a small judge model at 35 decision points per turn.
Jev Agents & MCP#community#jevbest
572GitHub stars
A CLI plus agent hooks that ask Jev one question per rule in your AGENTS.md on every edit or turn and return a probability, so a violating edit gets repaired inside the same turn. Claude Code, Codex, OpenCode, Pi.
Jev Agents & MCP#community#jevbest
147GitHub stars
A local-first desktop agent for macOS that carries work from a conversation through to a reviewable result, split into Home, Cowork and Crew. The part worth a developer's attention is Crew, where Jev suggests an assignee for a single unassigned task and you accept or ignore it.
Jev Agents & MCP#community#jevbest
116GitHub stars
Stanley is a CLI where you describe a code-review request in plain language and Jev routes it to one of ten bounded workflows. Each workflow is deterministic code that gathers bounded evidence and asks Jev fixed-choice questions per hunk; unmatched requests go to the Pi agent.
Jev Agents & MCP#community#jevbest
48GitHub stars
Agent harness for work that outlives one chat, with resumable turns, routed state machines, and observational memory across sessions and processes.
Jev Agents & MCP#community#jevbest#catalog-import
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai