opencode-subagent-completion-hook
v0.2.0
Published
Subagent completion plugin for OpenCode which allows to execute arbitrary command on completion
Maintainers
Readme
opencode-subagent-completion-hook
An OpenCode plugin that runs an arbitrary shell command whenever a subagent completes.
Installation
Add the plugin to your opencode.jsonc:
{
"plugin": [
"opencode-subagent-completion-hook"
]
}Usage
Add an on_complete option to an agent's frontmatter:
---
name: my-agent
options:
on_complete: my-post-process-script
---When the agent finishes, the plugin pipes the agent's output to the command via stdin and replaces the output with the command's stdout.
License
MIT
