Jev in production › Agent context and memory
OpenCode plugin asks Jev narrow Noul, Choice and Score questions to decide keep, drop or truncate content during session checkpoint compaction.
The plugin targets the current OpenCode plugin API rather than a pinned preview runtime. It uses the public experimental.session.compacting hook, fetches the current session transcript through the OpenCode client, asks Jev one set of narrow structured questions about tool evidence, and optionally appends compact guidance to OpenCode's native compaction prompt.
The plugin does not rewrite historical messages. This preserves the historical request prefix that provider prompt caching may reuse.
For the project's own README, linking back here: