Continuation enforcement for beads task management in OpenCode.
An OpenCode plugin that monitors for in-progress beads and injects continuation prompts to prevent premature stopping.
When using the beads task management system (bd CLI), this plugin:
- Monitors for
session.idleevents - Checks if there are beads with
in_progressstatus viabd list --status=in_progress - Shows a countdown toast notification
- Injects a continuation prompt reminding the agent to complete the current bead
This is similar to Oh-My-OpenCode's todo-continuation-enforcer, but for beads instead of the built-in todo system.
bdCLI (beads) must be installed and available in PATH- Project must be initialized with
bd init
Add to your OpenCode config (~/.config/opencode/config.json):
{
"plugins": ["opencode-beads-enforcer"]
}Or for project-level installation, add to .opencode/config.json:
{
"plugins": ["opencode-beads-enforcer"]
}No configuration required. The plugin automatically:
- Skips injection if beads is not initialized in the project
- Respects error cooldowns (3 seconds)
- Cancels countdowns when the assistant is actively working
- Extracts epic context from git branch names (pattern:
bd-XXXXXX)
mise run build- Build the pluginmise run test- Run testsmise run lint- Lint codemise run lint:fix- Fix linting issuesmise run format- Format code with Prettier
MIT License. See the LICENSE file for details.