#compdef codewhale-tui

autoload -U is-at-least

_codewhale-tui() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'*-p+[Initial prompt to submit in the interactive TUI. Use \`exec\` for non-interactive runs]:PROMPT:_default' \
'*--prompt=[Initial prompt to submit in the interactive TUI. Use \`exec\` for non-interactive runs]:PROMPT:_default' \
'--max-subagents=[Maximum number of concurrent sub-agents (1-20)]:MAX_SUBAGENTS:_default' \
'--config=[Path to config file]:CONFIG:_files' \
'--profile=[Config profile name]:PROFILE:_default' \
'-w+[Workspace directory for file operations]:WORKSPACE:_files' \
'--workspace=[Workspace directory for file operations]:WORKSPACE:_files' \
'-r+[Resume a previous session by ID or prefix]:RESUME:_default' \
'--resume=[Resume a previous session by ID or prefix]:RESUME:_default' \
'--yolo[YOLO mode\: enable agent tools + shell execution]' \
'-v[Enable verbose logging]' \
'--verbose[Enable verbose logging]' \
'-c[Continue the most recent session in this workspace]' \
'--continue[Continue the most recent session in this workspace]' \
'--no-alt-screen[Deprecated compatibility flag; the interactive TUI always owns the alternate screen so terminal scrollback cannot hijack the viewport]' \
'(--no-mouse-capture)--mouse-capture[Enable TUI mouse capture for internal scrolling, transcript selection, and scrollbar dragging (default off on Windows)]' \
'(--mouse-capture)--no-mouse-capture[Disable TUI mouse capture so terminal-native text selection works]' \
'--skip-onboarding[Skip onboarding screens]' \
'--fresh[Start a fresh session, ignoring any crash-recovery checkpoint]' \
'--no-project-config[Skip loading project-level config from \$WORKSPACE/.codewhale/config.toml]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_codewhale-tui_commands" \
"*::: :->codewhale-tui" \
&& ret=0
    case $state in
    (codewhale-tui)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-command-$line[1]:"
        case $line[1] in
            (doctor)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--json[Emit machine-readable JSON output (skips live API connectivity check)]' \
'(--json)--context-json[Emit only the diagnostic context source map as JSON]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--mcp[Initialize MCP configuration at the configured path]' \
'--skills[Initialize skills directory and an example skill]' \
'--tools[Initialize tools directory with a self-describing example script]' \
'--plugins[Initialize plugins directory with a self-describing example]' \
'--all[Initialize MCP config, skills, tools, and plugins]' \
'--local[Create a local workspace skills directory (./skills)]' \
'--force[Overwrite existing template files]' \
'(--mcp --skills --tools --plugins --all --local --clean)--status[Print a compact, read-only status report (no network calls)]' \
'(--mcp --skills --tools --plugins --all --local --status)--clean[Remove regenerable session checkpoints (latest + offline_queue)]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':shell -- Shell to generate completions for:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(sessions)
_arguments "${_arguments_options[@]}" : \
'-l+[Maximum number of sessions to display]:LIMIT:_default' \
'--limit=[Maximum number of sessions to display]:LIMIT:_default' \
'-s+[Search sessions by title]:SEARCH:_default' \
'--search=[Search sessions by title]:SEARCH:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(login)
_arguments "${_arguments_options[@]}" : \
'--api-key=[API key to store (otherwise read from stdin)]:API_KEY:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(models)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--json[Print models as pretty JSON]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(speech)
_arguments "${_arguments_options[@]}" : \
'-o+[Output audio path. Defaults to speech.<format> in --output-dir, \[speech\].output_dir, or the current directory]:FILE:_files' \
'--output=[Output audio path. Defaults to speech.<format> in --output-dir, \[speech\].output_dir, or the current directory]:FILE:_files' \
'--output-dir=[Directory for the default speech.<format> output file when -o/--output is omitted]:DIR:_files' \
'--model=[TTS model. Defaults to built-in voices, or is inferred from --voice-prompt/--clone-voice]:MODEL:_default' \
'--voice=[Built-in voice ID, or a data\:audio/...;base64,... URI for voice clone]:VOICE:_default' \
'--instruction=[Natural language style instruction; not spoken verbatim]:INSTRUCTION:_default' \
'--voice-prompt=[Voice design prompt. Implies mimo-v2.5-tts-voicedesign when --model is omitted]:VOICE_PROMPT:_default' \
'--clone-voice=[MP3/WAV sample used for voice cloning. Implies mimo-v2.5-tts-voiceclone when --model is omitted]:FILE:_files' \
'--format=[Output audio format requested from the API]:FORMAT:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--json[Emit machine-readable JSON output]' \
'-h[Print help]' \
'--help[Print help]' \
':text -- Text to synthesize. This is sent as the assistant message content:_default' \
&& ret=0
;;
(tts)
_arguments "${_arguments_options[@]}" : \
'-o+[Output audio path. Defaults to speech.<format> in --output-dir, \[speech\].output_dir, or the current directory]:FILE:_files' \
'--output=[Output audio path. Defaults to speech.<format> in --output-dir, \[speech\].output_dir, or the current directory]:FILE:_files' \
'--output-dir=[Directory for the default speech.<format> output file when -o/--output is omitted]:DIR:_files' \
'--model=[TTS model. Defaults to built-in voices, or is inferred from --voice-prompt/--clone-voice]:MODEL:_default' \
'--voice=[Built-in voice ID, or a data\:audio/...;base64,... URI for voice clone]:VOICE:_default' \
'--instruction=[Natural language style instruction; not spoken verbatim]:INSTRUCTION:_default' \
'--voice-prompt=[Voice design prompt. Implies mimo-v2.5-tts-voicedesign when --model is omitted]:VOICE_PROMPT:_default' \
'--clone-voice=[MP3/WAV sample used for voice cloning. Implies mimo-v2.5-tts-voiceclone when --model is omitted]:FILE:_files' \
'--format=[Output audio format requested from the API]:FORMAT:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--json[Emit machine-readable JSON output]' \
'-h[Print help]' \
'--help[Print help]' \
':text -- Text to synthesize. This is sent as the assistant message content:_default' \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
'--model=[Override model for this run]:MODEL:_default' \
'(--session-id --continue)--resume=[Resume a previous session by ID or prefix]:SESSION_ID:_default' \
'(--resume --continue)--session-id=[Resume a previous session by ID or prefix]:SESSION_ID:_default' \
'--output-format=[Output format for exec mode]:OUTPUT_FORMAT:(text stream-json)' \
'*--allowed-tools=[Comma-separated list of tools to allow (all others denied). Lowercase catalog names\: read_file, write_file, exec_shell, grep_files, etc]:ALLOWED_TOOLS:_default' \
'*--disallowed-tools=[Comma-separated list of tools to deny (deny wins over allow)]:DISALLOWED_TOOLS:_default' \
'--max-turns=[Maximum number of model steps (tool calls) before the run ends]:MAX_TURNS:_default' \
'--append-system-prompt=[Extra text appended to the system prompt for this run]:APPEND_SYSTEM_PROMPT:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--auto[Enable tool-backed agent mode with auto-approvals]' \
'(--output-format)--json[Emit machine-readable JSON output]' \
'(--resume --session-id)--continue[Continue the most recent session for this workspace]' \
'-h[Print help]' \
'--help[Print help]' \
'*::prompt -- Prompt to send to the model:_default' \
&& ret=0
;;
(swebench)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
":: :_codewhale-tui__subcmd__swebench_commands" \
"*::: :->swebench" \
&& ret=0

    case $state in
    (swebench)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-swebench-command-$line[1]:"
        case $line[1] in
            (run)
