ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak kit repair-install-mode
Repair mixed Claude Code native and project-plugin state
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.
What changes on disk: Creates recovery snapshots, deactivates project-scoped AgentKit plugins, and preserves native and user-modified files.
Usage
ak kit repair-install-mode [flags]Examples
ak kit repair-install-mode --keep native --yes
ak kit repair-install-mode --keep native --project-dir ./app --yesFlags
| Flag | Description |
|---|---|
-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 prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
Related commands
ak kit— Kit management commands