All articles
Tonis Tiganik---7 min read

Auto-Yes for Claude Code, Codex, and OpenCode (From Your Phone)

Auto-approve Claude Code, Codex, and OpenCode prompts per tmux pane. Toggle auto-yes from iOS, web, desktop, tmux, or cwtctl without changing every agent.

Introduction

ClawTab auto-yes watches AI coding agents in tmux and answers affirmative permission prompts for the panes you choose. It now handles Claude Code, Codex, and OpenCode. Enable it from iOS, the web remote, the desktop app, tmux, or cwtctl, then disable it without restarting the agent.

The scope is one tmux pane. You can auto-approve a routine Codex migration while a Claude Code security review and an exploratory OpenCode session continue to ask. The agent stays in its native terminal, and the ClawTab daemon keeps monitoring even when the desktop window is closed.

ClawTab desktop app showing per-pane auto-yes active
Auto-yes is scoped to a pane, so other agents can keep their normal approval policy.

The Problem: Permission Prompts Stall Your Agents

Claude Code, Codex, and OpenCode ask before actions outside their current permission policy. These are useful guardrails. But during a well-scoped refactor or a batch of agents across several panes, a pending prompt can leave the process idle until you answer it.

If you're at your desk, it's a minor interruption. If you stepped away, it means you come back to an agent that's been sitting idle for 20 minutes waiting for you to press "1" for Yes.

Claude Code includes acceptEdits, dontAsk, Auto Mode, and bypassPermissions. Codex and OpenCode have their own approval policies. Those settings live inside each agent. ClawTab takes a separate approach: it operates at the tmux layer, so one remote toggle can apply narrowly to a pane without changing the configuration of every provider.

Auto-yes is useful for trusted, repetitive tasks. It is not a safety classifier and does not inspect whether the command is wise. Keep it off when a task is exploratory, destructive, or connected to production.

How It Works

When you enable auto-yes, the ClawTab daemon watches that pane more frequently and combines terminal parsing with agent activity hooks. When it detects a permission prompt, it does two things:

  1. Scores affirmative choices such as Yes, Approve, Allow, or Proceed. It prefers a session-scoped or one-time approval and penalizes permanent choices such as Always or Don't ask again.
  2. Sends the selected key or TUI click to that exact tmux pane, just as if you answered in the terminal.

The same parser powers remote notification cards. Claude Code and Codex expose numbered choices, while OpenCode uses selectable TUI buttons. ClawTab handles both input styles without requiring a provider plugin.

Each detected question receives a stable ID based on its pane and options. ClawTab avoids repeatedly answering the same screen, but retries after several checks if the prompt is still present. When the prompt disappears, the pane is ready for the next question.

One Policy Layer Across Three Agents

The July 2026 implementation is provider-aware:

AgentTypical affirmative choicesWhat auto-yes prefers
Claude CodeYes; Yes, during this sessionThe session-scoped choice
CodexYes, proceed; approve once; always allowThe one-time approval
OpenCodeAllow once; allow always; rejectAllow once

This does not make the three permission systems identical. It gives them one operational control: whether ClawTab should answer an affirmative prompt in this pane. Provider rules, sandboxes, and protected paths still apply underneath.

Two tmux panes showing ClawTab auto-yes enabled in one pane and disabled in the other
The tmux border shows [Y] for the pane with auto-yes enabled and [y] for the pane still asking manually.

Enabling Auto-Yes From Your Phone

The most common way to enable auto-yes is from the mobile app. When an agent asks a question and you get the notification card, you'll see option buttons at the bottom of the screen - the detected choices from the terminal prompt, plus a "Yes all" button.

Tapping "Yes all" does two things immediately:

  • Answers the current question with "Yes"
  • Enables auto-yes for that pane going forward

A confirmation dialog explains what's about to happen: future prompts with a recognized affirmative option in that pane will be accepted until you disable it.

