Skip to content

Latest commit

 

History

History
434 lines (323 loc) · 13 KB

File metadata and controls

434 lines (323 loc) · 13 KB

CLI Reference

Overview

vibecoding [flags] [message...]

Command Line Arguments

Basic Parameters

Parameter Short Default Description
--provider -p Default from config file LLM provider (deepseek-openai, deepseek-anthropic or custom name)
--model -m Default from config file Model ID
--mode -M agent Run mode (plan, agent, yolo)
--thinking -t off Thinking level (off, minimal, low, medium, high, xhigh)
--multi-agent - false Enable multi-agent tools and commands
--delegate - false Enable delegation mode (blocking single sub-agent tool)
--workflows - false Enable Elisp workflow tools and /workflows commands

Session Management

Parameter Short Description
--continue -c Continue most recent session
--resume -r Resume session by ID or path
--session - Use specific session ID or .db handle file

Output Control

Parameter Short Description
--print -P Non-interactive mode, print response and exit. If a tool would require approval, the command exits with an error instead of auto-approving.
--verbose - Verbose output
--debug - Enable debug logging (also enables provider request/response debug output)

Security

Parameter Description
--sandbox Enable sandbox (bubblewrap)
--no-sandbox Disable sandbox (deprecated, disabled by default)

Other

Parameter Short Description
--init-gateway - Create gateway.json config template
--init-a2a-master-config - Create a2a-list.json config template
--enable-a2a-master - Enable A2A master mode (remote agent dispatch)
--force - Force overwrite existing files (used with --init-*)
--version -v Show version
--help -h Show help

Subcommands

acp - Agent Client Protocol Server

Run VibeCoding as an ACP-compliant stdio agent for IDE integration.

vibecoding acp [flags]

Supports VS Code, JetBrains IDEs, and any ACP-compatible editor.

Flag Short Default Description
--provider -p From config LLM provider
--model -m From config Model ID
--mode -M agent Run mode (plan, agent, yolo)
--thinking -t From config Thinking level
--sandbox - false Enable sandbox
--verbose - false Verbose output
--debug - false Debug logging
--multi-agent - false Enable multi-agent tools for ACP sessions
--delegate - false Enable delegation mode for ACP sessions
--workflows - false Enable Elisp workflow tools for ACP sessions

See the ACP Protocol documentation for IDE integration details.

a2a - A2A Protocol Server

Run the A2A (Agent-to-Agent) protocol server, supporting standalone and integrated modes.

vibecoding a2a [command]
Subcommand Description
start Start A2A server
stop Stop A2A server
status Show server status
card Show/generate Agent Card
send <message> Send task to remote A2A server
discover <url> Discover remote Agent Card
--init-a2a-config Create a2a.json config template
--force Force overwrite existing config file

See A2A Protocol documentation for details.

gateway - OpenAI-Compatible HTTP Gateway

Start VibeCoding as an HTTP server exposing a standard OpenAI Chat Completions API.

vibecoding gateway [flags]
Flag Short Default Description
--port - 8080 Listen port (overrides gateway.json)
--config - - Path to gateway.json
--work-dir - Current directory Default working directory
--provider -p From config LLM provider
--model -m From config Model ID
--sandbox - false Enable sandbox (bwrap)
--multi-agent - false Enable multi-agent tools
--delegate - false Enable delegation mode
--workflows - false Enable Elisp workflow tools
--verbose - false Verbose output
--debug - false Debug logging

See Gateway Mode documentation for details.

hermes - Messaging Gateway

Run the Hermes messaging gateway for WeChat/Feishu/WebSocket with persistent agent sessions.

vibecoding hermes [command]
Subcommand Description
start Start Hermes server
client Connect as a remote TUI client via WebSocket
--init-hermes-config Create hermes.json config template
--force Force overwrite existing config file

See Hermes Mode documentation for details.

doctor - Environment Diagnostics

Diagnose your VibeCoding environment: OS info, config files, providers, models, sandbox, MCP, and more.

vibecoding doctor

See the doctor section above for details.

systeminit - Project AGENTS.md Generator

Generate or refresh a project AGENTS.md file that documents project conventions for AI agents.

vibecoding systeminit [guidance...]

This CLI subcommand runs non-interactively. In TUI and ACP, /systeminit runs interactively and uses the question tool to ask clarifying questions before generating the file.

Argument Description
guidance... Optional trailing guidance (e.g., ask me in Chinese, write AGENTS.md in English)

Examples:

# Generate AGENTS.md with default behavior
vibecoding systeminit

# Generate with custom guidance
vibecoding systeminit ask me in Chinese, write in English

Checks performed:

  • Environment: OS/arch, Go version, shell, home/working directory
  • Configuration Files: Validates settings, gateway, and MCP config files with parse checks
  • Providers & Models: Lists configured providers with masked API keys, models with context window/max tokens/reasoning flags; verifies default provider initialization
  • Sandbox: Checks bubblewrap availability and version
  • MCP Servers: Lists configured MCP servers
  • Sessions: Shows session directory and entry count
  • Skills: Shows global and project skills directories
  • Context Files: Discovers AGENTS.md, CLAUDE.md, CURSOR.md, .cursorrules, CONVENTIONS.md
vibecoding doctor

