prevalentWare/opencode-goal-plugin
OpenCode goal plugin for Codex-style goal mode, /goal slash commands, persistent objectives, and AI coding agent focus.
What it solves
This plugin transforms OpenCode from a single-prompt assistant into a goal-oriented agent. It allows developers to define a persistent objective that the AI works toward across multiple turns, ensuring the agent remains focused on long-running tasks like refactoring or complex migrations without losing context.
How it works
It introduces a /goal command and a set of agent tools to manage a persistent state machine. The plugin tracks the objective, completion evidence, and blockers. It supports "auto-continuation," where the agent continues working on the goal during idle periods, subject to configurable safety budgets (token limits, turn counts, and elapsed time). The plugin enforces safety boundaries, such as preventing goal execution while in "Plan mode," and ensures that goals are only marked complete when the agent provides verifiable evidence.
Who it’s for
Developers who use OpenCode and need a more autonomous, stateful coding assistant that can handle multi-step tasks without requiring constant manual prompting.
Highlights
- Persistent Goal State: Keeps track of objectives, history, and checkpoints even across session compactions.
- Evidence-Based Completion: Requires the agent to provide concrete evidence or blockers before a goal can be closed.
- Safety Guardrails: Includes configurable budgets for tokens, turns, and time, plus specific restrictions to prevent agents from escaping "Plan mode" into autonomous execution.
- Cross-Platform Integration: Works across TUI, desktop, and web interfaces with a sidebar indicator for real-time status tracking.
Related
- Project
- Project
- Project
- Project
- Project