feat: add "Auto" runtime mode — AI-reviewed approvals for Codex and Claude#4272
feat: add "Auto" runtime mode — AI-reviewed approvals for Codex and Claude#4272t3dotgg wants to merge 2 commits into
Conversation
…laude Adds a new "auto" RuntimeMode between auto-accept-edits and full-access. Both native agent backends recently shipped a model-reviewed approval mode that is strictly safer than full access: - Codex: keeps the workspace-write sandbox and on-request approvals but sets approvalsReviewer: "auto_review", so a reviewer subagent decides approval requests (sandbox escapes, network access) instead of the user. - Claude: passes permissionMode: "auto", where a classifier model approves/denies each permission prompt; escalations still flow through canUseTool into the existing approval UI, and classifier denials already surface via the permission_denied -> tool.denied event. Other adapters (Cursor, Grok, OpenCode) fall through to their existing non-full-access behavior for the new mode. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b742293. Configure here.
ApprovabilityVerdict: Needs human review This PR introduces a new user-facing feature ('Auto' runtime mode) that routes approval decisions to an AI reviewer instead of the user. New features with significant workflow changes warrant human review. You can customize Macroscope's approvability policy. Learn more. |
…itch thread/resume treats an omitted approvalsReviewer as "keep current", so switching a thread out of Auto would leave auto_review sticky. Send "user" explicitly for every non-auto mode. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Summary
Adds a new "auto" runtime mode between Auto-accept edits and Full access. Both native backends recently shipped a model-reviewed approval mode that is strictly safer than full access — risky actions can still be denied or escalated, and (for Codex) the sandbox stays on:
approvalPolicy: "on-request"+sandbox: workspace-write, and setsapprovalsReviewer: "auto_review"onthread/startandturn/start— a reviewer subagent decides approval requests (sandbox escapes, network access, MCP prompts) instead of routing them to the user.permissionMode: "auto"(noallowDangerouslySkipPermissions), where a classifier model approves/denies each permission prompt. Escalations still flow throughcanUseToolinto the existing approval UI; classifier denials surface via the already-handledpermission_denied→tool.deniedevent.Changes
packages/contracts: add"auto"toRuntimeModeapps/server: Codex + Claude adapter mappingsapps/web: mode picker entries (full + compact composer)apps/mobile: runtime options inThreadComposerandNewTaskDraftScreenNotes for reviewers
runtime_modeis a TEXT column with no CHECK constraint; mid-thread mode changes already restart the session viaProviderCommandReactor.approvalsReviewerexists in the generated app-server schema (effect-codex-app-server), so no regeneration was needed. Requires a codex binary recent enough to know the field (verified in 0.145.0)."auto"— same skew consideration as any enum addition.🤖 Generated with Claude Code
Note
Medium Risk
Changes approval routing and sandbox/permission semantics for agent sessions; incorrect mapping could weaken supervision or strand users on sticky reviewers after mode changes.
Overview
Adds
autoas a newRuntimeModebetween auto-accept edits and full access, exposed in web, mobile, and compact composer pickers.Codex maps
autotoon-requestapprovals withworkspace-writesandbox and setsapprovalsReviewer: auto_reviewon every thread/turn start (including non-auto modes with explicituser) so mode switches do not leave the auto reviewer sticky on resume.Claude maps
autotopermissionMode: "auto"withoutallowDangerouslySkipPermissions.Adapter tests cover the new wire params for both backends.
Reviewed by Cursor Bugbot for commit 8c2ff69. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add 'Auto' runtime mode with AI-reviewed approvals for Codex and Claude
'auto'as a validRuntimeModein orchestration.ts, wiring it through the full stack: web/mobile UI menus, Claude adapter, and Codex session runtime.runtimeMode: 'auto'maps topermissionMode: 'auto'in outgoing query options via ClaudeAdapter.ts.'auto'mode setsapprovalsReviewer: 'auto_review',approvalPolicy: 'on-request', and uses theworkspaceWritesandbox policy via CodexSessionRuntime.ts.approvalsReviewer: 'user'in thread and turn start params.Macroscope summarized 8c2ff69.