Skip to content

feat: add agent auto-review mode - #8

Merged
zxch3n merged 1 commit into
mainfrom
feat/agent-auto-review-mode
Jul 17, 2026
Merged

feat: add agent auto-review mode#8
zxch3n merged 1 commit into
mainfrom
feat/agent-auto-review-mode

Conversation

@zxch3n

@zxch3n zxch3n commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

Adds a fourth ACP session mode agent-auto-review ("Agent (auto review)"), exposing Codex's "Approve for me" permission preset (approvals_reviewer = "auto_review") through the adapter.

  • src/AgentMode.ts: new AgentMode.AgentAutoReview — same workspace-write sandbox and on-request approval policy as agent, plus a new approvalsReviewer field defaulting to "user".
  • src/CodexAcpClient.ts: passes approvalsReviewer in turn/start params, so approval requests (sandbox escapes, network access, MCP prompts) are routed to Codex's auto-review subagent instead of the ACP client.
  • README.md / readme-dev.md: document the new INITIAL_AGENT_MODE id.

With this mode active, Codex reviews and approves/denies permission requests automatically with its risk-based reviewer subagent; the client no longer receives a permission prompt for each request.

Test

  • npm run typecheck clean
  • npx vitest run --exclude '**/e2e/**': 320 passed (updated the turn/start snapshot for the new approvalsReviewer field)

Model: kimi-code/k3

Adds a fourth session mode `agent-auto-review`: same workspace-write
sandbox and on-request approval policy as `agent`, but routes approval
requests to Codex's auto-review subagent (`approvalsReviewer: auto_review`)
instead of the ACP client, matching the Codex app's "Approve for me"
permission preset.

Model: kimi-code/k3
@zxch3n
zxch3n merged commit 68a0a51 into main Jul 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant