Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@sorenllm/opencode-forge

Latest version: v0.33.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: sorenllm
0 Stars
0 Forks
56 Versions
6.3K Downloads
JavaScript Repo language

Scan summary

@sorenllm/opencode-forge was last scanned on 23 Nov 2026 at version 0.33.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 56 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 0.33.0.
  • Downloads: 6,344 downloads.

Versions

56 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.33.0 LATEST 23 Nov 2026 No rules fired
0.32.3 22 Nov 2026 No rules fired
0.32.2 22 Nov 2026 No rules fired
0.32.1 22 Nov 2026 Not shown
0.32.0 22 Nov 2026 Not shown

No rules fired in 0.33.0

Findings

Findings for v0.33.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.33.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

opencode-forge

Single general-purpose forge agent + two orthogonal harnesses for opencode ≥ 1.18: a plan harness (decide first, execute later) and a goal harness (arm an objective, let the loop drive itself to a host-verified finish). They share nothing but a safety interop; OpenSpec spec workflows remain a third, separate lane.

/plan fix login timeout   → read-only recon → plan_write (draft, writes denied)
                           → present, end turn → USER REVIEW (revise / discard / go-ahead)
                           → plan_approve (user dialog = final gate) on explicit go-ahead
                           → execute task by task, plan_tick on each (timestamped audit)
                           → all ticked → per-criterion self-check → plan_close
                             (plugin re-runs the FROZEN checks, fail-closed, no dialog) → done
/plan                     → list in-progress plans with progress
/plan resume              → continue the most recent unfinished plan
/plan discard             → abandon the current plan (abandoned, writes restored)
/goal make the suite green --check "npm test" --contains "src/a.ts::export const A"
                          → goal_write (arm=true; the user dialog IS the arm action)
                          → loop: work → goal_check (advisory) → idle → continuation brief
                          → goal_complete re-runs EVERY check itself on the host
                            (fail-closed) + per-criterion attestations → user dialog
                            = completion gate → completed
