Skip to content

docs: Add AI CLI YOLO/auto mode configuration guide#582

Open
bladealex9848 wants to merge 1 commit into
davila7:mainfrom
bladealex9848:feat/cli-yolo-auto-modes-guide
Open

docs: Add AI CLI YOLO/auto mode configuration guide#582
bladealex9848 wants to merge 1 commit into
davila7:mainfrom
bladealex9848:feat/cli-yolo-auto-modes-guide

Conversation

@bladealex9848

@bladealex9848 bladealex9848 commented May 13, 2026

Copy link
Copy Markdown

Summary

  • Added comprehensive guide for configuring auto-approval (YOLO) mode across 6 AI coding CLIs: Claude Code, Kimi, Codex (OpenAI), Vibe (Mistral), Abacus AI, and OpenCode
  • Added a setup script (scripts/configure-yolo-modes.sh) that automatically configures YOLO mode for all installed CLIs
  • Covers CLI flags, persistent config settings, permission mode values, and security considerations

Details

Each CLI has a different mechanism for YOLO/auto mode:

  • Kimi: --yolo flag or default_yolo = true in config
  • Codex: approval_policy = "never" + sandbox_mode = "danger-full-access" in config
  • Vibe: --agent auto-approve or default_agent = "auto-approve" in config
  • Abacus: --permission-mode yolo flag or shell alias
  • OpenCode: "permission": "allow" in config or --dangerously-skip-permissions for run subcommand

Test plan

  • Verified Kimi config at ~/.kimi/config.toml has default_yolo = true
  • Verified Codex config at ~/.codex/config.toml has YOLO settings
  • Verified Vibe config at ~/.vibe/config.toml has default_agent = "auto-approve"
  • Verified Abacus alias in ~/.zshrc has --permission-mode yolo
  • Verified OpenCode config at ~/.config/opencode/opencode.json has "permission": "allow"
  • Script configure-yolo-modes.sh tested with --dry-run

🤖 Generated with Claude Code


Summary by cubic

Adds a new guide for enabling YOLO/auto-approval across six coding CLIs and a helper script to auto-configure them. Improves setup clarity and speeds up unattended runs.

  • New Features
    • Website (docs/): Added docs/guides/cli-yolo-auto-modes.md covering flags, config paths, modes, and safety for Claude Code, Kimi, Codex (OpenAI), Vibe (Mistral), Abacus AI, and OpenCode.
    • CLI: Added scripts/configure-yolo-modes.sh to set YOLO defaults (supports --dry-run; updates configs and shell aliases).
    • No new components; no docs/components.json regeneration needed.
    • No new project env vars or secrets required (docs note optional per-tool vars like VIBE_BYPASS_TOOL_PERMISSIONS and OPENCODE_PERMISSION).

Written for commit 1432029. Summary will update on new commits.

…ing agents

Comprehensive guide covering auto-approval modes for Claude Code, Kimi,
Codex (OpenAI), Vibe (Mistral), Abacus AI, and OpenCode. Includes
config file settings, CLI flags, permission modes, and a setup script.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

@bladealex9848 is attempting to deploy a commit to the Daniel Avila's projects Team on Vercel.

A member of the Team first needs to authorize it.

@cubic-dev-ai cubic-dev-ai Bot 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.

2 issues found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="scripts/configure-yolo-modes.sh">

<violation number="1" location="scripts/configure-yolo-modes.sh:27">
P2: Kimi and OpenCode state-detection checks only verify key presence, not the required YOLO value — inconsistent with other tools in the same script</violation>

<violation number="2" location="scripts/configure-yolo-modes.sh:54">
P1: Uses BSD/macOS-specific `sed -i ''` syntax that fails on GNU/Linux systems; with `set -euo pipefail`, the script aborts on the first edit attempt</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

if $DRY_RUN; then
log "Codex: Would set approval_policy=never and sandbox_mode=danger-full-access"
else
sed -i '' 's/^approval_policy = .*/approval_policy = "never"/' "$config"

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.

P1: Uses BSD/macOS-specific sed -i '' syntax that fails on GNU/Linux systems; with set -euo pipefail, the script aborts on the first edit attempt

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/configure-yolo-modes.sh, line 54:

<comment>Uses BSD/macOS-specific `sed -i ''` syntax that fails on GNU/Linux systems; with `set -euo pipefail`, the script aborts on the first edit attempt</comment>

<file context>
@@ -0,0 +1,147 @@
+        if $DRY_RUN; then
+            log "Codex: Would set approval_policy=never and sandbox_mode=danger-full-access"
+        else
+            sed -i '' 's/^approval_policy = .*/approval_policy = "never"/' "$config"
+            sed -i '' 's/^sandbox_mode = .*/sandbox_mode = "danger-full-access"/' "$config"
+            log "Codex: Configured YOLO mode"
</file context>
Suggested change
sed -i '' 's/^approval_policy = .*/approval_policy = "never"/' "$config"
sed -i -e 's/^approval_policy = .*/approval_policy = "never"/' "$config"

warn "Kimi config not found at $config"
return
fi
if grep -q "^default_yolo" "$config"; then

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.

P2: Kimi and OpenCode state-detection checks only verify key presence, not the required YOLO value — inconsistent with other tools in the same script

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/configure-yolo-modes.sh, line 27:

<comment>Kimi and OpenCode state-detection checks only verify key presence, not the required YOLO value — inconsistent with other tools in the same script</comment>

<file context>
@@ -0,0 +1,147 @@
+        warn "Kimi config not found at $config"
+        return
+    fi
+    if grep -q "^default_yolo" "$config"; then
+        log "Kimi: YOLO already configured"
+    else
</file context>

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