Repository navigation
feat: opencode go bulk lane through the codex cli sandbox (0.0.90) - #122
Merged
Merged
Conversation
the seven codex-*.mjs modules move to shared/companion unchanged so a second companion can drive the codex cli; the codex plugin copies stay byte identical.
drives the codex cli against the opencode go api from a private CODEX_HOME, generates its model catalog from codex debug models --bundled, keeps OPENCODE_* out of tool subprocesses, and reports the rolling, weekly, and monthly go windows as the included opencode pool. roles are bulk (workspace-write) and read only blind-check.
adds the opencode registry entry, lane defaults, and capability rows; engine binaries and their override variables move into the registry so the breaker cli check stops inferring a binary from the engine id; bulk never satisfies no-healthy-lane.
one routing row and peer roles for opencode bulk and blind-check, troubleshooting guardrails, and config, doctor, setup, and smoke coverage, with the smoke probe only when the plugin is installed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
opencodeplugin: a bulk lane on the OpenCode Go subscription for high volume generation that a verification command accepts (curriculum files, fixtures, translations), so that work stops spending Codex quota. roles arebulk(writes in an orchestrator owned worktree) and read onlyblind-check(answers a staged artifact with its answers removed, on another family). spec indocs/opencode-contract.mdCODEX_HOME, so writes stay confined by theworkspace-writesandbox while its health,opencodepool, and rollouts never touch the Codex engine. it generates the Codex model catalog fromcodex debug models --bundled(fallback metadata caps context at 272000 tokens and truncates tool output at 10 KB, which looped on compaction and wrote nothing) and excludesOPENCODE_*from tool subprocesses (Codex passes its full env to them by default)independenceseat, never satisfiesno-healthy-lane, and every rule sentence that names it is conditioned on it being installedshared/companionbyte identical (plugins/codexcopies unchanged), and engine binaries plus their override envs move into the registry so the breaker cli check stops inferring a binary from the id. reviewable logic is inplugins/opencode/scripts/opencode-companion.mjs,scripts/lib/opencode-home.mjs,scripts/lib/opencode-provider.mjs,plugins/fusion/scripts/lib/engines.mjs, and the rules; the rest ofplugins/opencode/scripts/libis vendored byshared/sync.mjstest plan
already verified
node shared/sync.mjs --checkpasses andgit diff origin/main -- plugins/codex/scriptsis emptyclaude plugin validatepasses for all seven plugins and the marketplace rootnpm test: 3180 tests, 3176 pass, 3 skipped, 1 fail; the failure istests/codex-quota.test.mjs"a live account rate limit read needs Codex credentials", a timing flake under load that passes 10 of 10 alone and touches no changed code/opencode:setupready,quota --jsonmaps rolling 4%, weekly 1%, monthly 0%,models --jsonlists 31 tool capable models, the generated catalog has a 1M window and 10000 token truncationbulkrun in a scratch repo: wrote the file inside the workspace,env | grep -c OPENCODE_GOprinted 0, atouchoutside the workspace failed withOperation not permitted, the verification command passed, and the rollout landed in the private home rather than~/.codexreviewer should verify
OPENCODE_GO_API_KEYset,/opencode:setupreports ready and/fusion:smokeruns six probes; without the plugin it still runs five/opencode:taskbrief withopencode-role: bulkand a verification command writes only inside its worktreenotes
percentis read as a share of each window; whether rolling and weekly are shares of their caps or of the monthly allowance is unconfirmed upstream