Skip to content

chore(presets): switch hands-off agent presets to upstream auto modes#172

Merged
peters merged 1 commit intomainfrom
chore/presets-auto-mode
Apr 27, 2026
Merged

chore(presets): switch hands-off agent presets to upstream auto modes#172
peters merged 1 commit intomainfrom
chore/presets-auto-mode

Conversation

@peters
Copy link
Copy Markdown
Owner

@peters peters commented Apr 27, 2026

Summary

  • Codex (YOLO) now launches with --full-auto instead of --yolo. Codex's --full-auto sets --ask-for-approval on-request and --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)
  • Claude Code (Auto) now launches with --permission-mode auto instead 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)
  • Adds migrate_v6_to_v7. The migration only rewrites presets whose args still match the v6 defaults exactly, so any user customisation is preserved. Bumps CURRENT_CONFIG_VERSION to 7.

Preset names and aliases (Codex (YOLO) / cxy, Claude Code (Auto) / cca) are intentionally unchanged.

Test plan

  • cargo fmt --all
  • ./scripts/check-maintainability.sh
  • RUSTFLAGS="-D warnings" cargo test --workspace (252 passed)
  • New tests cover: default-args yolo presets get rewritten, customised presets are preserved, version bumps from 6 to 7 via migrate_if_needed
  • Manual: launch Horizon, verify "Codex (YOLO)" runs codex --full-auto --no-alt-screen and "Claude Code (Auto)" runs claude --permission-mode auto
  • Manual: open an existing v6 config, verify the migration rewrites the two presets in place and bumps to v7

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.
@peters peters merged commit eff9335 into main Apr 27, 2026
13 checks passed
@peters peters deleted the chore/presets-auto-mode branch April 27, 2026 11:57
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