OpenCode plugin: archive full session before compaction and inject archive reference for grepai search
npm install opencode-archive-before-compactionOpenCode plugin that archives the full session transcript immediately before compaction, then injects a reference to the archive folder into the compaction context so agents can search it later (e.g., via grepai).
.opencode/archive/sessions// .md (human readable) and .json (exact)grepaiopencode.json:```json
{
"plugin": ["opencode-archive-before-compaction"]
}