Once enabled, you'll see a banner at the top of the jobs list showing which panes have auto-yes active, along with a "Disable" button for each one. The banner persists across app restarts and reconnections - the relay server caches the auto-yes state and replays it when your phone reconnects.

You don't need the desktop window open. The daemon owns question detection, relay state, and auto-yes, while the phone is another client for the same tmux workspace.

ClawTab iOS showing a Codex permission question with one-time, persistent, reject, and Yes all actions
A current Codex prompt on iOS. ClawTab exposes the original choices and a separate per-pane 'Yes all' action.

The Auto-Yes Banner

When auto-yes is active, a prominent banner appears at the top of the jobs list - both on mobile and on the desktop app. The banner shows the pane path (like "~/workspace") and a "Disable" button.

This serves as a persistent reminder that auto-approval is active. You won't forget it's running because it's always visible at the top of the screen.

Tapping "Disable" turns auto-yes off immediately. The next permission prompt will wait for your manual approval as usual.

ClawTab jobs list showing the auto-yes banner at the top
The auto-yes banner at the top of the jobs list shows which panes are in auto-accept mode

Cross-Device Sync

Auto-yes state syncs between the daemon and all connected desktop or mobile clients through the relay server. Enable it from your phone, and the daemon starts auto-accepting on the next check. Disable it from the desktop UI, and the banner disappears on your phone.

The relay caches the current auto-yes state per user. When a mobile device reconnects (after a network drop, app restart, or switching devices), the relay replays the cached state so the UI stays accurate without needing to wait for the desktop to re-broadcast.

This also works with workspace sharing. If a colleague has shared access to your workspace, they can see which panes have auto-yes enabled and can disable it if needed.

Push Notification Suppression

When auto-yes is active for a pane, ClawTab suppresses push notifications for questions from that pane. There's no point buzzing your phone about a prompt that's going to be auto-accepted in half a second.

You still get push notifications for other events - job completion, failures, and questions from panes that don't have auto-yes enabled. Only the permission-prompt notifications are filtered out.

How ClawTab Compares to Agent Permission Modes

Permission modes and auto-yes control different layers:

ApproachDecision pointGood fitMain risk or limit
Provider allow rulesBefore the promptKnown commands and durable team policyConfiguration differs by provider
Claude Code Auto ModeClassifier checks each actionLong Claude tasks with fewer promptsResearch preview with plan, model, and provider requirements
bypassPermissionsNo permission promptDisposable containers or VMsRemoves most approval protection
ClawTab auto-yesAfter a prompt appears in tmuxTrusted local work across Claude Code, Codex, and OpenCodeAccepts an affirmative option without judging the action

Start with provider allow rules for predictable commands. Use Auto Mode when its classifier matches the Claude workflow. Use ClawTab auto-yes when you need one per-pane switch across local agents, schedules, and remote clients.

ClawTab Auto-Yes vs Claude Code Auto Mode

Claude Code Auto Mode uses a separate classifier to review actions before execution and block work that exceeds the request or touches untrusted infrastructure. Anthropic describes it as a research preview, not a replacement for review on sensitive operations.

However, auto mode and ClawTab auto-yes solve the same problem from different angles. Here's how they compare:

FeatureClaude Code Auto ModeClawTab Auto-Yes
Approval methodAI safety classifier pre-screens actionsAccepts affirmative prompts and prefers session or one-time scope
GranularityPer-session (all or nothing)Per-pane (different policy per agent)
Remote controlRemote Control can display the mode and route prompts, but cannot select Auto from mobileToggle from phone, web, desktop, tmux, or CLI
Toggle without restartingShift+Tab to cycle modesOne tap from any device
Plan requirementMax, Team, Enterprise, or API; not ProClawTab is free and open source
Model/provider requirementSupported Claude 4.6/4.7 models through Anthropic API; not Bedrock, Vertex, or FoundryClaude Code, Codex, or OpenCode prompt detected in tmux
Works with scheduled jobsYes when the scheduled Claude session can use Auto ModeYes, with ClawTab cron and saved per-job auto-yes
Multi-agent useConfigured per Claude sessionIndependent per pane across providers

