Claude Code-style autocompact for OpenCode V2 with a per-session threshold: /autocompact 500k compacts a session and its children once the live context reaches that many tokens.
Version 0.1.6, 1,061 weekly downloads, rank 72. Judged from its declared dependencies.
| @opencode-ai/plugin | - |
|---|---|
| @opencode/plugin | 2.0.24 |
[](https://rafal-one.github.io/opencode-v2-ready/p/hacky.software__opencode-autocompact.html)
It targets the V2 plugin API.