You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode: reimplemented Claude Code hooks/plugin as OpenCode plugin + skill + commands #236
Updated skills/agentmemory-setup/SKILL.md to instruct the agent to call memory_smart_search and memory_lessons_recall at session start, with example queries.
3. Commands
Created .opencode/commands/recall.md and remember.md — wrap memory_smart_search and memory_save MCP tools with usage guidance.
Gaps (not yet implemented)
Claude feature
Reason
PreToolUse (file enrichment)
OpenCode tool.execute.before doesn't have stdout→context pipe; also disabled by default (#143)
SubagentStart/Stop
OpenCode Task tool lifecycle not exposable via plugin events
Notification / TaskCompleted
Claude-specific events with no OpenCode equivalent
Claude Memory Bridge (MEMORY.md sync)
OpenCode uses AGENTS.md; could be implemented as a skill
/forget and /session-history commands
Lower priority; can add later
PreCompact implementation detail
OpenCode's experimental.session.compacting hook has output.context: string[] — this maps directly to Claude's PreCompact stdout injection. The plugin calls GET /agentmemory/context and pushes the result into output.context.
Activity
rohitg00 commentedon May 8, 2026
Thanks @cl0ckt0wer — comprehensive writeup, the per-hook mapping table is exactly the kind of compatibility audit we need for every new agent surface.
This is being implemented in:
experimental.chat.system.transform, consolidation pipeline onsession.deleted, the clco→oco port sweep)I've asked over there to consolidate the two PRs into one (they touch the same files), but either way this issue gets fully addressed.
Re your "Gaps (not yet implemented)" table — those are tracked separately:
tool.execute.beforelacking a stdout→context pipe is a real upstream limitation. We'll keep the hook in the plugin but it'll be a no-op until OpenCode ships an equivalent. Filed as a follow-up consideration once feat: OpenCode plugin with 22 auto-capture hooks (closes #236, #244) #237 / fix(plugin): add session instruction injection and consolidation pipeline (closes #233) #239 land./forgetand/session-history: low-priority slash commands; bundle into the next plugin update.Holding open until #237 + #239 land. Once they do, will close as fixed-by-#237/#239 with full credit to your audit work here.
feat: OpenCode plugin with 22 auto-capture hooks (closes rohitg00#236, …
feat: OpenCode plugin with 22 auto-capture hooks (closes rohitg00#236, …