New:Socket for Asana Is Now Available.Learn more
Get Started

@vaur94/opencode2-goal

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaur94/opencode2-goal

Evidence-checked autonomous Goal loop for OpenCode V2.

npmnpm
Version
0.2.0
Version published
Weekly downloads
22
-37.14%
Maintainers
1
Weekly downloads
 
Created
Source

opencode2-goal

Persistent autonomous Goal loop for OpenCode V2.

Behavior

  • /goal <objective> sets or replaces the current session goal and starts its continuation loop.
  • /goal status shows it.
  • /goal pause, /goal resume, and /goal clear manage the loop.
  • An explicit user Stop/interrupt pauses the active goal; shutdown and superseded executions keep it active for recovery.
  • Active goals are injected as system context on every model turn.
  • After every successful or failed execution boundary, a synthetic continuation wakes the agent again.
  • The agent may mark a goal completed only after auditing its objective and constraints against concrete files, commands, tests, logs, benchmarks, or artifacts.
  • Completion evidence is stored with the completed goal; confidence, narration, todo status, or partial progress alone are insufficient.
  • Active loops restart when the plugin reloads or the service restarts.
  • There are no round limits, token budgets, or time budgets; completion is an evidence-audited model decision.
  • The loop continues until evidence supports completion or the user pauses, clears, or interrupts it.

The /goal command is model-mediated by OpenCode V2. Lifecycle mutations are implemented by one non-CodeMode goal_manage tool. User-controlled lifecycle actions remain user-controlled; the agent receives only the additional authority to call complete with an evidence ledger. Continuations are durable synthetic session inputs; they retain the selected agent, model, permissions, and safety rules. State is stored per session under ${XDG_STATE_HOME:-~/.local/state}/opencode2-goal/sessions.

Development

bun install
bun run check

Local loading

Add the built bundle as its own entry in opencode.json:

{
  "plugins": [
    "/home/ugur/Projects/opencode2-goal/dist/plugin.js"
  ]
}

The plugin owns /goal and the exposed goal_manage tool.

FAQs

Package last updated on 16 Aug 2026

Related posts