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
[FEATURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities. #21075
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
The current OpenCode plugin system lacks many useful hook events that would allow plugins to intercept and customize agent behavior at key points. This makes it difficult to build powerful plugins that can:
Feature request titles must start with [FEATURE]: — please rename to: [FEATURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
This request appears to bundle several hooks that have already been individually requested. Please review the above issues and consider whether this should be closed in favor of the existing ones (or link to them).
If you believe this was flagged incorrectly, please let a maintainer know.
changed the title [-]Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/-][+][Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/+]on Apr 5, 2026
changed the title [-][Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/-][+][FEAUTURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/+]on Apr 5, 2026
changed the title [-][FEAUTURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/-][+][FEATURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/+]on Apr 5, 2026
Thanks for updating the issue! The title now correctly starts with [FEATURE]: and the issue meets our contributing guidelines. We appreciate the detailed proposal.
This is partially addressed by #23650 — a minimal session.turn.completed event (+9 lines, 2 files). It enables post-turn plugins like ScarletWitch, a filesystem sandbox that shows a COW review dialog after each turn. Happy to adjust based on feedback.
Activity
github-actions commentedon Apr 5, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:— please rename to:[FEATURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilitiesPlease edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
preToolUse/postToolUse/stophookssession.start/session.endpreCompact/postCompactstopagent eventpermission.requestThis request appears to bundle several hooks that have already been individually requested. Please review the above issues and consider whether this should be closed in favor of the existing ones (or link to them).
If you believe this was flagged incorrectly, please let a maintainer know.
[-]Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/-][+][Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/+][-][Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/-][+][FEAUTURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/+][-][FEAUTURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/-][+][FEATURE]: Add expanded hook events to the plugin system to enable more powerful plugin capabilities.[/+]github-actions commentedon Apr 5, 2026
Thanks for updating the issue! The title now correctly starts with
[FEATURE]:and the issue meets our contributing guidelines. We appreciate the detailed proposal.xbjpku commentedon Apr 22, 2026
This is partially addressed by #23650 — a minimal
session.turn.completedevent (+9 lines, 2 files). It enables post-turn plugins like ScarletWitch, a filesystem sandbox that shows a COW review dialog after each turn. Happy to adjust based on feedback.github-actions commentedon Jul 6, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.