Skip to content

Launch claude and codex agents with auto-review instead of full bypass - #7001

Merged
dhh merged 2 commits into
quattrofrom
agent-auto-review-modes
Aug 15, 2026
Merged

dhh merged 2 commits into
quattrofrom
agent-auto-review-modes

Conversation

@dhh

@dhh dhh commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Agents launched from the keybinding or menu still need to run unattended, but claude and codex both grew modes that do so without abandoning review entirely:

  • claude now launches with --permission-mode auto, which auto-approves through automatic review instead of bypassPermissions.
  • codex now launches with --approve-for-me, which routes approvals through automatic review inside the workspace-write sandbox, instead of --dangerously-bypass-approvals-and-sandbox — a flag codex's own help says is meant only for externally sandboxed environments.

Neither mode stops to prompt, so the fire-and-forget launch behavior is unchanged. The other agents (grok, gemini, copilot, crush, opencode, omp) only offer middle modes that still prompt a human for some calls, which would hang an unattended window, so they keep their existing yolo-style flags.

🤖 Generated with Claude Code

Claude's auto permission mode and codex's --approve-for-me both run
unattended without prompting, but keep automatic review (and codex's
workspace-write sandbox) instead of skipping approval entirely. Grok
stays on bypassPermissions.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings August 15, 2026 16:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates unattended agent launches to use safer automatic-review modes.

Changes:

  • Claude now uses --permission-mode auto.
  • Codex now uses --approve-for-me.
  • Launcher tests reflect both flags.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
bin/omarchy-agent Configures safer unattended modes for Claude and Codex.
test/shell.d/default-agent-test.sh Updates expected launch arguments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 15, 2026 16:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.

@dhh
dhh merged commit dd9dee4 into quattro Aug 15, 2026
4 checks passed
@dhh
dhh deleted the agent-auto-review-modes branch August 15, 2026 17:23
dhh added a commit that referenced this pull request Aug 23, 2026
#7001)

* Launch claude and codex agents with auto-review instead of full bypass

Claude's auto permission mode and codex's --approve-for-me both run
unattended without prompting, but keep automatic review (and codex's
workspace-write sandbox) instead of skipping approval entirely. Grok
stays on bypassPermissions.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Match the bash aliases to the agent launcher's auto-review modes

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
(cherry picked from commit dd9dee4)
@dhh dhh mentioned this pull request Aug 23, 2026
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
omacom#7001)

* Launch claude and codex agents with auto-review instead of full bypass

Claude's auto permission mode and codex's --approve-for-me both run
unattended without prompting, but keep automatic review (and codex's
workspace-write sandbox) instead of skipping approval entirely. Grok
stays on bypassPermissions.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Match the bash aliases to the agent launcher's auto-review modes

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
sogamoso added a commit to sogamoso/dotfiles that referenced this pull request Oct 14, 2026
Omarchy moved cx from bypassPermissions to Claude's auto permission mode and
added cy for Codex's --approve-for-me (omacom/omarchy#7001): both still run
without prompting, but keep automatic review, and Codex keeps its
workspace-write sandbox. The bash copy matters most, since on Omarchy it was
overriding Omarchy's own safer cx with the full bypass.
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

3 participants