#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+[Send a one-shot prompt (non-interactive)]:PROMPT:_default' \
'*--prompt=[Send a one-shot prompt (non-interactive)]: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/.deepseek/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)]' \
'-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
;;
(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)' \
'*--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__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__swebench__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
;;
(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__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' \
'*--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__mcp__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__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__execpolicy__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__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__features__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__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__sandbox__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)]: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 \`DEEPSEEK_CORS_ORIGINS\` (comma-separated) 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 \`DEEPSEEK_RUNTIME_TOKEN\` when omitted]: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]' \
'--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__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
;;
(exec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(swebench)
_arguments "${_arguments_options[@]}" : \
":: :_codewhale-tui__help__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
;;
(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__help__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__help__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__help__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__help__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 a DeepSeek API key to the shared user config' \
'logout:Remove the saved API key' \
'models:List available models from the configured API endpoint' \
'exec:Run a non-interactive prompt. Use --auto for tool-backed agent mode' \
'swebench:Generate SWE-bench prediction rows from CodeWhale runs' \
'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__apply_commands] )) ||
_codewhale-tui__apply_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui apply commands' commands "$@"
}
(( $+functions[_codewhale-tui__completions_commands] )) ||
_codewhale-tui__completions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui completions commands' commands "$@"
}
(( $+functions[_codewhale-tui__doctor_commands] )) ||
_codewhale-tui__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui doctor commands' commands "$@"
}
(( $+functions[_codewhale-tui__eval_commands] )) ||
_codewhale-tui__eval_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui eval commands' commands "$@"
}
(( $+functions[_codewhale-tui__exec_commands] )) ||
_codewhale-tui__exec_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui exec commands' commands "$@"
}
(( $+functions[_codewhale-tui__execpolicy_commands] )) ||
_codewhale-tui__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__execpolicy__check_commands] )) ||
_codewhale-tui__execpolicy__check_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui execpolicy check commands' commands "$@"
}
(( $+functions[_codewhale-tui__execpolicy__help_commands] )) ||
_codewhale-tui__execpolicy__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__execpolicy__help__check_commands] )) ||
_codewhale-tui__execpolicy__help__check_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui execpolicy help check commands' commands "$@"
}
(( $+functions[_codewhale-tui__execpolicy__help__help_commands] )) ||
_codewhale-tui__execpolicy__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui execpolicy help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__features_commands] )) ||
_codewhale-tui__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__features__help_commands] )) ||
_codewhale-tui__features__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__features__help__help_commands] )) ||
_codewhale-tui__features__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui features help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__features__help__list_commands] )) ||
_codewhale-tui__features__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui features help list commands' commands "$@"
}
(( $+functions[_codewhale-tui__features__list_commands] )) ||
_codewhale-tui__features__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui features list commands' commands "$@"
}
(( $+functions[_codewhale-tui__fork_commands] )) ||
_codewhale-tui__fork_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui fork commands' commands "$@"
}
(( $+functions[_codewhale-tui__help_commands] )) ||
_codewhale-tui__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 a DeepSeek API key to the shared user config' \
'logout:Remove the saved API key' \
'models:List available models from the configured API endpoint' \
'exec:Run a non-interactive prompt. Use --auto for tool-backed agent mode' \
'swebench:Generate SWE-bench prediction rows from CodeWhale runs' \
'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__help__apply_commands] )) ||
_codewhale-tui__help__apply_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help apply commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__completions_commands] )) ||
_codewhale-tui__help__completions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help completions commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__doctor_commands] )) ||
_codewhale-tui__help__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help doctor commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__eval_commands] )) ||
_codewhale-tui__help__eval_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help eval commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__exec_commands] )) ||
_codewhale-tui__help__exec_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help exec commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__execpolicy_commands] )) ||
_codewhale-tui__help__execpolicy_commands() {
    local commands; commands=(
'check:Check execpolicy files against a command' \
    )
    _describe -t commands 'codewhale-tui help execpolicy commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__execpolicy__check_commands] )) ||
_codewhale-tui__help__execpolicy__check_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help execpolicy check commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__features_commands] )) ||
_codewhale-tui__help__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__help__features__list_commands] )) ||
_codewhale-tui__help__features__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help features list commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__fork_commands] )) ||
_codewhale-tui__help__fork_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help fork commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__help_commands] )) ||
_codewhale-tui__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__init_commands] )) ||
_codewhale-tui__help__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help init commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__login_commands] )) ||
_codewhale-tui__help__login_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help login commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__logout_commands] )) ||
_codewhale-tui__help__logout_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help logout commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp_commands] )) ||
_codewhale-tui__help__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 DeepSeek binary as a local MCP stdio server' \
    )
    _describe -t commands 'codewhale-tui help mcp commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__add_commands] )) ||
_codewhale-tui__help__mcp__add_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp add commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__add-self_commands] )) ||
_codewhale-tui__help__mcp__add-self_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp add-self commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__connect_commands] )) ||
_codewhale-tui__help__mcp__connect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp connect commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__disable_commands] )) ||
_codewhale-tui__help__mcp__disable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp disable commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__enable_commands] )) ||
_codewhale-tui__help__mcp__enable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp enable commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__init_commands] )) ||
_codewhale-tui__help__mcp__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp init commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__list_commands] )) ||
_codewhale-tui__help__mcp__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp list commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__remove_commands] )) ||
_codewhale-tui__help__mcp__remove_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp remove commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__tools_commands] )) ||
_codewhale-tui__help__mcp__tools_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp tools commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__mcp__validate_commands] )) ||
_codewhale-tui__help__mcp__validate_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help mcp validate commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__models_commands] )) ||
_codewhale-tui__help__models_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help models commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__pr_commands] )) ||
_codewhale-tui__help__pr_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help pr commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__resume_commands] )) ||
_codewhale-tui__help__resume_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help resume commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__review_commands] )) ||
_codewhale-tui__help__review_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help review commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__sandbox_commands] )) ||
_codewhale-tui__help__sandbox_commands() {
    local commands; commands=(
'run:Run a command with sandboxing' \
    )
    _describe -t commands 'codewhale-tui help sandbox commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__sandbox__run_commands] )) ||
_codewhale-tui__help__sandbox__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help sandbox run commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__serve_commands] )) ||
_codewhale-tui__help__serve_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help serve commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__sessions_commands] )) ||
_codewhale-tui__help__sessions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help sessions commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__setup_commands] )) ||
_codewhale-tui__help__setup_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help setup commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__swebench_commands] )) ||
_codewhale-tui__help__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__help__swebench__export_commands] )) ||
_codewhale-tui__help__swebench__export_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help swebench export commands' commands "$@"
}
(( $+functions[_codewhale-tui__help__swebench__run_commands] )) ||
_codewhale-tui__help__swebench__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui help swebench run commands' commands "$@"
}
(( $+functions[_codewhale-tui__init_commands] )) ||
_codewhale-tui__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui init commands' commands "$@"
}
(( $+functions[_codewhale-tui__login_commands] )) ||
_codewhale-tui__login_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui login commands' commands "$@"
}
(( $+functions[_codewhale-tui__logout_commands] )) ||
_codewhale-tui__logout_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui logout commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp_commands] )) ||
_codewhale-tui__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 DeepSeek 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__mcp__add_commands] )) ||
_codewhale-tui__mcp__add_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp add commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__add-self_commands] )) ||
_codewhale-tui__mcp__add-self_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp add-self commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__connect_commands] )) ||
_codewhale-tui__mcp__connect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp connect commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__disable_commands] )) ||
_codewhale-tui__mcp__disable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp disable commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__enable_commands] )) ||
_codewhale-tui__mcp__enable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp enable commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help_commands] )) ||
_codewhale-tui__mcp__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 DeepSeek 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__mcp__help__add_commands] )) ||
_codewhale-tui__mcp__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help add commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__add-self_commands] )) ||
_codewhale-tui__mcp__help__add-self_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help add-self commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__connect_commands] )) ||
_codewhale-tui__mcp__help__connect_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help connect commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__disable_commands] )) ||
_codewhale-tui__mcp__help__disable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help disable commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__enable_commands] )) ||
_codewhale-tui__mcp__help__enable_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help enable commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__help_commands] )) ||
_codewhale-tui__mcp__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__init_commands] )) ||
_codewhale-tui__mcp__help__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help init commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__list_commands] )) ||
_codewhale-tui__mcp__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help list commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__remove_commands] )) ||
_codewhale-tui__mcp__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help remove commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__tools_commands] )) ||
_codewhale-tui__mcp__help__tools_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help tools commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__help__validate_commands] )) ||
_codewhale-tui__mcp__help__validate_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp help validate commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__init_commands] )) ||
_codewhale-tui__mcp__init_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp init commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__list_commands] )) ||
_codewhale-tui__mcp__list_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp list commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__remove_commands] )) ||
_codewhale-tui__mcp__remove_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp remove commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__tools_commands] )) ||
_codewhale-tui__mcp__tools_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp tools commands' commands "$@"
}
(( $+functions[_codewhale-tui__mcp__validate_commands] )) ||
_codewhale-tui__mcp__validate_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui mcp validate commands' commands "$@"
}
(( $+functions[_codewhale-tui__models_commands] )) ||
_codewhale-tui__models_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui models commands' commands "$@"
}
(( $+functions[_codewhale-tui__pr_commands] )) ||
_codewhale-tui__pr_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui pr commands' commands "$@"
}
(( $+functions[_codewhale-tui__resume_commands] )) ||
_codewhale-tui__resume_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui resume commands' commands "$@"
}
(( $+functions[_codewhale-tui__review_commands] )) ||
_codewhale-tui__review_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui review commands' commands "$@"
}
(( $+functions[_codewhale-tui__sandbox_commands] )) ||
_codewhale-tui__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__sandbox__help_commands] )) ||
_codewhale-tui__sandbox__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__sandbox__help__help_commands] )) ||
_codewhale-tui__sandbox__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sandbox help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__sandbox__help__run_commands] )) ||
_codewhale-tui__sandbox__help__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sandbox help run commands' commands "$@"
}
(( $+functions[_codewhale-tui__sandbox__run_commands] )) ||
_codewhale-tui__sandbox__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sandbox run commands' commands "$@"
}
(( $+functions[_codewhale-tui__serve_commands] )) ||
_codewhale-tui__serve_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui serve commands' commands "$@"
}
(( $+functions[_codewhale-tui__sessions_commands] )) ||
_codewhale-tui__sessions_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui sessions commands' commands "$@"
}
(( $+functions[_codewhale-tui__setup_commands] )) ||
_codewhale-tui__setup_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui setup commands' commands "$@"
}
(( $+functions[_codewhale-tui__swebench_commands] )) ||
_codewhale-tui__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__swebench__export_commands] )) ||
_codewhale-tui__swebench__export_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench export commands' commands "$@"
}
(( $+functions[_codewhale-tui__swebench__help_commands] )) ||
_codewhale-tui__swebench__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__swebench__help__export_commands] )) ||
_codewhale-tui__swebench__help__export_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench help export commands' commands "$@"
}
(( $+functions[_codewhale-tui__swebench__help__help_commands] )) ||
_codewhale-tui__swebench__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench help help commands' commands "$@"
}
(( $+functions[_codewhale-tui__swebench__help__run_commands] )) ||
_codewhale-tui__swebench__help__run_commands() {
    local commands; commands=()
    _describe -t commands 'codewhale-tui swebench help run commands' commands "$@"
}
(( $+functions[_codewhale-tui__swebench__run_commands] )) ||
_codewhale-tui__swebench__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