Use Auto Mode when you want action-level screening inside Claude Code. Use ClawTab auto-yes for background automation across providers, or when a trusted pane needs a switch you can change remotely.

You can monitor a Claude session in Auto Mode through ClawTab without enabling auto-yes. If Auto Mode blocks an action, review why it was blocked instead of treating auto-yes as a way to defeat the classifier.

Safety Properties

Auto-yes is designed with a few deliberate constraints:

  • Per-pane scope - auto-yes is enabled per tmux pane, not globally. You can auto-approve one agent while keeping manual approval on another.
  • Narrow approvals preferred - ClawTab prefers "during this session" or "once" over permanent allowlist entries.
  • Only affirmative prompts - auto-yes looks for choices beginning with Yes, Allow, Approve, Proceed, Confirm, OK, or Okay. It won't answer freeform questions or unrelated multiple-choice decisions.
  • Explicit opt-in - you must tap the button and confirm the dialog. It never enables itself.
  • Visible state - the banner is always visible when auto-yes is active, on both mobile and desktop.
  • Instant disable - one tap to turn it off, effective immediately.

Auto-yes is a power-user feature. It trades manual approval for uninterrupted agent progress. Use it when you trust the task - a well-scoped refactoring job, a migration you've tested, a code review pass. Disable it when precision matters.

When to Use Auto-Yes

Batch migrations. You're running agents across 15 repositories to update an import path. Each agent will ask to write files dozens of times. Enable auto-yes and let them run.

Overnight jobs. You kick off a big refactoring agent before bed. Enable auto-yes so it doesn't stall at 2am waiting for you to approve a file write.

Multi-agent swarms. You have Claude Code, Codex, and OpenCode running across tmux panes. Enable auto-yes on the agents doing well-defined work and keep manual approval on exploratory panes.

CI-like workflows. You're using cron jobs to run recurring agents. Auto-yes lets them complete end-to-end without human intervention.

Toggling Auto-Yes From tmux

If you live in the terminal, the ClawTab tmux plugin gives you a keybinding to toggle auto-yes without reaching for the GUI or your phone.

Press prefix + y to toggle auto-yes on the current agent pane. The pane border shows the state: [Y] in green when enabled, [y] in dim gray when disabled.

You can also toggle it from the popup menu (prefix + E, Shortcuts tab), which shows the current ON/OFF status next to the option.

Setup takes one line in your .tmux.conf:

run-shell /path/to/tmux-clawtab/clawtab.tmux

See the tmux integration guide for the full feature set including session forking, secret injection, and skill search.

Toggling Auto-Yes From cwtctl

The headless control path is useful over SSH or in scripts. Run cwtctl agent auto-yes toggle %16 with the target tmux pane ID. The daemon updates desktop, remote, and tmux clients from the same state.

Use cwtctl jobs or tmux list-panes -a -F '#{pane_id} #{pane_current_command} #{pane_current_path}' to resolve the pane before toggling it. Pane-level targeting is the safety boundary, so do not guess the ID.

Frequently Asked Questions

Auto-yes mode automatically accepts affirmative permission prompts for a specific Claude Code, Codex, or OpenCode tmux pane. ClawTab prefers session-scoped or one-time choices over permanent allowlist entries, then sends the selected key or TUI click to that pane.

Open the ClawTab mobile app or remote.clawtab.cc. When an agent asks a permission question, tap the 'Yes all' button alongside the detected options. This answers the current question and enables auto-yes for future affirmative prompts in that pane. You can also use the desktop app, prefix+y in tmux, or cwtctl.

Auto-yes is scoped per pane, prefers session or one-time approvals, ignores freeform questions, requires explicit opt-in, and stays visible while enabled. It still accepts an affirmative option without judging whether the underlying action is safe, so use it only for trusted, well-scoped work.

