opencode-exit-plan
v0.1.4
Published
OpenCode plugin that exits plan mode when you approve implementation.
Maintainers
Readme
opencode-exit-plan
OpenCode plugin that switches from the plan agent to another primary agent when you approve implementation with a phrase like go ahead, let's implement, make the changes, or ship it. Default approval phrases include English, Spanish, Simplified Chinese, Portuguese, French, German, Japanese, Korean, Russian, and Hindi variants.
Install
Add the package to your OpenCode config:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-exit-plan"]
}OpenCode installs npm plugins automatically at startup.
Configure
The default target agent is build.
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
[
"opencode-exit-plan",
{
"agent": "build",
"phrases": ["go ahead", "ship it", "approved"]
}
]
]
}Local Development
This package includes .opencode/plugins/exit-plan.ts, so OpenCode auto-loads the local source when you run it from the package directory.
From the monorepo root:
npm install
npm run typecheck -w opencode-exit-plan
npm run build -w opencode-exit-plan
npm run smoke -w opencode-exit-planRestart OpenCode after changing plugin files or config.
License
MIT
