Skip to content

[FEATURE]: Documented, user-facing "full-auto" mode for unattended agents (Claude Code parity) #51399

Open

Description

@mrvigneshvt

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Closest related: #33585 (LLM command-approval classifier — a different, complementary idea). The existing --yolo and --dangerously-skip-permissions flags in tui.ts:113 / run.ts:249 already implement this internally, but they are hidden from --help and undocumented, so users don't know they exist.

Describe the enhancement you want to request

Problem

OpenCode's permission model today is per-rule binary: allow / ask / deny (packages/opencode/src/permission/index.ts:33, 75, 80, 149). For autonomous / unattended agent runs (CI jobs, cron-driven tasks, background sweeps), the "ask" branch is a deadlock — there's no human in the loop to answer. Today the only workarounds are:

Compare this to Claude Code, which exposes a clear, documented, three-tier model: default / auto / bypass permissions. Users know the modes exist and know what each one means.

Proposed enhancement

Add a first-class, documented full-auto mode with three surface-level entry points:

  1. CLI: promote --auto (already exists) out of "dangerous!" framing and document it properly in --help. Add an alias --full-auto and a config-file equivalent opencode.json key "permissions": { "mode": "full-auto" }.

  2. Desktop / Web UI: a single "Full-auto (no prompts)" option alongside the existing "Auto-accept permissions" toggle, with a clear confirmation dialog explaining what's about to be allowed. Reuse the existing command.permissions.autoaccept.* i18n slots.

  3. Scope: when full-auto is on, all tool/permission prompts are resolved to allow except any rule explicitly set to deny in config. This is exactly the semantic of the hidden --dangerously-skip-permissions flag — just promoted to a real, supported, documented surface.

Why this matters

  • Autonomous agents are a core use case for terminal-coding CLIs in 2026. Asking users to discover a hidden --yolo flag or to script around the UI toggle is hostile.
  • This is a small, well-scoped change: the underlying behavior already exists in the hidden flags. The work is mostly docs + UX surfacing.
  • Claude Code, Codex, and others already ship this. OpenCode is the odd one out for not documenting its equivalent.

Benefits

  • Unattended CI / cron workflows become viable without per-invocation workarounds.
  • Users can set the mode once in config instead of toggling per-session.
  • Reduces bug-report noise from users (like me) who hit "stuck on permission prompt" because the existing auto-approve doesn't survive a restart.

Acceptance criteria

  • --help on tui and run documents --auto without the "dangerous!" scare language.
  • opencode.json schema accepts permissions.mode: "default" | "auto" | "full-auto".
  • Desktop and Web UI expose a discoverable Full-auto toggle with confirmation.
  • When full-auto is active, deny rules in config still win (so users retain a kill-switch).
  • README and docs.opencode.ai are updated.

Activity

  1. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • #9: Proposes a full-auto permissions mode.
    • #8463: Requests the --dangerously-skip-permissions / YOLO mode that this issue proposes surfacing and documenting.
    • #1813: Requests switching between normal and auto-accept permission modes.
  2. opencodejr commented on Oct 28, 2026

    @opencodejr

    Thanks for the detailed write-up! The request is for a documented, first-class "full-auto" permission mode: a config key for the default mode, a Desktop/Web toggle with a confirmation dialog, and explicit deny rules still taking priority.

    The file paths you cite (packages/opencode/src/...) are from v1. In current v2 (@opencode/cli), some of this already exists:

    • --auto is shown in --help for both opencode and opencode run as "Auto-approve permissions that are not explicitly denied", without the "dangerous!" wording. --yolo and --dangerously-skip-permissions are hidden flags that do the same thing.
    • The Permissions docs have an Auto mode section. It says explicit "deny" rules are still enforced. It also covers the TUI command-palette toggle (Enable/Disable auto-approve permissions) and the auto indicator.
    • For CI or cron runs, opencode run --auto "..." works. You can also set it in config and keep a deny list as a safety switch:
    {
      "$schema": "https://opencode.ai/config.json",
      "permission": {
        "*": "allow",
        "bash": { "*": "allow", "rm *": "deny" }
      }
    }

    Still missing: a config key for the default mode, a Desktop/Web full-auto toggle with confirmation, and a --full-auto alias. Maintainers will consider these.

    Related issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions