Repository navigation
feat(opencode): OpenCode plugin for context-guru - #483
Conversation
Signed-off-by: AIMikav <[email protected]>
Signed-off-by: AIMikav <[email protected]>
Signed-off-by: AIMikav <[email protected]> Assisted-By: OpenCode
Signed-off-by: AIMikav <[email protected]> Assisted-By: OpenCode
SummaryThe plugin starts the proxy and routes OpenAI correctly. Every Anthropic request fails with 404. The plugin also covers about 4 of the ~18 user commands that the Claude Code plugin has. Blocking
Should fix
Gaps against the Claude Code pluginThe Claude Code plugin (
Most important gap: no OpenCode plugins can add commands through the How it was tested
Non-blocking
|
|
Follow-up on blocking item 1: why Anthropic requests fail, although the proxy handles the traffic. The proxy handles a request only after the request arrives on one of its routes. The client builds the URL. The plugin sets the base of that URL. Test with the released proxyI ran
Why it happens
Fix
|
|
the main gaps in terms of plugin commands that |
- Use the Claude Code plugin names and numbers for cache strategies: none, auto (default), 1-ping, 2-ping, 1-hour-head. 5-min-ping is an alias for auto. Add the ultrahigh preset. - Add /context-guru-preset and /context-guru-strategy (v1 and v2). They save the choice, then restart the proxy after a yes. - Send x-context-guru-session only for providers the plugin routed. - Take one machine-wide lock around port choice and proxy start, so two OpenCode instances cannot race for a port or a pid file. - Replace a running proxy when the saved settings change. - Tests: strategy mapping, pickers, header scope, lock, restart. - Docs: commands, strategies, and a "Not ported yet" list. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]> (cherry picked from commit 12b8ca0)
Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
|
Thank you, Anamika. We added one commit and one merge of What we added:
The PR description has the full list, the test numbers and the open questions. 🤖 Generated with Claude Code |
scripts/offload-review.sh fetched the PR's head branch from origin. A PR from a fork has no branch there, so every round failed before a reviewer started (seen on #483). It now fetches refs/pull/<n>/head, and checks that the head gh reported is present. Behavior change: none. Dev tooling only. Data dependence: none. Reviews: 2 offload reviews (GLM), round 1, both approve at aa7401b. 8e3a3fa changes only comment lines (approval-still-valid.sh: COMMENTS ONLY). Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
- Add opencode-plugin/tui.js, a TUI plugin entry loaded from tui.json. It registers /context-guru-preset and /context-guru-strategy with api.keymap.registerLayer (api.command.register is the fallback). - Show a select list with the current choice marked, then one confirm dialog to save and one to restart the proxy. - Run the same "set NAME [--restart]" script as the chat commands, so the native and chat paths cannot differ. Chat stays the fallback for opencode run, web, desktop and a setup without tui.json. - Remove the ultrahigh tool-defer probe from the pickers. - Tests: fake api.ui for the native flow, cancel paths, fallback. - Docs: tui.json install step. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.319 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | 1f214ac0c6bd |
blocking |
Verdict: blocking
Findings
-
opencode-plugin/index.js:792 — the lock's 60 s stale age is shorter than the work it protects, so two instances can start two proxies for one project.
- What fails: a first run downloads the release while holding the lock.
downloadBinaryusesfetchwith no timeout (index.js:93, 104-107), so a slow or stalled download holds the lock for minutes. A second OpenCode window opened after 60 s sees the lock as stale (index.js:792), deletes it, and takes it. Both windows then runstartProxyfor the same project: the second starts its own proxy, and the first starts another one on the next port. Result: two proxies for one project, each pinging with the user's credential (double keep-alive spend), split dashboard and cache state, andproxy.pid/install.jsondescribing only the last writer. The proxy the records do not name is never stopped by uninstall or reset. - Proof:
startProxyholds the lock acrossdownloadBinary(index.js:848, 861).withLockremoves any lock older than 60 s (index.js:792) and a waiter only gives up at its own 45 s deadline, so an instance arriving after 60 s breaks a live lock instead of failing open. The narrow variant is worse: both instances can passfreePort(index.js:159-171) before either proxy binds, andwaitForHealthy(index.js:182-188) never checks that the spawned child is alive, so the loser records a foreign proxy as its own.cmd/context-guru-proxy/main.go:47-53documents this exact hazard: a sibling on the port answers/healthzwith 200 and "served ITS corpus". The README claim "Two OpenCode instances share one lock. They cannot pick the same port or write the same pid file" does not hold on this path. - Fix: download outside the lock, or write a heartbeat into the lock while holding it and treat age from the heartbeat. Also fail
startProxywhen its own child exits beforewaitForHealthysucceeds.
- What fails: a first run downloads the release while holding the lock.
-
opencode-plugin/index.js:965 — no test for the fail-open path when proxy startup fails with routes present.
- What fails: the repo's first rule is fail open: a component error reverts that component only. The v1 catch (index.js:965-967) and the v2 catch (index.js:1059-1061) leave the provider base URLs untouched when the proxy cannot start. No test drives that path. Every test either has no Anthropic/OpenAI provider, a disabled marker, or a working stub binary.
- Proof: I read all six test files.
plugin.test.mjscovers an unsupported provider and the disabled marker. No test gives a routed provider a binary that never becomes healthy, or a dead release server, and asserts the base URL stays unchanged. Themultiple <dialect> upstreamsthrow (index.js:762, 1034) is also untested. - Fix: add one test per generation:
CONTEXT_GURU_BINpoints at a script that exits at once, an Anthropic provider is configured, and the test asserts the base URL is unchanged afterconfig/setup.
Non-blocking
- index.js:793-795 — the
catch { continue }inwithLockskips the deadline check. AstatSyncerror that is not transient (permissions) spins the loop forever. Move the deadline check above thecontinue. - index.js:809 —
stopRecordedProxyreadsproxy.pidwith no existence check. A running proxy plus a missing pid file throws, and the whole config hook fails open for that glitch. Guard the read. - index.js:69-76 —
executableOnPathtests existence, not the executable bit. A non-executable file namedcontext-guru-proxyin a PATH directory wins over a good one further along, and startup fails. - index.js:978 —
chat.headerswritesString(undefined)when the host gives no session ID. Skip the header instead. - index.js:1045 — v2 checks
routedIds.lengthright afterawait ctx.provider.transform(...)returns. This assumes the host invokes the transform callback beforetransformresolves. If a real OpenCode 2 defers it, the session hooks are never registered and dead-proxy recovery is silently off. The mock intest/v2.test.mjscannot catch this. Worth one manual check against a real OpenCode 2 before release. - README.md:60 — the OpenCode install badge reuses the OpenAI logo, same as the Codex row. Cosmetic.
What I checked
- Read the full diff (12 files, 2,549 lines) and the code around each change:
opencode-plugin/index.js,tui.js, all six test files, both READMEs, the install doc,mkdocs.yml. - Checked strategy parity against
context-guru-plugin/scripts/settings.py(STRATEGIES,STRATEGY_ALIASES,DEFAULT_STRATEGY,ONE_HOUR_DEFAULTS): names, numbers, and the omitted_1hdefaults all match.keepalive_max_usd_per_ping: 0.5equals0.50. - Checked the proxy side the plugin drives:
--anthropic-upstream,--openai-upstream,--dashboard,--dashboard-db,--idle-exit 24hall exist incmd/context-guru-proxy/main.go;--idle-exitrefuses only--upstreams/--bob-upstream, not the per-dialect flags;x-context-guru-sessionis the header name the Go tests use. - Traced the fail-open paths: disabled marker, no routes, multiple upstreams, startup failure, logging failure, recovery failure. All revert to the original provider config, except the mid-session dead-proxy case, which the install doc discloses.
- Traced the picker scripts line by line (render, alias, save, restart) and the TUI dialog flow against
parsePickerOutput. - Verified BSD
grepsupports the\|alternation used in the generated scripts, so theinstall.envrewrite works on macOS as well as Linux. - Checked the shell pid-kill guards (
ps -o command=match before every kill) and the download checksum verification. - Did not run the node tests (live tests not approved). Did not verify the OpenCode 1/v2 host API shapes beyond the repo's own mocks; no OpenCode SDK or docs exist in this repo.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.319 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | 1f214ac0c6bd |
blocking |
Verdict: blocking
Findings
- opencode-plugin/index.js:493 — a picker
setbefore the first successful install saves a default for the OTHER setting, and that default then overrides the user's plugin options.- What fails: the user sets
{"preset": "high", "cacheStrategy": "none"}in the plugin options. No install exists yet (no Anthropic or OpenAI provider at startup, or the first download failed, soinstall.envwas never written). The user runs/context-guru-preset set medium. The generated script falls back tocur_strategy=${strategy:-auto}(index.js:494) becauseinstall.envis absent — it never consults the plugin options. Line 528 then writespreset=mediumandstrategy=autointosettings.env. At the next startupeffectiveSettings(index.js:833-839) lets the savedstrategy=autowin over the optionnone, so the proxy runs keep-alive pings that spend the user's credential, which the user explicitly turned off. The same shape downgrades an options preset tooffwhen the user switches strategy. Theshowpath has the same wrong fallback: it reportssaved=off/saved=autowhile the options say otherwise. - Proof: trace of index.js:491-494 (
cur_preset/cur_strategyfall back toDEFAULT_PRESET/DEFAULT_CACHE_STRATEGYwhen bothsettings.envandinstall.envare absent — the plugin options are not an input to the script), index.js:526-528 (setpersists BOTH keys, not just the one the user chose), index.js:836-837 (a saved value that validates wins over the option).writeInstallFacts(index.js:558-570) runs only after a healthy proxy (index.js:876), which is why the no-install state has no recorded effective values. No test coverssetwithout aninstall.env. - Fix: persist only the key the picker changed (leave the other absent from
settings.env), or bake the effective option values into the generated script as the fallback defaults. Add a test: optionscacheStrategy: "none", no install,preset set medium, theneffectiveSettingsmust still returncacheStrategy: "none".
- What fails: the user sets
Non-blocking
- index.js:564 / index.js:360 (updateScript) —
versionis written unquoted intoinstall.env, which the scriptssource. The value comes from the release redirect URL (downloadBinary, index.js:95) or theLocationheader (updateScript). A tag likev1;cmdwould execute on sourcing. The release endpoint is already fully trusted (it also supplies the binary and its checksum), so this is hardening, not a broken boundary: validate the tag against^v?[A-Za-z0-9._-]+$orshQuoteit. - index.js:809 —
stopRecordedProxythrows whenproxy.pidis missing but the recorded port is healthy. The throw propagates to the config hook's catch, so the whole routing is skipped (fail open, no proxy) instead of reusing or replacing the running proxy. Wrapping the read in a try, or killing by port owner, keeps the startup working. - index.js:692-700 — a gateway baseURL that does not end in
/v1gets/v1inserted into its path. The proxy appends/v1/messagesetc. to the upstream (proxy/proxy.go:583-586), andproxyUpstreamURLonly strips a trailing/v1. A gateway that serves atbaseURL/messages(no/v1) worked before the plugin and 404s after. The strip rule matches the@ai-sdkconvention, so this is an accepted edge; worth one line in the docs' troubleshooting. - index.js:812 and the shell scripts — the pid-kill guard matches
*context-guru-proxy*in the command line. ACONTEXT_GURU_BINpath whose file is named differently is never killed by reset, uninstall, update, orset --restart; the scripts then report success while the proxy keeps running. - CI runs nothing for
opencode-plugin/.make testand.github/workflows/ci.yamlare Go-only, so the 1097 lines ofnode:testtests run only on a developer's machine. This matches the Claude Code plugin's Python tests, so it is precedent, not a regression — but anode --test opencode-plugin/test/job is cheap. uninstall --purgeleavessettings.envand the command scripts behind, while the docs say it "also removes the binary and state files". The leftoversettings.envstill wins over plugin options at the next install.- Data dependence (repo rule): the plugin keeps only its own metadata (ports, pids, paths, a hash of the project path) and starts the proxy with
--dashboardand content capture off, matching the Claude Code plugin.docs/data-dependence.mdneeds no new row for that, but the PR description should state it in plain words, as CLAUDE.md requires.
What I checked
- Read the full diff
569c609b..HEAD(12 files, +2549) and the code around each change:opencode-plugin/index.js,tui.js, all six test files, both READMEs, the install doc,mkdocs.yml. - Read all 8 commits, including the merge
33e0eb8band the path-normalization fix761153ce. - Verified the plugin's assumptions against the proxy:
--anthropic-upstream/--openai-upstream/--config/--dashboard/--dashboard-db/--idle-exitflags exist (cmd/context-guru-proxy/main.go), the served paths/anthropic/v1/messages,/openai/v1/chat/completions,/openai/v1/responses,/healthzmatch the rewritten baseURLs (proxy/proxy.go:560-596), andx-context-guru-sessionis the header the proxy reads (proxy/proxy.go:743). - Verified the strategy table, aliases,
ONE_HOUR_DEFAULTSomission rule, and the1-hour-headdeprecated token key againstcontext-guru-plugin/scripts/settings.py(STRATEGIES, lines 3626-3754) — they match. - Verified the
cache:keys the plugin writes exist in the strict YAML loader (config/config.go:143-232). - Traced the fail-open paths: config-hook errors leave provider config untouched;
chat.headers/http.requestrecovery failures never break the request; thedisabledmarker blocks recovery; the lock, single-flight recovery, port reuse, and picker restart flows. - Checked the generated shell scripts by hand: quoting (
shQuoteon every path), heredoc structure inrender(), pid guards, atomic writes, and macOS portability (verified locally that BSDgrepaccepts\|BRE alternation and/bin/sleepaccepts0.2; no Go builds or tests were run). - Checked the README table HTML stays well-formed with the new
rowspan="3"row.
- Remove the plugin's own copy of the strategy table. Read it with "context-guru-proxy strategies" (from rossoctl#987). There is no fallback for an older binary: the plugin logs an error that says to update. - Run the command with a loopback port 0 and a 5 s limit. An older proxy treats the word as an argument and starts serving. - Offer only strategies whose providers match a routed provider. The default is the proxy default. An unfit default runs none. - Write "cache.strategy: <name>" to proxy.yaml. The proxy fills the keys. - Pin the download to v0.7.1, the first release with "strategies". - Tests: fake table, provider filter, old-binary error, kill at the limit. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Blocking: - A picker "set" saves only the key it changed. "show" reads saved, then the plugin options, then the default. Before, a set before the first install saved a default strategy that beat the option and could turn on pings. - The lock has a heartbeat (5 s) and a 30 s stale age. The download runs outside the lock. startProxy fails when its own child exits, so a stranger on the port is not taken for the child. - Tests for fail-open when the proxy cannot start (v1 and v2) and for the "multiple upstreams" error. Also fixed: - uninstall --purge and reset deleted a binary the plugin did not download: the marker file was tested for existence, not content. A binary is now removed only if the marker says yes and it lives in the state directory. - uninstall --purge also removes the saved choices and the scripts. - The stop and reset guard matches the recorded binary path, so a binary with another file name is stopped. - The release tag in install.env is checked. The update script refuses an odd tag. - stopRecordedProxy does not throw when proxy.pid is missing. - withLock checks its deadline before it retries. - A PATH entry must be executable. - No session id means no session header (v1 and v2). - v2 registers the session hook from the provider callback, so the order of the callback and transform() does not matter. - A CI workflow runs the Node tests on Node 22. - The README badge no longer uses the OpenAI logo. - Docs: the /v1 gateway note, the guard rule, the lock. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Round 1 replyHead is now
Both reviewers blocked. All findings are fixed except one, which is kept with a reason. Reviewer 1
Reviewer 2
Found while fixing: a bug in the original code
Checks
|
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.321 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 2 of 2 | bb9ebe837de4 |
blocking |
Verdict: blocking
Earlier findings
- My round-1 finding 1 (lock vs. download): fixed. The download runs outside the lock (index.js:905-908), the holder heartbeats every 5 s with a 30 s stale age (index.js:831-862), and
startProxyfails when its own child exits (index.js:941-950), so a stranger on the port is not taken for the child. Tests: review1.test.mjs:71-147 cover a live old lock, a dead lock, the download outside the lock, and the fast child-exit failure. - My round-1 finding 2 (missing fail-open tests): fixed. review1.test.mjs:150-176 and v2.test.mjs:206-236 cover v1 and v2 with a dead binary and with two upstreams for one dialect.
- My round-1 non-blocking items: all fixed (deadline before retry, guarded
proxy.pidread, executable bit, no header without a session id, v2 hook timing with a late-callback test, badge). - Reviewer 1's blocking finding (picker saves a default over the option): fixed. The picker saves only the key it changed (index.js:562) and
showreads saved, then option, then default (index.js:519-520). Tests: review1.test.mjs:28-68. - Reviewer 1's non-blocking items: fixed, except the gateway
/v1rule, which the author kept with a reason. I checked the reason: the@ai-sdkclients add/v1themselves, and the troubleshooting section now states the rule (install doc, "A gateway stops working after the plugin routes it"). I accept it. - The purge bug the author found while fixing: verified fixed. A binary is removed only when the marker says
yesand the path is under the state directory (index.js:428-432). Tests cover purge and reset with an external binary.
Findings
-
opencode-plugin/index.js:14 — the pinned release v0.7.1 does not exist, so every fresh install fails, and a v0.7.0 managed install hits an update dead end.
- What fails:
PINNED_VERSION = "v0.7.1"anddownloadBinarynever asks which release is latest (index.js:117). A fresh install (no PATH binary, no managed binary) fetches/download/v0.7.1/…, gets 404, and the plugin fails open with no routing. A user whose managed binary is v0.7.0 (downloaded as "latest" by this PR's earlier heads) gets "update the proxy to v0.7.1 or later (/context-guru-update, …)", but the update script compares against the real latest release, v0.7.0, findsinstalled = latest, and answersresult=latest. The plugin demands an update the updater says does not exist. Only the manual "remove the binary" escape works. - Proof: the GitHub releases list tops at v0.7.0 (created 2026-11-09T14:53:05Z); there is no v0.7.1 tag or release (checked
releases,releases/tags/v0.7.1→ 404,tags). Thestrategiessubcommand the plugin depends on landed in #987 (b49cbeb6, merged 18:54Z), about four hours after v0.7.0 was cut, so v0.7.0 does not have it. The author's integration run used a binary built fromb49cbeb6, not a release. - Fix: cut and publish release v0.7.1 before this merges (and before anyone installs the plugin), or resolve the pin to a release that exists. Until the tag exists, the merge must wait.
- What fails:
-
opencode-plugin/index.js:577 — a picker
set --restartwrites the OTHER setting's raw option value into proxy.yaml without validation, and a bad value leaves the project with no proxy.- What fails: the restart path takes
new_strategy/new_presetfrom the saved value, else the raw plugin option (index.js:519-520, 560), and writes both intoproxy.yaml(index.js:577).writeOptionsFilestores the option as typed, not resolved (index.js:613-617). The startup path resolves the option through the proxy's table and the preset list (index.js:915-918, 895-899); the picker path does not. So: the user types{"preset": "hgh"}(a typo) or{"cacheStrategy": "aut0"}; the plugin warns at startup and runsoff/none; later the user runs/context-guru-strategy set 2-ping --restart. The script kills the running proxy, writespreset: hghinto proxy.yaml, and the proxy exits withconfig: unknown preset "hgh"(config/config.go:488 on main; an unknowncache.strategyis a config error too, config/strategy.go applyStrategy). Result: the old proxy is dead, the new one refuses to start,ensureProxyRunningkeeps failing on the same bad config, and every request fails until the user repairs the config by hand. That is fail-closed, against the repo's first rule. A milder case needs no typo: an OpenAI-only setup (optionauto, not offered) getsstrategy: autowritten by any preset switch with restart, silently undoing the plugin's own unfit-to-nonedecision. - Proof: trace of index.js:519-520 (fallback chain ends at the raw
options.envvalue), 613-617 (raw option written), 560 and 577 (both keys rendered into proxy.yaml), against the validated startup path at 915-918. No test coversset --restartwith an option value the proxy rejects. - Fix: in the restart path, validate the other key the way
startProxydoes — preset against the preset list, strategy againststrategies.tsvafter alias mapping — and fall back to the default when it does not validate. Add a test: optionpreset: "hgh", thenstrategy set 2-ping --restart, and the proxy must still start.
- What fails: the restart path takes
Non-blocking
- index.js:1141-1145 — the comment says "setup waits for them", but
await Promise.all(pendingHooks)returns at once when the provider callback has not run yet, andif (!hooked.size)then logs "no Anthropic or OpenAI provider is configured" wrongly. The hooks still register when the late callback runs, so only the log is wrong. Cosmetic, and only under a host that defers the callback. - index.js:29-32 —
loadStrategyTabledoes not check thespendsanddesctypes. A row withoutdescwould show "undefined" in the picker. Hardening only; the real proxy always sends them. - tui.js:35 — when
strategies.tsvis missing (nothing routed yet), the toast says "No cache strategy script found", but the script exists; the table is what is missing. Wording only.
What I checked
- Last review: round 1, 1f214ac, 2026-11-09T18:55:12Z
- New commits read: 2 (8530f14 feat(opencode): read the cache strategy table from the proxy; bb9ebe8 fix(opencode): fix round 1 review findings)
- Read in full: 2 reviews, 5 comments, 0 inline comments (from the three files)
- New items since my last review: reviewer 1's round-1 review (read in full; its blocking finding and non-blocking list checked in code); the author's round-1 reply (each "fixed" claim verified at the named lines; the one "kept with a reason" checked and accepted); commits 8530f14 and bb9ebe8 (full diff, and every changed file read whole: index.js, tui.js, all test files, the workflow, both READMEs, the install doc).
- Verified the plugin's new dependency against main:
context-guru-proxy strategiesandcache.strategycome from #987 (b49cbeb6, onorigin/main, NOT in this PR's head); the table shape the plugin parses matchesconfig.StrategiesJSON; aliases are canonicalized by the proxy'sLookupStrategy, so an alias written into proxy.yaml loads; an unknown preset or strategy name is a config error that stops the proxy. - Checked the release the plugin pins: v0.7.1 has no tag and no release; the latest release is v0.7.0, cut before #987 merged (finding 1).
- Re-traced the lock (heartbeat, stale age, download outside), the child-exit race, the fail-open paths, the picker save/show/restart flows,
options.env, and the purge and kill guards against the tests that now cover them. - Did not run the node tests (live tests not approved). The author reports 65 passing and mutation checks; I read the tests instead.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.321 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 2 of 2 | bb9ebe837de4 |
blocking |
Verdict: blocking
All round-1 findings from both reviewers are fixed, except one the author kept with a reason I accept. The two new commits add two defects of their own.
Findings
-
opencode-plugin/index.js:577 —
set NAME --restartwrites the OTHER setting into proxy.yaml without the check that startup applies.- What fails, case A (silent spend): an OpenAI-only project, no saved strategy, no plugin option. The picker falls back to
cur_strategy=$DEFAULT(index.js:520).strategies.defaultholds the raw proxy defaultauto(index.js:59), not a name that fits openai. The user runs/context-guru-preset set high --restart. Line 560 copies thatautointonew_strategy, and line 577 writesstrategy: autointo proxy.yaml. The proxy accepts the name — its table does not check providers (Providersfield, config/strategy.go) — andautosetskeepalive: true, the same switch the openai30-min-pingrow uses. The proxy then runs refresh pings that spend the user's credential. Startup refuses exactly this:resolveStrategy(index.js:42-47, called at index.js:916) mapsautotononefor openai-only and logs why. One preset switch turns on spending that the plugin itself refuses. - What fails, case B (proxy down): the user sets a typo option,
cacheStrategy: "hourly". Startup runsnoneand warns. Thenpreset set high --restartwritesstrategy: hourlyinto proxy.yaml. The proxy rejects the unknown name at config load (config: cache: unknown strategy, config/strategy.go:171) and exits.context-guru-startfails, the script printsresult=not_applied. But lines 570-575 already killed the old proxy. The project has no proxy until the next OpenCode start, and open sessions send to a dead port. - Proof: the
validcheck at line 556 covers only the key the user set. Lines 560 and 577 pass the other key through with no check. Startup resolves the same value and writes the resolved name (index.js:916-923). The preset side has the same shape: a bogus option preset reaches proxy.yaml the same way. No test covers this: theset --restarttest (test/picker.test.mjs:177) routes anthropic only, whereautofits. - Fix: run the other key through
validbefore the render. When it fails, use the valueinstall.envrecords —writeInstallFacts(index.js:605) writes the resolved strategy — or refuse withresult=error. Add a test: openai-only routing,preset set high --restart, proxy.yaml must keep the resolved strategy; a typo option must not leave the proxy down.
- What fails, case A (silent spend): an OpenAI-only project, no saved strategy, no plugin option. The picker falls back to
-
opencode-plugin/index.js:14 — the pinned release v0.7.1 does not exist yet, so a fresh install downloads nothing.
- What fails: I read the GitHub releases list during this review. The newest release is v0.7.0 (2026-11-09T14:53:05Z).
downloadBinaryfetches.../releases/download/v0.7.1/context-guru_0.7.1_<os>_<arch>.tar.gz(index.js:117-123). The answer is 404.startProxythen throws, the plugin fails open, and routing stays off. Every machine with no proxy on PATH and no managed binary gets a no-op plugin and one error line in the log. - The error text in
loadStrategyTable(index.js:20) tells the user to remove the old binary so the plugin downloads v0.7.1. That download 404s too. - The author's integration run used a proxy built from
b49cbeb6, not a release. #987 (thestrategiessubcommand) is onorigin/mainatb49cbeb6, so the release can be cut before this PR merges. - Fix: cut v0.7.1 from a main that includes #987, before or at merge. Name the merge order in the PR description. No code change.
- What fails: I read the GitHub releases list during this review. The newest release is v0.7.0 (2026-11-09T14:53:05Z).
Earlier findings, re-checked
Reviewer 1 (mine), round 1:
- Picker
setsaves a default for the other setting — fixed (bb9ebe8).setsaves only the key it changed (index.js:562).showreads saved, then option, then default (index.js:519-520).effectiveSettingsreturns the raw request (index.js:895-899). Tests: test/review1.test.mjs:28-68. The restart path still writes the other key; that is new finding 1. versionwritten unquoted intoinstall.env— fixed.safeVersionkeeps only tag characters (index.js:593-595). The update script refuses an odd tag. Both tested.stopRecordedProxythrows on a missing pid file — fixed (index.js:866-876), tested.- Gateway
baseURLand/v1— kept by the author, reason accepted. The@ai-sdkrule is real, and the troubleshooting doc now names it (docs/how-to/install-opencode-plugin.md: a gateway base must end in/v1or have no path). I verified the line exists. - Kill guard matches only
*context-guru-proxy*— fixed. The scripts match the recorded binary path (index.js:572-573), andstopRecordedProxymatches the path ininstall.json(index.js:872). Tested with a renamed binary. - No CI for
opencode-plugin/— fixed..github/workflows/opencode-plugin.yaml, Node 22, path-filtered,node --checkandnode --test. uninstall --purgeleavessettings.envand scripts — fixed and tested. It keepscontext-guru-install, which undoes the uninstall.- Data dependence in the PR body — the author states it is there. The plugin itself keeps only metadata, so I agree no
docs/data-dependence.mdrow is needed.
Reviewer 2, round 1 (checked, not raised again):
- Lock stale age shorter than the download — fixed. The download runs before the lock (index.js:905-908). The holder heartbeats every 5 s. A lock untouched for 30 s is stale.
startProxyfails when its own child exits (index.js:941-950). Four tests cover it. - No fail-open test — fixed. v1 and v2 tests with a binary that exits at once, plus the two-upstreams error for both generations.
withLockdeadline aftercontinue— fixed. The deadline is checked before the retry.executableOnPathignores the executable bit — fixed and tested.- Session header without a session id — fixed in v1 and v2, tested.
- v2
routedIdstiming — fixed. Hooks register from inside the provider callback and check the routed set per request. A test runs the callback late. The author notes no real OpenCode 2 run; that check stays open. - README badge — fixed.
The author's own find, purge deleting an external binary — fixed. The marker must say yes and the file must sit in the state directory. Two tests cover purge and reset.
Non-blocking
- opencode-plugin/README.md:36 and :55 say the default strategy is
autowith no caveat. The install doc has the caveat (docs/how-to/install-opencode-plugin.md:54: ifautodoes not fit the routed providers, the plugin runsnone). Copy that one line into the plugin README.
What I checked
- Last review: round 1,
1f214ac0c6bd326923644c4c2e4ceddaf1febda2, 2026-11-09T18:55:49Z. - New commits read: 2 (
8530f14bfeat(opencode): read the cache strategy table from the proxy;bb9ebe83fix(opencode): fix round 1 review findings). - Read in full: 2 reviews, 5 comments, 0 inline comments (from the three saved files).
- New items since my last review: the author's "Round 1 reply" (2026-11-09T19:42:48Z) — I checked every claim against the code, results above; commits
8530f14bandbb9ebe83— reviewed like a first review, findings 1 and 2. - Read the full diff
1f214ac0..bb9ebe83and the whole files around it:index.js(1161 lines),tui.js,test/review1.test.mjsin full, the diffs of the other test files,.github/workflows/opencode-plugin.yaml, and the three docs. - Verified the strategy-table contract against the proxy: read
config/strategy.goand the subcommand dispatch fromorigin/main(b49cbeb6, #987). The JSON shape, thecache.strategykey, the alias map, and the unknown-name config error all match what the plugin expects. #987 is not in this PR's base; it must reach main before the release (finding 2). - Checked the table rows by provider:
auto,1-ping,2-ping,1-hour-headare anthropic-only;nonefits any;30-min-pingis openai-only. An openai-only install resolves the default tononewith a logged reason, as the docs say. - Read the GitHub releases list for the tag check (finding 2).
- Traced the picker script again line by line: fallback chain, save-only-changed-key, kill guard,
install.envrewrite, restart order. - Did not run the node tests (live tests not approved). No Go builds or tests; Go is not on this machine.
Blocking (both reviewers, round 2): - "set NAME --restart" wrote the OTHER setting into proxy.yaml without the check that startup does. On an OpenAI-only project, a preset switch wrote "strategy: auto", which turns on pings that the plugin refuses at startup. A typo in an option wrote a name that the proxy refuses, and the old proxy was already dead. - Both keys now come from pick_preset and pick_strategy. A value counts only if it is in the preset list or in strategies.tsv (the proxy table, after the alias map, filtered to the routed providers). The order is: saved, plugin option, what the running proxy records, the default. - The script renders the new file before it touches the old proxy. If the new proxy does not start, the old file goes back, the old proxy starts again, and the result is not_applied. Also: - loadStrategyTable rejects a row without a boolean spends or a string desc. - The TUI toast says the strategy table is missing when the script reports that, not that the script is missing. - The v2 setup no longer logs "no provider is configured" when the host runs the provider callback late. - A 404 for the pinned release says the release is not published. - Docs: the "auto does not fit" caveat in the plugin README, and the v0.7.0 update dead end. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Round 2 replyHead is now Both reviewers blocked on the same new defect in the round 1 fix. It is fixed. The release finding is a merge-order item, not code. Blocking:
|
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.321 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 3 of 3 | 68890abed3c9 |
approve |
Verdict: approve
The round-2 blocking defect is fixed and tested. The release item is now a named merge-order condition, and I accept the author's reason. One condition on merge: do not merge before release v0.7.1 is published. At review time it is still missing (see below).
Findings
None.
Merge condition (round 2, finding 2 — accepted as merge order, not code)
- The pin stays at v0.7.1 and the release still does not exist. I checked again during this review: the newest release is v0.7.0, and
releases/tags/v0.7.1answers 404. - The author's reason is right: no code change can publish a release, and v0.7.1 is the correct pin, because it is the first release with the
strategiessubcommand (#987, onorigin/mainatb49cbeb6). - What the PR now does about it: the PR body has a "Merge order" section (verified: release v0.7.1 with #987, then merge #483); a 404 on the pinned download prints
release v0.7.1 is not published yet (HTTP 404); put a v0.7.1 or later context-guru-proxy on PATH, or set CONTEXT_GURU_BIN(index.js:128, tested); both docs say a fresh install cannot download its proxy until v0.7.1 exists, and that/context-guru-updateanswers "latest" for a v0.7.0 binary in the meantime. - The merge must wait for the release. That is the whole remaining action.
Earlier findings, re-checked
Round 2, mine:
set NAME --restartwrites the other setting into proxy.yaml without the startup check — fixed (68890ab). Both keys now come frompick_preset/pick_strategy(index.js:523-545). A value counts only if it is in the preset list, or instrategies.tsvafter the alias map and the provider filter. The candidate order is: saved choice, plugin option, whatinstall.envrecords, then the default — and the default counts only if it fits the routed providers, elsenone. I traced every state against the startup path (effectiveSettings+resolveStrategy, index.js:895-918): openai-only with no choice givesnone, a typo option falls through to the recorded value, a saved name that stopped fitting falls through too. Same result as startup in each case. The script also renders the new file before it kills the old proxy (index.js:595-599), and on a failed start it puts the old file back and starts the old proxy again (index.js:615-618).context-guru-startwritesproxy.piditself (index.js:466-469), so the restored proxy stays stoppable.- v0.7.1 not released — accepted as merge order, see the section above.
Round 2, reviewer 2 (checked myself, not repeated as findings):
- Same restart-path defect, with the preset-typo variant — fixed by the same change. Their extra detail holds: an unknown preset is also a config error that stops the proxy, so the render-before-kill reorder matters for that side too.
- v0.7.1 not released, plus the v0.7.0 update dead end — accepted as merge order, same as mine. The dead end is now documented in both docs and the 404 message names the escape.
Round 2, reviewer 2 non-blocking (all in 68890ab):
- v2 "no provider is configured" log when the callback runs late — fixed, wording now says "routed so far", with a test that the old text is not logged.
loadStrategyTablerow types — fixed, a row needs a booleanspendsand a stringdesc(index.js:30), three bad tables rejected in a test.- tui.js toast for a missing strategy table — fixed, the toast names the table, not the script, with a test for both causes.
Round 2, mine, non-blocking:
- Plugin README
auto-default caveat — fixed, both places now sayautobecomesnonewhen it does not fit the routed providers.
Non-blocking
- index.js:595-618 — if the kill guard fails to stop the old proxy (pid reuse, changed command line),
context-guru-startsees the port healthy, printsproxy=already-running, exits 0, and the script reportsresult=restartedwhile the old config still runs. Pre-existing shape, not new in this commit, and it needs the recorded-proxy guard to fail. Theshowpath discloses the saved-versus-running gap. Not worth blocking.
What I checked
- Last review: round 2,
bb9ebe837de40caf1e31d9f67f9e37f717e997a9, 2026-11-09T19:55:39Z. - New commits read: 1 (
68890abefix(opencode): check the other setting on a picker restart). - Read in full: 4 reviews, 6 comments, 0 inline comments (from the three saved files).
- New items since my last review: reviewer 2's round-2 review (2026-11-09T19:51:49Z) — read in full, both findings and all three non-blocking items checked in code; the author's round-2 reply (2026-11-09T20:20:09Z) — every claim checked against the code, results above; commit
68890abe— full diff, every changed file read around the changes. - Read the new picker logic line by line:
valid_in,alias_of,pick_preset,pick_strategy(index.js:523-545), the candidate order, the alias map, the provider filter throughstrategies.tsv, and the default-fits check. - Traced the restart flow in order: render to
.new, copy to.old, kill, wait for health to die, move, start, and the rollback on failure. Confirmedcontext-guru-startrewritesproxy.pid(index.js:466-469), so the rollback leaves a stoppable proxy. - Read the five new tests in
test/review1.test.mjs(openai-only keepsnone, preset typo, strategy typo, rollback restores the old file and proxy, refused name exits 2 untouched) and the newpickyProxyBinaryhelper: it reads--configand refuses unknown names, like the real proxy's strict loader, so the tests exercise the real failure mode. - Read the smaller diffs:
loadStrategyTablerow validation, the 404 message, the v2 log wording, the tui.js toast, and the doc lines in both files. - Checked the release state again through the GitHub API: newest release v0.7.0,
releases/tags/v0.7.1→ 404. Verified the "Merge order" section exists in the PR body. - Did not run the node tests (live tests not approved). The author reports 73 passing with mutation checks; I read the tests instead.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.321 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 3 of 3 | 68890abed3c9 |
approve |
Verdict: approve
Both round-2 findings are resolved. I found no new defect in 68890abe.
Merge condition (not a finding)
The PR must not merge before release v0.7.1 is published. The PR body now says this in its "Merge order" section, and I accept it. I re-checked the releases list during this review: v0.7.1 still does not exist, and the latest release is v0.7.0. So the merge waits for the release, not for more code.
Earlier findings
- My round-2 finding 1 (pinned release v0.7.1 does not exist): resolved as a merge-order item. The pin stays at v0.7.1 by design. The PR body now states the order: release v0.7.1 (with #987), then merge #483. This is the fix both reviewers asked for; no code change was needed. The failure mode stays fail-open, and the gap is now visible in three places:
- A 404 on the download says
release v0.7.1 is not published yet (HTTP 404); put a v0.7.1 or later context-guru-proxy on PATH, or set CONTEXT_GURU_BIN(index.js:128). A test covers it (review1.test.mjs, "a pinned release that is not published"). - Both docs say a fresh install cannot download its proxy until v0.7.1 exists, and that
/context-guru-updateanswers "latest" for a v0.7.0 binary.
- A 404 on the download says
- My round-2 finding 2 (
set --restartwrote the other setting without the startup check): fixed. I traced the new code line by line:- Both keys now come from
pick_presetandpick_strategy(index.js:528-543). A value counts only if it is in the preset list, or instrategies.tsvafter the alias map and the provider filter. The order is: saved choice, plugin option, the running proxy's record ininstall.env, the default. A default that does not fit givesnone. So case A (OpenAI-only, silentauto) and case B (a typo option) cannot reachproxy.yaml. - The script renders the new file before it kills the old proxy (index.js:597). It keeps
proxy.yaml.old(index.js:599). If the new proxy does not start, the old file goes back, the old proxy starts again, and the script printsold_proxy=restoredandresult=not_applied(index.js:614-620).install.envis rewritten only on success (index.js:610-611), so the record keeps describing the proxy that runs. - A name not in the table is refused before anything is touched (exit 2, index.js:581).
- Tests cover all five paths I flagged: OpenAI-only restart keeps
strategy: none; a typo preset and a typo strategy each restart cleanly; a refused file leaves the old proxy running with the old file; an unknown name exits 2 with the old proxy untouched. ThepickyProxyBinarystub refuses names the way the real proxy does at config load.
- Both keys now come from
- My round-2 non-blocking items: all fixed.
loadStrategyTablerejects a row without a booleanspendsor a stringdesc(index.js:29-30), with a three-case test. The TUI toast names the missing table, not the missing script (tui.js:35-38), with a test. The v2 "no provider" log now says "routed so far", with a test that the old wording is not logged. - Reviewer 1's round-2 findings: both match mine. Finding 1 is the same restart defect, fixed as above. Finding 2 is the same release pin, resolved the same way. Nothing to add.
What I checked
- Last review: round 2,
bb9ebe837de40caf1e31d9f67f9e37f717e997a9, 2026-11-09T19:51:49Z - New commits read: 1 (
68890abefix(opencode): check the other setting on a picker restart) - Read in full: 4 reviews, 6 comments, 0 inline comments (from the three saved files)
- New items since my last review: reviewer 1's round-2 review (2026-11-09T19:55:39Z, read in full; its two findings are my round-2 findings, both resolved above); the author's round-2 reply (2026-11-09T20:20:09Z, every claim checked in code); commit
68890abe(full diff, and each changed file read around the changes: index.js, tui.js, helpers.mjs, review1.test.mjs, picker.test.mjs, tui.test.mjs, v2.test.mjs, both docs). - Re-checked the release state:
releaseslists v0.7.0 as latest;releases/tags/v0.7.1answers 404. The PR body's "Merge order" section says v0.7.1 must be released first. Head on the PR is68890abe, as given. - Re-traced the restart flow end to end: candidate validation, alias mapping, render-before-kill, the rollback (file restore, old-proxy restart,
install.envuntouched on failure), and the wait-for-death loop. Checked that a saved-but-not-applied choice still resolves safely at the next startup, becauseresolveStrategyvalidates it there. - Checked the
pickyProxyBinarystub against the real proxy's behavior: an unknown preset or strategy name is a config error that stops the proxy, so the stub models the failure the rollback must survive. - Did not run the node tests (live tests not approved). The author reports 73 passing and mutation checks; I read the tests instead.
- README: add an "OpenCode (experimental)" row to the install table, after Codex. The organization cell and its rowspan are the same as on main, because docs/hosted.md does not describe OpenCode. - README: add a short "OpenCode (experimental)" section with the install steps, the commands, and how to remove it. - How-to: add an "Experimental" note at the top, and a known issue for the native dialogs (they did not appear in OpenCode 1.19.5). - Remove the "Until v0.7.1 is released" lines in both docs. v0.7.1 is published. The docs now say that v0.7.1 or later is required. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
The first real OpenCode test (1.19.5) found that tui.js loaded and
ran, but its two commands never showed in the ctrl+p palette or in
the slash menu. They registered without an error and stayed hidden.
Cause: the host lists a keymap command only when it has
namespace "palette". It reads the slash name from slashName, not from
slash: { name }. The published types do not list these fields. They
come from the host's own api.command shim, which builds a command as
{ namespace: "palette", name, title, desc, category, slashName, run }.
- tui.js: add namespace "palette" and slashName, and a desc.
- Test: a fake host that lists only commands that have namespace
"palette" and a string slashName. The old code fails it. Four
mutations (no namespace, slash object, wrong namespace, no
category) all fail it.
- Proved in the real TUI under tmux: the palette lists "Context Guru:
preset" and "Context Guru: cache strategy". The preset entry opens
the select list ("Context Guru: preset (saved: off)."), then the
"Switch preset?" confirm, then the "Restart the proxy now?" confirm.
The choice is saved only after the first yes.
Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
- Replace the "dialogs did not appear" notes. The dialogs appear in the ctrl+p palette in OpenCode 1.19.5. The slash menu lists a chat entry and a native entry with the same name; the docs say to use the palette for the native dialog. - Add a troubleshooting entry: a running proxy keeps the key it started with. Uninstall, then install, starts a new one. - Say that --purge leaves the disabled marker and the proxy's dashboard.db.accountant-state.json, and that the next OpenCode start writes the command scripts again. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Behavior change, approved by the owner on 2026-11-10. Who it affects: OpenCode plugin users who set DASHBOARD_CONTENT. Old behavior: the proxy the plugin started followed the environment, so DASHBOARD_CONTENT=1 turned capture on. New behavior: always off. The real v0.7.1 test showed content_capture=true because the owner's settings set it. - Every start path gets "--dashboard-content=false" on the command line and DASHBOARD_CONTENT=0 in the environment: the first start, the recovery spawn, the start script (picker --restart, install, update). The flag wins over the environment in the proxy; both are set so no path can miss it. - The recovery spawn also fixes an older install.json that was written without the flag. - No other DASHBOARD_* setting is touched. - There is no way to turn capture on from the plugin. It cannot attach to a proxy the user starts. - Tests: the stub proxy records its argv and environment. With DASHBOARD_CONTENT=1 in the parent, every start path launches with capture off. Seven mutations (flag or env removed from each path, the helper keeping another value) all fail a test. - Real check, v0.7.1 binary, DASHBOARD_CONTENT=1 in the environment: the log says content_capture=false, and the request_content table has 0 rows after a 200 request. - Docs: "The plugin never stores message text; the dashboard shows metadata only", in the how-to and both READMEs. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Update: real OpenCode test, TUI fix, content capture offHead is now The 4 new commits
Real test evidence
Checks
Not covered
Open questionThe chat commands and the native commands share the slash names |
README.md conflicted with rossoctl#1009 (Pi). The install table now lists Claude Code, Codex, Pi, OpenCode. The OpenCode row has "Not yet" in the enterprise column, like Pi. The Pi section stays as on main, and the OpenCode section follows it in the same shape. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 4 of 4 | f2bc703bc667 |
approve |
Verdict: approve
The merge condition is satisfied: release v0.7.1 is published and includes #987. The four new commits fix a real-host defect, document a real OpenCode run, and add an owner-approved behavior change. I found no new defect. One non-blocking note about an upgrade window.
Findings
None.
The round-3 merge condition: satisfied
- v0.7.1 was published on 2026-11-10T06:51:34Z. I checked the tag through the API.
- It includes #987:
compare/b49cbeb6...v0.7.1answersahead, so thestrategiessubcommand is in the release. - The assets include the four
context-guru_0.7.1_<os>_<arch>.tar.gzfiles andchecksums.txtthatdownloadBinaryfetches. The extra bob-installer assets from #971 do not interfere. - The docs dropped the "until v0.7.1 is released" lines, which is now right.
Earlier findings, re-checked
- All findings from rounds 1 to 3 are fixed and stay fixed. The new commits touch the same start paths, and the round-3 tests still cover them.
- Reviewer 2's round-3 review (approve, same conclusions) — read in full; nothing to add.
What the new commits do, checked
56722910— docs: mark OpenCode experimental, short install steps. README table restructured (OpenCode row with—in the organization cell,rowspanadjusted to 2). I checked the HTML stays well-formed. Experimental notes added to all three docs.937e7f1c— fix: register the TUI pickers the way OpenCode lists them. OpenCode 1.19.5 lists a keymap command only withnamespace: "palette"and readsslashName, notslash: { name }.tui.jsnow sets both, plusdesc. I cannot run a real OpenCode host here, so I checked what I could: the test models the host rule exactly (hostVisiblein tui.test.mjs), the legacyapi.commandfallback keeps its own field shape and has a test, and the owner's comment reports the real-host result — the palette lists both entries and the dialogs work end to end. The defect (registers without error, invisible) matches the code shape before the fix.881b5e95— docs: steps that worked in a real OpenCode. Read in full: thectrl+ppath, the 401-after-key-change troubleshooting entry, and the two files--purgeleaves (disabled,dashboard.db.accountant-state.json).a0dbd317— feat: always start the proxy with content capture off. Behavior change, and the repo rule needs a human's yes: the owner's comment (2026-11-10T08:40:56Z) states the approval and the date. The change reduces what is stored, and the docs say who it affects (a user withDASHBOARD_CONTENTin the environment) and what changes. I verified the mechanism:- The flag exists in the proxy:
--dashboard-contentwith the default fromenvBool("DASHBOARD_CONTENT", false)(cmd/context-guru-proxy/main.go:159). An explicit--dashboard-content=falseoverrides the env default, and the plugin also setsDASHBOARD_CONTENT=0in the spawn environment. Both paths are closed. - Every start path applies it:
startProxy(flag in args,captureOffEnv()in the spawn, index.js:989-990),recoverProxy(withCaptureOff(record.args ?? [])plus the env, index.js:1047 — an olderinstall.jsonwithout the flag is compensated at every recovery), andstartScript(env DASHBOARD_CONTENT=0and the flag baked into the command, index.js:460). The install, update, and picker scripts restart throughcontext-guru-start, so they inherit it. withCaptureOffremoves any other--dashboard-contentvalue and adds the flag once; a unit test pins that.test/capture.test.mjs(224 lines, read in full) covers the first start, the recovery after a crash, an oldinstall.jsonwithout the flag, the picker restart and the install script, the script text, and the update restart — each withDASHBOARD_CONTENT=1in the parent environment and a recording stub that logsargvand the env value.
- The flag exists in the proxy:
f2bc703b— merge oforigin/main. Verified lossless for the plugin: the diff between the merge anda0dbd317onopencode-plugin/is empty. The PR's diff against its base7fd26dcdtouches onlyopencode-plugin/, the two docs,README.md,mkdocs.yml, and the workflow — the 15 main commits the merge brings are main's own reviewed PRs and are not part of what #483 changes. I read their stats and checked the ones the plugin can interact with: #999 adds fields to/api/stats(the picker'srunning_presetextraction still works, it is additive JSON), #991 and #996 change dash and proxy internals with no CLI change, #971 adds release assets without touching the tar.gz layout.
Non-blocking
- index.js:980 and 1003 — a start script written by an earlier head of this PR is not rewritten on the early-return path. When the proxy runs and the config matches,
startProxyreturns at index.js:980 before it writescontext-guru-startat index.js:1003. A machine that ran an earlier head keeps the old script, which has noDASHBOARD_CONTENT=0and no flag. A pickerset --restartor/context-guru-installthen starts the proxy with the inherited environment, soDASHBOARD_CONTENT=1turns capture on — the one thing this change says cannot happen. The window is narrow: no released plugin version exists, so only pre-merge test installs can hold an old script, and any config change or recovery rewrites or bypasses it. If wanted, the fix is one line: write the start script before the early return. - The two same-named slash entries (chat command and native command, both
/context-guru-presetand/context-guru-strategy) are an open question the owner has not decided. The docs disclose it and say to use the palette. Not a defect.
What I checked
- Last review: round 3,
68890abed3c95fb09dd5d3530b4ad5eb09e340b9, 2026-11-09T20:24:41Z. - New commits read: 5 (
56722910docs: mark OpenCode experimental, add short install steps;937e7f1cfix: register the TUI pickers the way OpenCode lists them;881b5e95docs: use the steps that worked in a real OpenCode;a0dbd317feat: always start the proxy with content capture off;f2bc703bmerge origin/main). The merge also brings 15 main commits (7bfd2f42..7fd26dcd); I read their stats and checked the plugin-facing ones, and verified they are outside this PR's diff against its base. - Read in full: 6 reviews, 7 comments, 0 inline comments (from the three saved files).
- New items since my last review: reviewer 2's round-3 review (2026-11-09T20:26:14Z) — read in full, same conclusions as mine, nothing to add; the owner's update comment (2026-11-10T08:40:56Z) — every claim checked against the code, results above, including the real-host evidence and the CI failure it names (pre-existing on main, #1017, no Go code in this PR); the 5 new commits — full diff read, every changed file read around the changes.
- Verified the capture flag against the proxy source:
--dashboard-contentexists with the env-derived default (cmd/context-guru-proxy/main.go:159), so the explicit=falsewins. - Traced every start path for the capture change and read
test/capture.test.mjsin full. - Verified the merge kept all plugin changes (empty diff on
opencode-plugin/betweenf2bc703banda0dbd317) and that the PR diff against its base is plugin-only. - Checked the release through the API: v0.7.1 published, contains
b49cbeb6(#987), assets match the downloader's names. - Did not run the node tests (live tests not approved). The owner reports 81 passing and seven failing mutations; I read the tests instead. I could not run a real OpenCode host; the owner's comment carries that evidence.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 4 of 4 | f2bc703bc667 |
blocking |
Verdict: blocking
One finding, in the new capture-off commit. Everything else in the four new commits and the merge checks out. The round-3 merge condition is satisfied: v0.7.1 is published.
Findings
- opencode-plugin/index.js:980 — the capture-off guarantee does not hold for a start script written before
a0dbd317, and a healthy proxy keeps that script forever.- What fails: an install made by an earlier head of this PR has a
context-guru-startwithout--dashboard-content=falseand withoutDASHBOARD_CONTENT=0. The old script ran[binary, ...args]only; both capture-off mechanisms landed ina0dbd317(index.js:462). At OpenCode start,startProxyreturns early when the recorded proxy is healthy and the config text is unchanged (index.js:980). That return sits before the only line that rewritescontext-guru-start(index.js:1003). So the stale script is never refreshed while the proxy stays healthy. Three scripts start the proxy through it:/context-guru-update --yes(index.js:399), the pickerset --restart(index.js:622, and the rollback at 631), and/context-guru-install(index.js:322). The restarted proxy inherits the environment of the OpenCode host. WithDASHBOARD_CONTENT=1set, content capture turns on, silently, against the docs' promise "This holds even when DASHBOARD_CONTENT is set in your environment". The next OpenCode start early-returns again, so nothing repairs it. - Proof: grep shows
context-guru-startis written only at index.js:1003, which the early return at index.js:980 skips. The commit fixed the parallel transition case — an oldinstall.jsonwithout the flag getswithCaptureOffat recovery (index.js:1047), with a test — but not the old start script. No test covers a stale start script. - Who can hit it: a machine that installed the plugin from an earlier, unreleased head of this PR. The commit message says the owner's settings set
DASHBOARD_CONTENT=1, and a real v0.7.1 run before the fix showedcontent_capture=true— so that machine holds exactly this state. Fresh installs after merge write the new script and cannot hit it. - Fix: rewrite
context-guru-starton the early-return path too, or run the wrappers asDASHBOARD_CONTENT=0 sh "$STATE/context-guru-start"in the update, install and picker scripts. Add a test: a start script written the old way, a healthy proxy, run the update script, and assert the restarted proxy has capture off.
- What fails: an install made by an earlier head of this PR has a
Non-blocking
- The chat commands and the native TUI commands share the slash names
/context-guru-presetand/context-guru-strategy. The author lists this as an open question, and the docs say to use the palette. The owner should decide before wider release. - Reviewer 1's round-3 note stands unaddressed: if the kill guard fails to stop the old proxy,
context-guru-startreportsalready-runningand the picker printsresult=restartedwhile the old config runs. Pre-existing shape, needs a guard failure. I agree it is not worth blocking.
Earlier findings and the merge condition
- Round-3 merge condition (release v0.7.1 before merge): satisfied. v0.7.1 was published 2026-11-10T07:05:05Z with 8 assets. Commit
56722910removed the "Until v0.7.1 is released" lines from both docs. - All findings from rounds 1 to 3, both reviewers: fixed and verified in the earlier rounds. The round-4 commits do not touch the picker logic or the rollback; I re-read them at the new head (line shifts only) and nothing regressed.
- The
a0dbd317behavior change follows the repo rules. The PR body names it at the top: who it affects, the old and the new behavior, and that there is no opt-out, with the owner's approval dated 2026-11-10. Data dependence is stated; capture off only reduces what is stored. - The TUI registration fix (
937e7f1c) is sound. The host rule (namespace "palette",slashName) cannot be verified from this repo, but the author read it from the host's own code and proved it in a real OpenCode 1.19.5. The legacy fallback is unchanged and still tested. - The merge (
f2bc703b) resolves the README conflict correctly. The install table lists Claude Code, Codex, Pi, OpenCode; the OpenCode row has "Not yet" in the organization column, like Pi. The Pi section matches main. - The CI failure the author reports is not this PR's.
git log 7fd26dc..HEAD -- '*.go'is empty: the PR's own commits touch no Go file. The failingTestDashboardAddsNoRequestLatencyWithContentCapturealso fails on main (#1017).
What I checked
- Last review: round 3,
68890abed3c95fb09dd5d3530b4ad5eb09e340b9, 2026-11-09T20:26:14Z - New commits read: 5 (
56722910docs: mark OpenCode experimental, add short install steps;937e7f1cfix: register the TUI pickers the way OpenCode lists them;881b5e95docs: use the steps that worked in a real OpenCode;a0dbd317feat: always start the proxy with content capture off;f2bc703bMerge origin/main into feat/opencode-plugin). The rest of68890abe..HEADcame from main through the merge (#987, #977, #982, #968, #971, #991, #992, #996, #999, #981, #1009, #983, #979) — already-merged, already-reviewed main commits; I checked the merge resolution in README.md and mkdocs.yml, and that the merge brings #987 into the base, which the plugin depends on. - Read in full: 6 reviews, 7 comments, 0 inline comments (from the three saved files)
- New items since my last review: reviewer 1's round-3 review (2026-11-09T20:24:41Z, read in full; it approved with the same merge condition, and its non-blocking "already-running" note is re-checked above); the author's update comment (2026-11-10T08:40:56Z, every claim checked: the real-host TUI fix, capture off with real-binary evidence, the CI failure on main's #1017, and the open slash-name question); the four new commits and the merge (full diffs; each changed file read around the changes: index.js, tui.js, capture.test.mjs, helpers.mjs, tui.test.mjs, README.md, both docs).
- Verified the capture-off mechanics against the proxy:
--dashboard-contentexists incmd/context-guru-proxy/main.go:159, withenvBool("DASHBOARD_CONTENT", false)as its default, so a command-line flag wins over the environment. The flag predates v0.7.1 (it landed in #58/#649), so the pinned binary accepts it. - Traced every proxy start path at the new head: first start (index.js:989-990), recovery (index.js:1047, which also fixes an old
install.json), the start script (index.js:462), and the three script consumers ofcontext-guru-start(install index.js:322, update index.js:399, picker restart index.js:622/631). The stale-script hole is finding 1. - Read the new capture tests (test/capture.test.mjs, 224 lines) and the recording stub in helpers.mjs: they cover the first start, the recovery, an old
install.json, the picker restart, the install script, the update restart, and the reset guard. None covers a start script written before the change. - Re-checked the release state: v0.7.1 published 2026-11-10T07:05:05Z, 8 assets.
- Did not run the node tests (live tests not approved). The author reports 81 passing with mutation checks; I read the tests instead.
|
Reply to round 4, reviewer 2, finding 1 (a start script written before
Non-blocking notes:
Reviewer 1 approved at |
Owner decision, option A. With slashName set, the TUI slash menu listed /context-guru-preset and /context-guru-strategy twice: the chat command of the server plugin, and the native command. Now the native commands are palette-only. The slash names open only the chat commands. - tui.js: remove slashName (keymap form) and slash (legacy form). Keep namespace "palette", title, desc and category. - Real TUI check (OpenCode 1.19.5, tmux, no model call): the ctrl+p palette still lists "Context Guru: preset" and "Context Guru: cache strategy" without slashName. The preset entry opens "Context Guru: preset (saved: off).". The slash menu lists each name once. - Test: the fake host lists palette commands with or without slashName, and the test asserts that no native command has a slash name, in both forms. Four mutations fail it: slashName back, slash back in the legacy form, a slash object in the keymap form, a wrong namespace. - Docs: /context-guru-preset and /context-guru-strategy are the chat commands. For the native dialogs, press ctrl+p and search "Context Guru". The "two entries" note is gone. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Update: native pickers are palette-onlyHead is now What changed
Real TUI check (OpenCode 1.19.5, tmux, no model call)
Tests
Docs
Still open
|
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 5 of 5 | 6244d0ce040d |
approve |
Verdict: approve
One new commit. It applies the owner's decision on the slash names. The round-4 split between the reviewers is settled: the owner rejected reviewer 2's finding with a reason I checked and accept. No new defect.
Findings
None.
Earlier findings, re-checked
- Reviewer 2, round 4, finding 1 (a start script written before
a0dbd317keeps the capture-off promise from holding): rejected by the owner, and I accept the rejection. The owner's comment (2026-11-10T09:38:45Z) states the decision and the reason: no OpenCode installation of this plugin exists from an earlier head. The plugin was never released. Only throwaway test folders under/tmpran earlier heads, so no machine holds an oldcontext-guru-start. A fresh install writes the new script with the flag and the env set. I checked what I can check:- The code trace is the one I gave in round 4 as a non-blocking note: the early return at index.js:980 sits before the start-script write at index.js:1003, and the install, update, and picker scripts restart through
context-guru-start. Reviewer 2 and I agree on the mechanics. - The reason is a statement about which machines exist, and only the owner can know it. I cannot show it is wrong. It also matches my own round-4 severity call: I marked the same trace non-blocking because no released version exists, so only pre-merge test installs could hold an old script. The owner now says none do, as persistent installs.
- The boundary stays as written in round 4: every script this code writes carries the flag, and the docs' promise holds for all of them. The rejection rests on "no old script exists anywhere", not on the code.
- The code trace is the one I gave in round 4 as a non-blocking note: the early return at index.js:980 sits before the start-script write at index.js:1003, and the install, update, and picker scripts restart through
- My round-4 non-blocking item (two same-named slash entries): fixed by
6244d0ce. See below. - My round-3 kill-guard note (a failed kill can make the picker print
result=restartedwhile the old config runs): the owner keeps it as it is. Pre-existing shape, needs a guard failure. Agreed. - All findings from rounds 1 to 3, both reviewers: fixed and unchanged. The new commit touches no proxy-start path.
What the new commit does, checked
6244d0ce — fix: give the native pickers no slash name. Owner decision, option A.
tui.jsremovesslashNamefrom the keymap form andslash: { name }from the legacy form. It keepsnamespace: "palette",title,desc,category. So the native pickers show only in thectrl+ppalette, and/context-guru-presetand/context-guru-strategyopen only the chat commands of the server plugin. Each slash name lists once.- I checked for leftovers: no reference to the removed
slashfield ofKINDSremains intui.jsorindex.js. The chat commands still register the six/context-guru-*names; that code is untouched. - The tests model the host rule both ways:
hostVisiblecollects palette commands with or without aslashName, and the test asserts the slash list is empty and that no command carriesslashNameorslashin either form. Four mutations are named for it. The legacy-form test asserts the same absence. - I cannot run a real OpenCode host. The owner's comment (2026-11-10T09:47:17Z) carries the real check: OpenCode 1.19.5 under tmux, the palette lists both entries without
slashName, the preset entry opens the select list, and the slash menu lists each/context-guru-*name once. - The docs match the code in all three places: the slash names are the chat commands, the native dialogs are in the palette, and the "two entries" note is gone.
Non-blocking
- The DCO check fails on
d21ea6d8(the update comment names it; I verified: the commit is in the PR history, by the original author, with noSigned-off-byline). The repo requires a sign-off on every commit. The owner decides how to fix it before merge; GitHub's own check holds the merge until then, so it needs no change from this review. - The
namespaceandslashNamefield names come from reading OpenCode 1.19.5's bundled code, and the published types do not list them. A later OpenCode may change them. The plugin is marked experimental and the docs say which version it ran in. Acceptable.
What I checked
- Last review: round 4,
f2bc703bc667a3d947a522fbcde74b33dd7b02e8, 2026-11-10T08:50:50Z. - New commits read: 1 (
6244d0cefix(opencode): give the native pickers no slash name). - Read in full: 8 reviews, 9 comments, 0 inline comments (from the three saved files).
- New items since my last review: reviewer 2's round-4 review (2026-11-10T08:51:44Z, blocking) — read in full, and its finding traced again at the new head (index.js is unchanged between
f2bc703band6244d0ce: early return at 980, start-script write at 1003); the owner's rejection comment (2026-11-10T09:38:45Z) — reason checked as above; the owner's update comment (2026-11-10T09:47:17Z) — every claim checked, including the DCO fact; commit6244d0ce— full diff read,tui.jsandindex.jsgrepped for leftoverslashreferences (none). - Verified the PR diff against its base is still plugin-only (15 files, all under
opencode-plugin/, the docs,README.md,mkdocs.yml, the workflow). - Verified the DCO claim:
git log -1 d21ea6d8shows noSigned-off-by, and the commit is an ancestor of the head. - Did not run the node tests (live tests not approved). The owner reports 81 passing with four failing mutations for the new test; I read the tests instead. I could not run a real OpenCode host; the owner's comment carries that evidence.
…0.2.12, Pi 0.1.1) Claude Code plugin 0.6.7 -> 0.7.2: - #981, #989, #1018, #1035: subscription band and savings show saved tokens. - #1038: insights drop the finding that credits a user's own removal. - #1039, #1040: dash and keep-alive fixes that touch the plugin files. Codex plugin 0.2.11 -> 0.2.12: - #1051: read the cache strategies and presets from the proxy. - The vendored cg.py gets the same plugin changes. Pi package 0.1.0 -> 0.1.1: - #1010: chain the proxy in front of an existing base URL. - #1011: check the proxy at session start and restart it once. - #1049, #1058: write the cache strategy by name; review fixes. OpenCode plugin (#483): new in v0.7.2, no version file, not changed. Bob plugin 0.1.0: no change since v0.7.1, not changed. Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Bump the plugin versions for v0.7.2. - Claude Code plugin 0.6.7 -> 0.7.2: #981, #989, #1018, #1035 (savings in tokens on a subscription), #1038, #1039, #1040, #1055 (cache strategies read from the proxy). - Codex plugin 0.2.11 -> 0.2.12: #1051 (cache strategies and presets read from the proxy), plus the vendored cg.py changes. - Pi package 0.1.0 -> 0.1.1: #1010, #1011, #1049, #1058, and the #1040 README line. - OpenCode plugin: new in v0.7.2 (#483), no version file. Its first start now downloads proxy v0.7.2 (was v0.7.1). Nothing compares against PINNED_VERSION; the floor stays "v0.7.1 or later". The README lines, the install guide and 3 tests follow. - Bob plugin: 0.1.0, no change since v0.7.1. Behavior change: the OpenCode plugin's first download is proxy v0.7.2, not v0.7.1. Owner's yes, 2026-11-11, in the integrator session: "option1 it is"; the version bumps: "I approve the version bumps for the plugins". Data dependence: none. Reviews: 3 offload review rounds (GLM; round 3 pre-approved by the owner). Both reviewers approve at 3cf6176, which is the PR head. Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]>
Summary
/v1segments.Related issue(s)
None.
What we added on top (takeover by the context-guru maintainers)
Anamika's work from #483 (her commits keep her authorship):
Added on top (a merge of main, then three commits):
context-guru-proxy strategies(feat(config): named cache strategies in the proxy config #987) and keeps no copy of the table. It offers only the strategies that fit a provider it routes.5-min-pingis read asauto. It writes onlycache.strategy: <name>toproxy.yaml.ultrahigh. List matchespreset-picker./context-guru-presetand/context-guru-strategy. Each lists the choices (Claude Code wording), saves after a yes, and restarts the project proxy only after a second yes. A saved choice wins over the plugin options.opencode-plugin/tui.js, a second plugin entry listed intui.json). A select list marks the current choice. Two confirm dialogs follow: save, then restart. It usesapi.keymap.registerLayer(api.command.registeris the fallback). Chat stays the fallback foropencode run, web, desktop and a setup withouttui.json. Both paths run the sameset NAME [--restart]script.tui.jsloaded but its commands never showed. The host lists a keymap command only withnamespace: "palette", and readsslashName, notslash: { name }. The fix adds both. The palette (ctrl+p, "Context Guru") now lists the two entries, and the dialogs open. The native pickers have no slash name:/context-guru-presetand/context-guru-strategyopen only the chat commands (owner decision, option A).--dashboard-content=falseandDASHBOARD_CONTENT=0. See the Behavior block.x-context-guru-sessionis sent only for providers the plugin routed (v1 was sending it for all).uninstall --purgedeleted a binary the plugin did not download. It now removes only a binary in the state directory that the plugin downloaded. Purge also removes the saved choices and the scripts..github/workflows/opencode-plugin.yaml).docs/how-to/install-opencode-plugin.md,opencode-plugin/README.md.Merge order
v0.7.1 was published on 2026-11-10. It includes #987, which adds
context-guru-proxy strategies. The plugin downloads v0.7.1 and needs a proxy of v0.7.1 or later. There is no merge-order blocker now.Behavior and data dependence
DASHBOARD_CONTENTis set in the environment. No new row is needed indocs/data-dependence.md. The dashboard still keeps counts, sizes, ids, and the names and text of tool declarations.~/.local/state/context-guru-opencode/<project>/: pid, port, binary path,proxy.yaml,settings.env,options.env, the strategy files, log, dashboard DB. It stores no prompt text.context-guru-proxy strategies(from feat(config): named cache strategies in the proxy config #987) and keeps no copy. It writes onlycache.strategy: <name>. It offers only the strategies that fit a provider it routes.autopings with the user's own credential. The Claude Code plugin does the same.How it was tested
node --test opencode-plugin/test/*.test.mjs: 81 passed, 0 failed, 5 runs in a clean environment. CI runs it on Node 22 (.github/workflows/opencode-plugin.yaml)./v1(v1 and v2), the default strategy, the alias, the header scope, the confirm steps in the TUI, the provider filter, the cache keys the plugin must not write, the lock heartbeat, the download outside the lock, the child watch, and the picker saving one key. Several first survived because the test was weak, and I fixed the tests.opencode run "say ok"through the proxy returnedok. The proxy loggedcg.request route=/v1/messages provider=anthropic. The dashboard row has upstream status 200 and the same OpenCode session id as the proxy log.DASHBOARD_CONTENT=1in the environment: the proxy command line ends with--dashboard-content=false, its environment hasDASHBOARD_CONTENT=0, and the log sayscontent_capture=false. Therequest_contenttable has 0 rows after the 200 request./context-guru-*name is listed once, and the palette still lists both native commands./context-guru-statusend to end through the model, and OpenCode 2.b49cbeb6(darwin/arm64), dead upstream127.0.0.1:1, no API keys:auto,2-ping,1-hour-head,none. OpenAI: default and30-min-ping. Both:auto) return 502, not 404 on/anthropic/v1/messages,/openai/v1/chat/completionsand/openai/v1/responses. The proxy acceptscache.strategy.strategy: none, typo options still start the proxy, and a refused new file puts the old proxy back (old_proxy=restored).uninstall --purgeremoves the state and keeps an external binary.strategiesas an argument and starts serving. The plugin's loopback port 0 and 5 s limit stop it, and it logs the update error.api.ui. I did not run a real OpenCode.Gaps against the Claude Code plugin
/context-guru-preset, native dialog in the TUI)/context-guru-strategy, native dialog in the TUI)CI note
build-testfails onTestDashboardAddsNoRequestLatencyWithContentCapture. That test also fails onmain(test: TestDashboardAddsNoRequestLatencyWithContentCapture fails on the CI runner, also on main #1017). feat(opencode): OpenCode plugin for context-guru #483 changes no Go code.OpenCode pluginworkflow runs the Node tests on Node 22.Open questions
namespace: "palette"andslashNamecome from reading OpenCode 1.19.5, not from a published type. A later OpenCode may change them. The legacyapi.command.registerstays as the fallback.🤖 Generated with Claude Code