chore(presets): switch hands-off agent presets to upstream auto modes#172
Merged
chore(presets): switch hands-off agent presets to upstream auto modes#172
Conversation
Replace --yolo on the Codex (YOLO) preset with --full-auto, and --dangerously-skip-permissions on the Claude Code (Auto) preset with --permission-mode auto. Both upstream CLIs now ship genuine auto modes with guardrails: Codex --full-auto sets --ask-for-approval on-request and --sandbox workspace-write, and Claude --permission-mode auto routes each action through a separate classifier model. Add migrate_v6_to_v7 that rewrites only presets whose args still match the v6 defaults exactly, so customised presets are left untouched.
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
--full-autoinstead of--yolo. Codex's--full-autosets--ask-for-approval on-requestand--sandbox workspace-write, so the agent edits and runs commands inside the working directory but pauses before reaching the network or files outside scope. (Codex CLI reference)--permission-mode autoinstead of--dangerously-skip-permissions. Released 2026-03-24 (requires Claude Code v2.1.83+), this routes each action through a separate classifier model rather than skipping permission checks entirely. (Claude Code permission modes)migrate_v6_to_v7. The migration only rewrites presets whose args still match the v6 defaults exactly, so any user customisation is preserved. BumpsCURRENT_CONFIG_VERSIONto 7.Preset names and aliases (
Codex (YOLO)/cxy,Claude Code (Auto)/cca) are intentionally unchanged.Test plan
cargo fmt --all./scripts/check-maintainability.shRUSTFLAGS="-D warnings" cargo test --workspace(252 passed)migrate_if_neededcodex --full-auto --no-alt-screenand "Claude Code (Auto)" runsclaude --permission-mode auto