/goal add ...             → queue an inert goal (no dialog, no loop)
/goal                     → live goal + queue overview
/goal pause | resume | discard/stop/cancel
  • Plan files: .opencode/plan/<date>-<slug>.md in your project, frontmatter state machine draft → approved → done, exits abandoned (plain discard) and superseded (plan_discard {reason, supersede: "<successor path>"} — the exit for work whose execution moves to another harness, e.g. .opencode/crew/2026-10-01-....md, rather than ends). Every terminal transition appends a dated narrative section to the file body in the same write as the status flip: close = each acceptance criterion's pass/evidence; discard/supersede = the reason verbatim ((none given) when absent; a supersession also records the successor path). Appended sections are parser-inert — status reads frontmatter only, tick counts read the Task List only — and a superseded plan's Task List stays the frozen decision snapshot: closure IS the supersession, and crew/goal results never tick it.
  • While a plan is in draft, write / edit / bash are denied at the permission layer — including your own allow config, and for every agent in that session (the draft protects shared session state; see Agent partition below) — and task is shape-gated: dispatch to an effective-readonly forge scout passes, every other target is denied (see Design stance). The only exits are approval and discard. This is deliberate; see Design stance.
  • plan_approve is pinned to a confirmation dialog: the model can never flip itself into execution. plan_close has no dialog — the completion gate is plugin-verified: plans that declare Verification Checks (plan_write {checks: [...]}, goal-harness-shaped) get the frozen set re-executed on the host at close, fail-closed (a failing check refuses the close, records the run in the plan's ## Check Log, and the plan stays approved); plans without declared checks keep the per-criterion self-check gate. Both paths append an evidence summary the user reviews asynchronously; plan_reopen (done → approved, explicit user instruction only) is the rollback window.
  • Confirmation gates are time-boxed (gated-ask watchdog): every confirmation gate (plan_approve / goal_write arm / goal_complete / goal_resume / goal_discard / crew_close) is wrapped by a watchdog — when no answer arrives within the window (default 300 s, FORGE_GATE_ASK_WATCHDOG_MS, 0 disables), the gate resolves as a DISCLOSED REJECTION: the awaiting tool call fails with a finding that names the gate, the timeout, the fail-closed posture (state unchanged, nothing approved — the invariant survives verbatim) and the retry contract (re-run when the dialog is actually visible; a late click on the stale dialog cannot approve the refused call). The plugin NEVER auto-approves. This exists because of a real incident: a TUI wedge where the dialog never rendered and goal_write hung forever.
  • Goal files: .opencode/goal/<date>-<slug>.md, state machine queued → active ⇄ paused → completed / abandoned, one live goal per session plus a workspace queue. Completion is verified by the plugin, not attested by the model: goal_complete re-executes every check itself and refuses (fail-closed) on any failure.
  • The native build / plan agents stay installed and independent: forge coexists with them in the Tab cycle. The plugin hard-partitions the two worlds (see Agent partition below) instead of hiding anything; plan and goal files are never deleted on uninstall.

Agent partition (who sees what)

The plugin draws a hard line between two agent families, enforced at the tool layer (verified against the host's tools filter):

forge family — forge + your forge.json forge-* workers everyone else — native build / plan / general / explore and your own agents
exec surface forge_shell / forge_jobs only; builtin shell/bash hidden (unconditional, probe-independent; covers user-defined agent.forge entries too) builtin shell/bash, fully native
forge tools (plan_*, goal_*, crew_*, forge_shell, forge_jobs, forge_grep, forge_glob) forge sees all; forge-* workers only forge_shell + forge_jobs + the search pair (forge_grep/forge_glob) none visible
dispatching forge-* via task allowed refused at the tool layer
writing .opencode/plan/ / .opencode/goal/ allowed (state machine governs) refused at the tool layer (reads stay open)
forge system prompts (job guidance, plan/goal notices) injected never injected — zero forge text
watchdog (stuck builtin shell) governed untouched — no markers, no kills

Escape hatches: jobs.keepBuiltinShell: true gives the forge family the builtin shell back; jobs.mode: "native" retires forge_shell/forge_jobs entirely (the hide is withdrawn in the same stroke). The forge family is prompted to route every shell command through forge_shell — on hosts that ignore injected tools maps the builtin tool stays visible but is refused at call time, and the channel mandate is what keeps the model from trying it first (the belt refusal remains the backstop). On such unfiltered hosts the fallback belt family is a three-part enumeration of hard refusals at the tool layer: a forge-family builtin shell/bash call is refused with a pointer to forge_shell; a non-forge agent's call of any forge tool is refused with the partition guidance; and a forge-* worker (any family member whose agent name is not exactly forge) calling a harness state tool (plan_*, goal_*, crew_begin, crew_close) is refused as primary-only. That refusal fires before any execution or user confirmation dialog, so a worker's state-tool call never reaches a gate, and the error names the way out: report findings back to the orchestrating session — the primary forge agent alone calls the state tools. Mixed sessions (Tab between agents in one session): harness state (plans/goals) stays session-bound, tool surfaces follow the current speaker, and the goal loop parks instead of driving a non-forge turn. One deliberate exception: a draft-phase write ban binds the session (protecting shared state), so a non-forge agent is write-blocked until the draft is approved or discarded in forge. Running /plan /goal /crew under a non-forge agent redirects to forge instead of executing.

Default subject. The host otherwise defaults new sessions to build once a build agent exists — the plugin pins default_agent: "forge" automatically (a default_agent you set yourself always wins), so bare runs and fresh sessions still land on forge under coexistence.

Install

Requires opencode ≥ 1.18 (v1 hosts) or ≥ 2.0 (v2 hosts). Same install commands on both — the plugin ships both entries and the host picks one.

# npm (recommended)
opencode plugin @sorenllm/opencode-forge --global
# or GitHub source
opencode plugin github:ChengZiiii/opencode-forge --global

Local development: add "file:///<repo abs path>" to the plugin array in your opencode config. Single-file install: copy dist/index.js to ~/.config/opencode/plugin/forge.js — it is fully self-contained (the plan discipline rides inside the /plan command template; there is no separate skill file).

Note: do not enable opencode's experimental plan mode (OPENCODE_EXPERIMENTAL_PLAN_MODE) together with forge — two plan mechanisms would overlap.

Upgrading (verified installer behavior)

opencode plugin add APPENDS — it never replaces an existing entry for the same plugin id, so a bare opencode plugin @sorenllm/opencode-forge --global over an existing install fails with Duplicate plugin ID: forge. The verified upgrade path:

  1. Remove the old entry first (uninstall step 1 below: edit the plugin array in ~/.config/opencode/opencode.json).
  2. Install the new source: opencode plugin @sorenllm/opencode-forge --global.
  3. Smoke-check (opencode agent list shows forge + forge-* workers), then clean the stale store dir (uninstall step 2) if you switched sources.

Also verified on the 2.x installer: remove only removes the config entry of its own registered source; the npm: prefix is not accepted by add (use the bare package name); and the store path is derived from the specifier spelling, so switching between npm and github sources leaves both store dirs behind — delete the stale one.

v2-host notes (opencode 2.x)

Full feature parity with v1 (agents, tools, permission belt and gates, session hooks, commands, goal/job engines), with two documented drifts:

  • Model pins are v1-only. A forge.json worker's model field is honored on v1 hosts; on v2 hosts the pin is skipped (any model spelling on the v2 agent draft breaks the host's agent registry). The thoughtLevel pin works on both (it rides the runtime chat.params lookup, not the agent record).
  • /plan /goal /crew are execute-based commands on v2 (the template text is sent into your session when you invoke them) and there is no create-only guard — forge's /goal replaces the built-in one. v2 hosts have no default per-turn auto-continue, so nothing fights the goal loop; the plan/goal briefs survive compaction via the compaction hook either way.
v2 single-agent surface (hide natives, forge default, no builtin shell)

On a v2 host the plugin additionally delivers the single-agent surface as pure runtime agent-layer state:

  • The native build and plan primaries are hidden (never removed — sessions referencing them keep working; no other field is touched), so the agent picker offers forge as the visible primary. general, explore, and host-internal agents stay untouched.
  • New sessions default to forge where the host's agent draft editor exposes a default setter (2.3.2 does). An explicit default_agent in your opencode config still wins — the host merges user config agent entries after plugin transforms.
  • Every forge-family record (the forge primary and each materialized forge-* worker) carries a deny permission ({action:"shell", resource:"*", effect:"deny"}), so the model-facing tool surface never offers the builtin shell to the forge family. The permission-belt refusals remain underneath as belt-in-depth.

Zero pollution: none of this is written to your opencode config or any file outside the plugin's own domain — uninstall the plugin and the next agent-layer rebuild restores the native primaries and the default subject, byte-identical, with zero residue.

Opt-out (keep the native build/plan primaries visible) — the plugin's own config file, the GLOBAL forge.json layer (~/.config/opencode/forge.json on POSIX, %USERPROFILE%\.config\opencode\forge.json on Windows):

{
  "hideNativeAgents": false
}

agent.forge.disable = true remains the whole-plugin off switch. A user's explicit agent.build.hidden: false in opencode config also wins on 2.3.2 (config merge runs after plugin transforms).

v1-host config recipe (hide the extra primaries manually)

The v1 loader cannot touch native agent records (the config hook returns its own entries only). If you want the same single-agent picker on a v1 host, hide the natives yourself — your config, your files:

{
  "agent": {
    "build": { "hidden": true },
    "plan": { "hidden": true }
  },
  "default_agent": "forge"
}

hidden is a first-class, hot-reloadable field on opencode 2.3.x — the picker updates without a restart. Remove the lines to restore the natives.

Configuration

Everything works with zero config. Optional knobs (your config, your files — the plugin never writes them):

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @sorenllm/opencode-forge

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229