CLI commands
ak kit repair-install-mode
Repair mixed Claude Code native and project-plugin state
ak kit repair-install-mode
Repair mixed Claude Code native and project-plugin state
Synopsis
What it does: Resolve active mixed Claude Code mode without reinstalling or guessing the original kit source. The repair keeps the existing native install and deactivates only fingerprinted AgentKit project-plugin state.
Who it's for:
Users following an ak doctor mixed-install-mode finding.
When to use it:
Run through ak doctor --fix, or directly after reviewing the project plugin cleanup.
Examples: ak kit repair-install-mode --keep native --yes ak kit repair-install-mode --keep native --project-dir ./app --yes
What changes on disk: Creates recovery snapshots, deactivates project-scoped AgentKit plugins, and preserves native and user-modified files.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)
ak kit repair-install-mode [flags]Options
-h, --help help for repair-install-mode
--json Emit machine-readable JSON (implies --no-interactive)
--keep string Install mode to preserve (required: native)
--no-interactive Disable interactive prompts (CI-safe)
--project-dir string Project containing the conflicting plugin (defaults to current directory)
-q, --quiet Suppress non-error output on stderr
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
-y, --yes Assume yes for all promptsSEE ALSO
- ak kit - Kit management commands