Tap the 'Disable' button on the auto-yes banner that appears at the top of the jobs list. This works from both the mobile app and the desktop app. The disable takes effect immediately - the next permission prompt will wait for your manual approval.

Yes. Auto-yes state syncs between your desktop and all connected mobile devices through the relay server. Enable it from your phone and the desktop starts auto-accepting. Disable it from the desktop and the mobile banner disappears. The state persists across reconnections.

Yes. ClawTab lets you tap 'Yes all' on a permission prompt notification from your phone. This approves the current prompt and enables auto-yes for future affirmative prompts in that tmux pane. You can disable it from the jobs-list banner at any time.

Yes. ClawTab detects Claude Code and Codex numbered permission choices as well as OpenCode selectable TUI buttons. For Codex and OpenCode it prefers one-time approval options over permanent allow entries.

Yes. When auto-yes is active for a pane, ClawTab stops sending push notifications for permission prompts from that pane. You still receive notifications for job completions, failures, and questions from other panes that don't have auto-yes enabled.

Claude Code's --dangerously-skip-permissions flag disables all permission checks globally for the entire session. ClawTab's auto-yes is more granular: it works per-pane (so different agents can have different policies), it prefers session-scoped permissions over permanent ones, it can be enabled and disabled remotely from your phone, and it only auto-accepts prompts that match 'Yes' patterns rather than suppressing all safety checks.

Claude Code Auto Mode uses a classifier to screen actions before execution. It is a research preview available on eligible Max, Team, Enterprise, and API accounts with supported Claude models through Anthropic's API. ClawTab auto-yes acts after a prompt appears, works per tmux pane across Claude Code, Codex, and OpenCode, and can be toggled remotely.

Claude Code Auto Mode is Anthropic's built-in research-preview permission mode. A separate classifier checks whether each action stays within the user's request and configured infrastructure boundaries. Availability depends on plan, model, organization policy, and use of Anthropic's API.

Related Articles

Claude Code Auto Mode vs Auto-Yes: Which Permission System Should You Use?
-8 min read

Claude Code Auto Mode vs Auto-Yes: Which Permission System Should You Use?

Claude Code auto mode (Team plan, AI safety classifier) vs ClawTab auto-yes (free, per-pane, phone-controlled). Both let AI agents run unattended — but they work differently. Here's when to use each and how to combine them.

auto-modeauto-yespermissionsautomationclaude-codecomparison
Claude Code on Your Phone: Remote Control AI Agents From iOS, Android, or Browser
-6 min read

Claude Code on Your Phone: Remote Control AI Agents From iOS, Android, or Browser

Run Claude Code on your Mac and answer agent questions from your phone. Live log streaming, push notifications, permission prompt detection, and multi-viewer support - works with iOS, Android, and any browser via ClawTab Remote. A practical alternative to Claude Code's built-in Remote Control.

remotemobileagents
Claude Code Multi-Agent Swarm in tmux: Run 10+ Parallel Agents With ClawTab
-6 min read

Claude Code Multi-Agent Swarm in tmux: Run 10+ Parallel Agents With ClawTab

Run 10+ Claude Code agents in parallel tmux panes - each with its own prompt, auto-yes policy, secrets, and remote phone monitoring. How ClawTab multi-agent orchestration compares to Claude Code Agent Teams for background automation and scheduled swarms.

agentstmuxparallel
Claude Code Cron Jobs: Schedule Persistent AI Agents That Survive Reboots
-7 min read

Claude Code Cron Jobs: Schedule Persistent AI Agents That Survive Reboots

Set up Claude Code agents on a cron schedule that keeps running even after a reboot. ClawTab injects Keychain secrets, auto-approves permission prompts, and pushes alerts to your phone — compare with Claude Code /schedule and /loop.

cronautomationscheduling