fix: refresh CLI agent adapters for upstream changes — Codex, OpenCode, Claude Code (v0.2.3)#8
Conversation
…ault (v0.2.3) CLI agents moved on; two adapters were calling removed flags: - Codex: codex --quiet --auto-edit → codex exec --skip-git-repo-check --sandbox workspace-write (non-interactive is now 'codex exec'; old flags removed upstream; workspace isn't a git repo) - OpenCode: opencode -p → opencode run (top-level -p no longer supported upstream) Verified claude-code (claude -p) and hermes (hermes chat -q) are still current; claw-code mirrors Claude Code. Also bump default proposer model claude-sonnet-4-20250514 → claude-sonnet-4-6 (api/openai backends). Docs + CHANGELOG synced, version 0.2.3. 206 tests, lint clean.
Verified against current Claude Code (May 2026): - Add --permission-mode acceptEdits — REQUIRED for the agent to write candidate files in headless -p mode; recent Claude Code blocks edits without it. Still gates arbitrary Bash/network (least-privilege for the isolated workspace). - Pin --model claude-opus-4-7 (highest-capability Proposer). - Drop --verbose (noise in print mode; not needed). claude -p / --output-format text confirmed still current.
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
The supported agent CLIs have iterated quickly, and several adapters were
calling flags that no longer exist (or were missing flags now required). This
PR re-verifies every CLI adapter against the agents' current docs and fixes the
broken ones, plus refreshes the default model. Coupling is small by design — only
the thin adapter layer (
build_command) and model defaults change; the coreengine and the
api/openai/localbackends are untouched.Adapter changes
codex --quiet --auto-edit <p>codex exec --skip-git-repo-check --sandbox workspace-write <p>codex exec; old flags removed upstream.--skip-git-repo-checkbecause the workspace isn't--sandbox workspace-writelets it edit within the workspace.opencode -p <p>opencode run <p>-pis no longer supported upstream (therunclaude -p <p> --output-format text --verbose--model claude-opus-4-7
-p--permission-mode acceptEdits, so the Proposer couldn't writeharness.py. Also pins Opus 4.7 and--verbose.--permission-mode acceptEditsauto-approves Read/Edit/Write but still gatesarbitrary Bash/network — least-privilege, appropriate for the isolated workspace.
Verified unchanged
hermes chat -q) and Claude Code-p/--output-format textconfirmed current.break it — to be audited separately).
Other changes
claude-sonnet-4-20250514→claude-sonnet-4-6(affectsapi/openai; CLI backends use theirown model).
Testing
ruff check src/ tests/— cleanpytest tests/— 206 passed--quiet/-p/--verbosemust NOT reappear;
codex exec,opencode run,--permission-mode acceptEdits,--model claude-opus-4-7must bepresent).