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
This issue might be a duplicate of existing issues. Please check:
Hooks support? #1473: Hooks support? - discusses adding hooks for automation, specifically wanting hooks after task completion for CI/CD workflows
[feat] lifecycle hooks #573: [feat] lifecycle hooks - proposes comprehensive lifecycle hooks including PreToolUse, PostToolUse, and other events similar to Claude Code's hook system
Hooks #1219: Hooks - detailed discussion about bringing Claude Code's hook functionality to opencode, with specific examples of hook types and use cases
[feat] custom slash commands #299: [feat] custom slash commands - requests ability to create custom commands as markdown files, which overlaps with your request for plugins to define commands
Fwiw. I think an interop plugin that supports the exact same Claude code hooks would go a long way in bringing folks to opencode. Many folks write automations/agents for Claude and this would give them an opportunity to leverage those within opencode. Interop/compatibility is the bridge to migration.
Reacted by Luke Ramsden, williamjvest, Agustin Rivera, Mark Van de Vyver, Bracken Spencer and Jensen
Activity
github-actions commentedon Aug 22, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
[-]Hooks for commands[/-][+]Hooks for commands (Plugin Commands)[/+]thdxr commentedon Aug 22, 2025
yep will look into this btw plugins can now hook the
configfunction and override it. so you can insert your own custom commandscavanaug commentedon Sep 13, 2025
Fwiw. I think an interop plugin that supports the exact same Claude code hooks would go a long way in bringing folks to opencode. Many folks write automations/agents for Claude and this would give them an opportunity to leverage those within opencode. Interop/compatibility is the bridge to migration.
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!