_arguments "${_arguments_options[@]}" : \
'--instance-id=[SWE-bench instance id, e.g. django__django-12345]:ID:_default' \
'--issue-file=[File containing the issue text for this instance]:PATH:_files' \
'--predictions-path=[JSONL predictions file to create/update]:PATH:_files' \
'--model-name-or-path=[Model label written to the SWE-bench prediction row]:MODEL_NAME_OR_PATH:_default' \
'--prompt-prefix-file=[Optional prompt prefix prepended before the standard SWE-bench prompt]:PATH:_files' \
'--output-format=[Output format for the non-interactive agent run]:OUTPUT_FORMAT:(text stream-json)' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
'--instance-id=[SWE-bench instance id, e.g. django__django-12345]:ID:_default' \
'--predictions-path=[JSONL predictions file to create/update]:PATH:_files' \
'--model-name-or-path=[Model label written to the SWE-bench prediction row]:MODEL_NAME_OR_PATH:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__swebench__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-swebench-help-command-$line[1]:"
        case $line[1] in
            (run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(fleet)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
":: :_codewhale-tui__subcmd__fleet_commands" \
"*::: :->fleet" \
&& ret=0

    case $state in
    (fleet)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-fleet-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'--max-workers=[Maximum local workers to lease concurrently]:MAX_WORKERS:_default' \
'--stale-after-seconds=[Seconds without heartbeat before a running task is counted stale]:STALE_AFTER_SECONDS:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--once[Schedule once and return instead of staying in the manager loop]' \
'-h[Print help]' \
'--help[Print help]' \
':task_spec -- JSON or TOML task spec to enqueue:_files' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(inspect)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':worker_id -- Worker id printed by `codewhale fleet run`:_default' \
&& ret=0
;;
(logs)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':worker_id -- Worker id printed by `codewhale fleet run`:_default' \
&& ret=0
;;
(artifacts)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':worker_id -- Worker id printed by `codewhale fleet run`:_default' \
&& ret=0
;;
(interrupt)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':worker_id -- Worker id printed by `codewhale fleet run`:_default' \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':worker_id -- Worker id printed by `codewhale fleet run`:_default' \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--all[Confirm stopping all queued and running fleet tasks]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(alert-dry-run)
_arguments "${_arguments_options[@]}" : \
'--event=[Alert event class to render]:EVENT:(stale restart-exhausted needs-human budget-exceeded verifier-failed run-completed)' \
'--run-id=[Fleet run id]:RUN_ID:_default' \
'--worker-id=[Worker id, when the event belongs to one worker]:WORKER_ID:_default' \
'--task-id=[Task id, when the event belongs to one task]:TASK_ID:_default' \
'--reason=[Short human-readable reason for the alert]:REASON:_default' \
'--status=[Status label to include in the payload]:STATUS:_default' \
'--adapter=[Adapter payload shape to render]:ADAPTER:(slack webhook pager-duty)' \
'--slack-webhook-env=[Environment variable containing the Slack webhook URL]:SLACK_WEBHOOK_ENV:_default' \
'--webhook-url-env=[Environment variable containing the generic webhook URL]:WEBHOOK_URL_ENV:_default' \
'--webhook-secret-env=[Optional environment variable containing the generic webhook secret]:WEBHOOK_SECRET_ENV:_default' \
'--pagerduty-routing-key-env=[Environment variable containing the PagerDuty routing key]:PAGERDUTY_ROUTING_KEY_ENV:_default' \
'--pagerduty-severity=[PagerDuty severity to render]:PAGERDUTY_SEVERITY:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__fleet__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-fleet-help-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(inspect)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(artifacts)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(interrupt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(alert-dry-run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(review)
_arguments "${_arguments_options[@]}" : \
'--base=[Base ref to diff against (e.g. origin/main)]:BASE:_default' \
'--path=[Limit diff to a specific path]:PATH:_files' \
'--model=[Override model for this review]:MODEL:_default' \
'--max-chars=[Maximum diff characters to include]:MAX_CHARS:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'(--base)--staged[Review staged changes instead of the working tree]' \
'--json[Emit machine-readable JSON output]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(pr)
_arguments "${_arguments_options[@]}" : \
'-R+[Repository in \`owner/name\` form. Defaults to the current workspace'\''s \`gh\` config (i.e. the repo gh thinks you'\''re in)]:REPO:_default' \
'--repo=[Repository in \`owner/name\` form. Defaults to the current workspace'\''s \`gh\` config (i.e. the repo gh thinks you'\''re in)]:REPO:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--checkout[Skip \`gh pr checkout\` even if gh is available. By default the working tree is left as-is — checkout is opt-in via \`--checkout\` because dirty trees fail it loudly]' \
'-h[Print help]' \
'--help[Print help]' \
':number -- PR number:_default' \
&& ret=0
;;
(apply)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
'::patch_file -- Patch file to apply (defaults to stdin):_files' \
&& ret=0
;;
(eval)
_arguments "${_arguments_options[@]}" : \
'--fail-step=[Intentionally fail a specific step (list, read, search, edit, patch, shell)]:STEP:_default' \
'--shell-command=[Shell command to run during the exec step]:SHELL_COMMAND:_default' \
'--shell-expect-token=[Token that must appear in shell output for validation]:SHELL_EXPECT_TOKEN:_default' \
'--max-output-chars=[Maximum characters stored per step output summary]:MAX_OUTPUT_CHARS:_default' \
'--record=[Append one JSONL fixture line per step to \`<DIR>/<scenario>.jsonl\`. Mock LLM tests can later replay these fixtures]:DIR:_files' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--json[Emit machine-readable JSON output]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(mcp)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
":: :_codewhale-tui__subcmd__mcp_commands" \
"*::: :->mcp" \
&& ret=0

    case $state in
    (mcp)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-mcp-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--force[Overwrite an existing MCP config file]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(connect)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
'::server -- Optional server name to connect to:_default' \
&& ret=0
;;
(tools)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
'::server -- Optional server name to list tools for:_default' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'(--url)--command=[Command to launch stdio server]:COMMAND:_default' \
'(--command)--url=[URL for streamable HTTP/SSE server]:URL:_default' \
'--transport=[Explicit URL transport override. Use "sse" for legacy SSE endpoints]:TRANSPORT:_default' \
'*--arg=[Arguments for command-based servers]:ARGS:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name:_default' \
&& ret=0
;;
(enable)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name:_default' \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name:_default' \
&& ret=0
;;
(validate)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(add-self)
_arguments "${_arguments_options[@]}" : \
'--name=[Server name in mcp.json (default\: "codewhale")]:NAME:_default' \
'--workspace=[Workspace directory for the MCP server]:WORKSPACE:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__mcp__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-mcp-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(connect)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tools)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(validate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-self)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(execpolicy)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
":: :_codewhale-tui__subcmd__execpolicy_commands" \
"*::: :->execpolicy" \
&& ret=0

    case $state in
    (execpolicy)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-execpolicy-command-$line[1]:"
        case $line[1] in
            (check)
_arguments "${_arguments_options[@]}" : \
'*-r+[Paths to execpolicy rule files to evaluate (repeatable)]:PATH:_files' \
'*--rules=[Paths to execpolicy rule files to evaluate (repeatable)]:PATH:_files' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--pretty[Pretty-print the JSON output]' \
'-h[Print help]' \
'--help[Print help]' \
'*::command -- Command tokens to check against the policy:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__execpolicy__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-execpolicy-help-command-$line[1]:"
        case $line[1] in
            (check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(features)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
":: :_codewhale-tui__subcmd__features_commands" \
"*::: :->features" \
&& ret=0

    case $state in
    (features)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-features-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__features__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-features-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(sandbox)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'-h[Print help]' \
'--help[Print help]' \
":: :_codewhale-tui__subcmd__sandbox_commands" \
"*::: :->sandbox" \
&& ret=0

    case $state in
    (sandbox)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-sandbox-command-$line[1]:"
        case $line[1] in
            (run)
_arguments "${_arguments_options[@]}" : \
'--policy=[Sandbox policy (danger-full-access, read-only, external-sandbox, workspace-write)]:POLICY:_default' \
'*--writable-root=[Additional writable roots (repeatable)]:PATH:_files' \
'--cwd=[Command working directory]:CWD:_files' \
'--timeout-ms=[Timeout in milliseconds]:TIMEOUT_MS:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--network[Allow outbound network access]' \
'--exclude-tmpdir[Exclude TMPDIR from writable paths]' \
'--exclude-slash-tmp[Exclude /tmp from writable paths]' \
'-h[Print help]' \
'--help[Print help]' \
'*::command -- Command and arguments to run:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__sandbox__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-sandbox-help-command-$line[1]:"
        case $line[1] in
            (run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(serve)
_arguments "${_arguments_options[@]}" : \
'--host=[Bind host for HTTP server (default localhost; --mobile defaults to 0.0.0.0)]:HOST:_default' \
'--port=[Bind port for HTTP server]:PORT:_default' \
'--workers=[Background task worker count (1-8)]:WORKERS:_default' \
'*--cors-origin=[Additional CORS origin to allow (repeatable). Stacks on top of the built-in defaults (localhost\:3000, localhost\:1420, tauri\://localhost). Also reads \`CODEWHALE_CORS_ORIGINS\` (comma-separated), then \`DEEPSEEK_CORS_ORIGINS\` as an alias, and \`\[runtime_api\] cors_origins\` from \`config.toml\`. Whalescale#255]:URL:_default' \
'--auth-token=[Require this bearer token for \`/v1/*\` runtime API routes. Also reads \`CODEWHALE_RUNTIME_TOKEN\` when omitted, then \`DEEPSEEK_RUNTIME_TOKEN\` as an alias]:TOKEN:_default' \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'--mcp[Start MCP server over stdio]' \
'--http[Start runtime HTTP/SSE API server]' \
'--mobile[Start runtime HTTP/SSE API server with the built-in mobile control page]' \
'--qr[Show a QR code for the mobile URL in the terminal (requires --mobile)]' \
'--acp[Start ACP server over stdio for editor clients such as Zed]' \
'--insecure[Disable runtime API auth when no token is configured. Only use on a trusted loopback]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(resume)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'()--last[Continue the most recent session in this workspace without a picker]' \
'-h[Print help]' \
'--help[Print help]' \
'::session_id -- Conversation/session id (UUID or prefix):_default' \
&& ret=0
;;
(fork)
_arguments "${_arguments_options[@]}" : \
'*--enable=[Enable a feature (repeatable). Equivalent to \`features.<name>=true\`]:FEATURE:_default' \
'*--disable=[Disable a feature (repeatable). Equivalent to \`features.<name>=false\`]:FEATURE:_default' \
'()--last[Fork the most recent session in this workspace without a picker]' \
'-h[Print help]' \
'--help[Print help]' \
'::session_id -- Conversation/session id (UUID or prefix):_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-command-$line[1]:"
        case $line[1] in
            (doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sessions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(login)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(models)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(speech)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(swebench)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help__subcmd__swebench_commands" \
"*::: :->swebench" \
&& ret=0

    case $state in
    (swebench)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-swebench-command-$line[1]:"
        case $line[1] in
            (run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(fleet)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help__subcmd__fleet_commands" \
"*::: :->fleet" \
&& ret=0

    case $state in
    (fleet)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-fleet-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(inspect)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(artifacts)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(interrupt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(alert-dry-run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(review)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pr)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(apply)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(eval)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(mcp)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help__subcmd__mcp_commands" \
"*::: :->mcp" \
&& ret=0

    case $state in
    (mcp)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-mcp-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(connect)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tools)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(validate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-self)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(execpolicy)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help__subcmd__execpolicy_commands" \
"*::: :->execpolicy" \
&& ret=0

    case $state in
    (execpolicy)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-execpolicy-command-$line[1]:"
        case $line[1] in
            (check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(features)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help__subcmd__features_commands" \
"*::: :->features" \
&& ret=0

    case $state in
    (features)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-features-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(sandbox)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__subcmd__help__subcmd__sandbox_commands" \
"*::: :->sandbox" \
&& ret=0

    case $state in
    (sandbox)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:codewhale-tui-help-sandbox-command-$line[1]:"
        case $line[1] in
            (run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(serve)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(resume)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fork)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_codewhale-tui_commands] )) ||
_codewhale-tui_commands() {
    local commands; commands=(
'doctor:Run system diagnostics and check configuration' \
'setup:Bootstrap MCP config and/or skills directories' \
'completions:Generate shell completions' \
'sessions:List saved sessions' \
'init:Create default AGENTS.md in current directory' \
'login:Save an API key to the shared user config' \
'logout:Remove the saved API key' \
'models:List available models from the configured API endpoint' \
'speech:Generate speech audio with Xiaomi MiMo TTS models' \
'tts:Generate speech audio with Xiaomi MiMo TTS models' \
'exec:Run a non-interactive prompt. Use --auto for tool-backed agent mode' \
'swebench:Generate SWE-bench prediction rows from CodeWhale runs' \
'fleet:Manage local Agent Fleet runs and workers' \
'review:Run a code review over a git diff' \
'pr:Open the TUI pre-seeded with a GitHub PR'\''s title, body, and diff (#451)' \
'apply:Apply a patch file (or stdin) to the working tree' \
'eval:Run the offline evaluation harness (no network/LLM calls)' \
'mcp:Manage MCP servers' \
'execpolicy:Execpolicy tooling' \
'features:Inspect feature flags' \
'sandbox:Run a command inside the sandbox' \
'serve:Run a local server (e.g. MCP)' \
'resume:Resume a previous session by ID (use --last for most recent)' \
'fork:Fork a previous session by ID (use --last for most recent)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__apply_commands] )) ||
_codewhale-tui__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui apply commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__completions_commands] )) ||
_codewhale-tui__subcmd__completions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui completions commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__doctor_commands] )) ||
_codewhale-tui__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui doctor commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__eval_commands] )) ||
_codewhale-tui__subcmd__eval_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui eval commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__exec_commands] )) ||
_codewhale-tui__subcmd__exec_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui exec commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__execpolicy_commands] )) ||
_codewhale-tui__subcmd__execpolicy_commands() {
    local commands; commands=(
'check:Check execpolicy files against a command' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui execpolicy commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__execpolicy__subcmd__check_commands] )) ||
_codewhale-tui__subcmd__execpolicy__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui execpolicy check commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__execpolicy__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__execpolicy__subcmd__help_commands() {
    local commands; commands=(
'check:Check execpolicy files against a command' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui execpolicy help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__execpolicy__subcmd__help__subcmd__check_commands] )) ||
_codewhale-tui__subcmd__execpolicy__subcmd__help__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui execpolicy help check commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__execpolicy__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__execpolicy__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui execpolicy help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__features_commands] )) ||
_codewhale-tui__subcmd__features_commands() {
    local commands; commands=(
'list:List known feature flags and their state' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui features commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__features__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__features__subcmd__help_commands() {
    local commands; commands=(
'list:List known feature flags and their state' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui features help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__features__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__features__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui features help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__features__subcmd__help__subcmd__list_commands] )) ||
_codewhale-tui__subcmd__features__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui features help list commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__features__subcmd__list_commands] )) ||
_codewhale-tui__subcmd__features__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui features list commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet_commands] )) ||
_codewhale-tui__subcmd__fleet_commands() {
    local commands; commands=(
'init:Initialize the local fleet ledger for this workspace' \
'run:Create a run from a task spec and start the foreground manager loop' \
'status:Show queued/running/completed/failed/stale fleet counts' \
'inspect:Inspect one worker'\''s status, heartbeat, latest event, and artifacts' \
'logs:Print bounded log artifacts for one worker' \
'artifacts:List artifact refs for one worker' \
'interrupt:Interrupt a running worker task and record a terminal cancellation' \
'restart:Restart the latest task for a worker' \
'stop:Stop all queued and running fleet work' \
'alert-dry-run:Render a redacted fleet alert payload without sending it' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui fleet commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__alert-dry-run_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__alert-dry-run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet alert-dry-run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__artifacts_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__artifacts_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet artifacts commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help_commands() {
    local commands; commands=(
'init:Initialize the local fleet ledger for this workspace' \
'run:Create a run from a task spec and start the foreground manager loop' \
'status:Show queued/running/completed/failed/stale fleet counts' \
'inspect:Inspect one worker'\''s status, heartbeat, latest event, and artifacts' \
'logs:Print bounded log artifacts for one worker' \
'artifacts:List artifact refs for one worker' \
'interrupt:Interrupt a running worker task and record a terminal cancellation' \
'restart:Restart the latest task for a worker' \
'stop:Stop all queued and running fleet work' \
'alert-dry-run:Render a redacted fleet alert payload without sending it' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui fleet help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__alert-dry-run_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__alert-dry-run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help alert-dry-run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__artifacts_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__artifacts_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help artifacts commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__inspect_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__inspect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help inspect commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__interrupt_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__interrupt_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help interrupt commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__logs_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__logs_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help logs commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__restart_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__restart_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help restart commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__status_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help status commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__stop_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__help__subcmd__stop_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet help stop commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__inspect_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__inspect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet inspect commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__interrupt_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__interrupt_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet interrupt commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__logs_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__logs_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet logs commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__restart_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__restart_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet restart commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__status_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet status commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fleet__subcmd__stop_commands] )) ||
_codewhale-tui__subcmd__fleet__subcmd__stop_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fleet stop commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__fork_commands] )) ||
_codewhale-tui__subcmd__fork_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fork commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__help_commands() {
    local commands; commands=(
'doctor:Run system diagnostics and check configuration' \
'setup:Bootstrap MCP config and/or skills directories' \
'completions:Generate shell completions' \
'sessions:List saved sessions' \
'init:Create default AGENTS.md in current directory' \
'login:Save an API key to the shared user config' \
'logout:Remove the saved API key' \
'models:List available models from the configured API endpoint' \
'speech:Generate speech audio with Xiaomi MiMo TTS models' \
'exec:Run a non-interactive prompt. Use --auto for tool-backed agent mode' \
'swebench:Generate SWE-bench prediction rows from CodeWhale runs' \
'fleet:Manage local Agent Fleet runs and workers' \
'review:Run a code review over a git diff' \
'pr:Open the TUI pre-seeded with a GitHub PR'\''s title, body, and diff (#451)' \
'apply:Apply a patch file (or stdin) to the working tree' \
'eval:Run the offline evaluation harness (no network/LLM calls)' \
'mcp:Manage MCP servers' \
'execpolicy:Execpolicy tooling' \
'features:Inspect feature flags' \
'sandbox:Run a command inside the sandbox' \
'serve:Run a local server (e.g. MCP)' \
'resume:Resume a previous session by ID (use --last for most recent)' \
'fork:Fork a previous session by ID (use --last for most recent)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__apply_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help apply commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__completions_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__completions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help completions commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__doctor_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help doctor commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__eval_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__eval_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help eval commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__exec_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__exec_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help exec commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__execpolicy_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__execpolicy_commands() {
    local commands; commands=(
'check:Check execpolicy files against a command' \
    )
    _describe -t commands 'codewhale-tui help execpolicy commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__execpolicy__subcmd__check_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__execpolicy__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help execpolicy check commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__features_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__features_commands() {
    local commands; commands=(
'list:List known feature flags and their state' \
    )
    _describe -t commands 'codewhale-tui help features commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__features__subcmd__list_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__features__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help features list commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet_commands() {
    local commands; commands=(
'init:Initialize the local fleet ledger for this workspace' \
'run:Create a run from a task spec and start the foreground manager loop' \
'status:Show queued/running/completed/failed/stale fleet counts' \
'inspect:Inspect one worker'\''s status, heartbeat, latest event, and artifacts' \
'logs:Print bounded log artifacts for one worker' \
'artifacts:List artifact refs for one worker' \
'interrupt:Interrupt a running worker task and record a terminal cancellation' \
'restart:Restart the latest task for a worker' \
'stop:Stop all queued and running fleet work' \
'alert-dry-run:Render a redacted fleet alert payload without sending it' \
    )
    _describe -t commands 'codewhale-tui help fleet commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__alert-dry-run_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__alert-dry-run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet alert-dry-run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__artifacts_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__artifacts_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet artifacts commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__inspect_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__inspect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet inspect commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__interrupt_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__interrupt_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet interrupt commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__logs_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__logs_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet logs commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__restart_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__restart_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet restart commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__status_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet status commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__stop_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fleet__subcmd__stop_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fleet stop commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__fork_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__fork_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fork commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__login_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__login_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help login commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__logout_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__logout_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help logout commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp_commands() {
    local commands; commands=(
'list:List configured MCP servers' \
'init:Create a template MCP config at the configured path' \
'connect:Connect to MCP servers and report status' \
'tools:List tools discovered from MCP servers' \
'add:Add an MCP server entry' \
'remove:Remove an MCP server entry' \
'enable:Enable an MCP server' \
'disable:Disable an MCP server' \
'validate:Validate MCP config and required servers' \
'add-self:Register this CodeWhale binary as a local MCP stdio server' \
    )
    _describe -t commands 'codewhale-tui help mcp commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__add_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp add commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__add-self_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__add-self_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp add-self commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__connect_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__connect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp connect commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__disable_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp disable commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__enable_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp enable commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__list_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp list commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__remove_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp remove commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__tools_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__tools_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp tools commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__validate_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__mcp__subcmd__validate_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp validate commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__models_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__models_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help models commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__pr_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__pr_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help pr commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__resume_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__resume_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help resume commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__review_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__review_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help review commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__sandbox_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__sandbox_commands() {
    local commands; commands=(
'run:Run a command with sandboxing' \
    )
    _describe -t commands 'codewhale-tui help sandbox commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__sandbox__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__sandbox__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help sandbox run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__serve_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__serve_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help serve commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__sessions_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__sessions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help sessions commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__setup_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__setup_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help setup commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__speech_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__speech_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help speech commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__swebench_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__swebench_commands() {
    local commands; commands=(
'run:Run CodeWhale on one SWE-bench instance and export the resulting diff' \
'export:Export the current working-tree diff as one SWE-bench prediction row' \
    )
    _describe -t commands 'codewhale-tui help swebench commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__swebench__subcmd__export_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__swebench__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help swebench export commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__help__subcmd__swebench__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__help__subcmd__swebench__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help swebench run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__login_commands] )) ||
_codewhale-tui__subcmd__login_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui login commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__logout_commands] )) ||
_codewhale-tui__subcmd__logout_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui logout commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp_commands] )) ||
_codewhale-tui__subcmd__mcp_commands() {
    local commands; commands=(
'list:List configured MCP servers' \
'init:Create a template MCP config at the configured path' \
'connect:Connect to MCP servers and report status' \
'tools:List tools discovered from MCP servers' \
'add:Add an MCP server entry' \
'remove:Remove an MCP server entry' \
'enable:Enable an MCP server' \
'disable:Disable an MCP server' \
'validate:Validate MCP config and required servers' \
'add-self:Register this CodeWhale binary as a local MCP stdio server' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui mcp commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__add_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp add commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__add-self_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__add-self_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp add-self commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__connect_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__connect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp connect commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__disable_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp disable commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__enable_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp enable commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help_commands() {
    local commands; commands=(
'list:List configured MCP servers' \
'init:Create a template MCP config at the configured path' \
'connect:Connect to MCP servers and report status' \
'tools:List tools discovered from MCP servers' \
'add:Add an MCP server entry' \
'remove:Remove an MCP server entry' \
'enable:Enable an MCP server' \
'disable:Disable an MCP server' \
'validate:Validate MCP config and required servers' \
'add-self:Register this CodeWhale binary as a local MCP stdio server' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui mcp help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__add_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help add commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__add-self_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__add-self_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help add-self commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__connect_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__connect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help connect commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__disable_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help disable commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__enable_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help enable commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__list_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help list commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__remove_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help remove commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__tools_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__tools_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help tools commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__validate_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__help__subcmd__validate_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help validate commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__init_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp init commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__list_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp list commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__remove_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp remove commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__tools_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__tools_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp tools commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__mcp__subcmd__validate_commands] )) ||
_codewhale-tui__subcmd__mcp__subcmd__validate_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp validate commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__models_commands] )) ||
_codewhale-tui__subcmd__models_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui models commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__pr_commands] )) ||
_codewhale-tui__subcmd__pr_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui pr commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__resume_commands] )) ||
_codewhale-tui__subcmd__resume_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui resume commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__review_commands] )) ||
_codewhale-tui__subcmd__review_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui review commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__sandbox_commands] )) ||
_codewhale-tui__subcmd__sandbox_commands() {
    local commands; commands=(
'run:Run a command with sandboxing' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui sandbox commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__sandbox__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__sandbox__subcmd__help_commands() {
    local commands; commands=(
'run:Run a command with sandboxing' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui sandbox help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__sandbox__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__sandbox__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sandbox help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__sandbox__subcmd__help__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__sandbox__subcmd__help__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sandbox help run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__sandbox__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__sandbox__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sandbox run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__serve_commands] )) ||
_codewhale-tui__subcmd__serve_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui serve commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__sessions_commands] )) ||
_codewhale-tui__subcmd__sessions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sessions commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__setup_commands] )) ||
_codewhale-tui__subcmd__setup_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui setup commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__speech_commands] )) ||
_codewhale-tui__subcmd__speech_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui speech commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench_commands] )) ||
_codewhale-tui__subcmd__swebench_commands() {
    local commands; commands=(
'run:Run CodeWhale on one SWE-bench instance and export the resulting diff' \
'export:Export the current working-tree diff as one SWE-bench prediction row' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui swebench commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench__subcmd__export_commands] )) ||
_codewhale-tui__subcmd__swebench__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench export commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__swebench__subcmd__help_commands() {
    local commands; commands=(
'run:Run CodeWhale on one SWE-bench instance and export the resulting diff' \
'export:Export the current working-tree diff as one SWE-bench prediction row' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'codewhale-tui swebench help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench__subcmd__help__subcmd__export_commands] )) ||
_codewhale-tui__subcmd__swebench__subcmd__help__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench help export commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench__subcmd__help__subcmd__help_commands] )) ||
_codewhale-tui__subcmd__swebench__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench__subcmd__help__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__swebench__subcmd__help__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench help run commands' commands "$@"
}
(( $+functions[_codewhale-tui__subcmd__swebench__subcmd__run_commands] )) ||
_codewhale-tui__subcmd__swebench__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench run commands' commands "$@"
}

if [ "$funcstack[1]" = "_codewhale-tui" ]; then
    _codewhale-tui "$@"
else
    compdef _codewhale-tui codewhale-tui
fi