Sample output:

  VibeCoding Doctor
  ─────────────────

  Environment
    ✅ OS / Arch — linux/amd64
    ✅ Go version — go1.24.4
    ✅ Shell — /bin/bash
    ✅ Home directory — /home/user
    ✅ Working directory — /home/user/project

  Configuration Files
    ✅ Global settings — /home/user/.vibecoding/settings.json (1.2 KB)
    ⏭️  Project settings — .vibe/settings.json (not found)
    ...

  Providers & Models
    ✅ Default provider — deepseek-openai
    ✅ Default model — deepseek-v4-flash
    ✅ Provider: deepseek-openai — api=openai-chat, base=https://api.deepseek.com, key=sk-a****xyz
    ✅   └─ deepseek-v4-flash — ctx=1M, max=384K ★ default
    ✅ Provider init — deepseek-openai/deepseek-v4-flash created successfully

  Result: All 15 checks passed

Usage Examples

Basic Usage

# Interactive mode
vibecoding

# With initial prompt
vibecoding -P "Explain this codebase"

# Non-interactive mode
vibecoding -p "Write a Hello World"

Specify Provider and Model

# Use DeepSeek (OpenAI API)
vibecoding --provider deepseek-openai --model deepseek-v4-flash

# Use DeepSeek (Anthropic API)
vibecoding -p deepseek-anthropic -m deepseek-v4-flash

# Use custom provider
vibecoding --provider my-custom-provider

Choose Mode

# Plan mode - read-only analysis
vibecoding --mode plan

# Agent mode - standard read/write (default)
vibecoding -M agent

# YOLO mode - full access
vibecoding -M yolo

Multi-Agent Mode

# Enable sub-agent tools and multi-agent commands
vibecoding --multi-agent

# ACP sessions can also opt in
vibecoding acp --multi-agent

When enabled, VibeCoding registers the subagent_* tools and exposes multi-agent workflows such as delegated background investigation. Cron command entry points also depend on multi-agent mode.

Delegate Mode

# Enable blocking single sub-agent delegation
vibecoding --delegate

# ACP sessions can also opt in
vibecoding acp --delegate

# Gateway can opt in
vibecoding gateway --delegate

Delegate mode registers the delegate_subagent tool for synchronous, blocking sub-agent delegation. Unlike multi-agent (which runs async sub-agents in parallel), delegate mode runs one sub-agent at a time and waits for completion. Use it for bounded investigation tasks where the parent only needs a summarized result.

You can toggle delegation at runtime via /delegate [on|off|status] in TUI or gateway slash commands.

Thinking Levels

# Disable thinking
vibecoding --thinking off

# Medium level
vibecoding -t medium

# Highest level
vibecoding --thinking xhigh

Session Management

# Continue most recent session
vibecoding --continue
vibecoding -c

# Resume specific session
vibecoding --resume session-abc123
vibecoding -r ~/.vibecoding/sessions/--encoded-working-directory--/20260625-120000_abcd1234.db

# Use specific session handle file
vibecoding --session ./20260625-120000_abcd1234.db

Sandbox

# Enable sandbox
vibecoding --sandbox

# Disable sandbox (default)
vibecoding

Pipe Input

# Read from stdin
echo "Explain this code" | vibecoding -P

# Read from file contents directly
vibecoding -p "Explain this file: main.go"

ACP Server

# Start ACP server (for IDE integration)
vibecoding acp

# ACP with specific model
vibecoding acp --provider deepseek-openai --model deepseek-v4-flash

# ACP with sandbox
vibecoding acp --sandbox --mode agent

Interactive Commands

Commands available during interactive sessions:

Mode & Model

Command Description
/mode [plan|agent|yolo] Switch or show current mode
/model [model_id] Switch or show current model
/think Cycle thinking level
/compact Trigger context compaction
/delegate [on|off|status] Toggle or show delegate mode
/systeminit [guidance] Generate or refresh project AGENTS.md
/reload Restart with a fresh session (TUI)
/btw <question> Ask a side question without interrupting main task
/alloweditpath [add <glob>|remove <glob>|clear] Manage auto-edit path whitelist
/allowautoedit [on|off] [global] Toggle full auto-edit in agent mode
/agent list List sub-agents in multi-agent mode
/agent switch <id> Switch the active sub-agent
/agent destroy <id> Destroy a sub-agent

Session Management

Command Description
/sessions List sessions for current project
/sessions ls List all sessions across all projects
/sessions set <id> Switch to a session by ID prefix
/sessions clear Create a new fresh session
/sessions del <id> Delete a session by ID prefix
/clear Clear conversation

Skills

Command Description
/skills List available skills
/skill <name> Activate a skill by name
/skill:<name> Activate a skill (alternative syntax)

General

Command Description
/help Show help
/quit Exit

Keyboard Shortcuts

Shortcut Function
Enter Submit the current prompt
Alt+Enter / Ctrl+J Insert a newline in the prompt editor
Tab Cycle mode (planagentyolo)
Esc Abort current operation, approval, or question prompt
Ctrl+O Open latest tool/details modal; press again, Esc, or q to close
Ctrl+G Toggle compact tool display mode
Up / Down Move within multiline input; browse prompt history at the first/last input line; scroll tool details when the modal is open
PgUp / PgDn Page through tool details when the modal is open
Home / End Move to the start/end of the current input line; jump to top/bottom when the tool modal is open

Environment Variables

Default settings can be overridden via environment variables:

Variable Description
DEEPSEEK_API_KEY DeepSeek API key
VIBECODING_DIR Override config directory
VIBECODING_PROVIDER Override default provider
VIBECODING_MODEL Override default model
VIBECODING_MODE Override default mode
VIBECODING_THINKING Override default thinking level
VIBECODING_USER_AGENT Custom User-Agent string

Exit Codes

Code Description
0 Success
1 General error
2 Usage error
130 User interrupt (Ctrl+C)