/pursue
Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a hard wall-clock budget. Write-capable, gated by the same PreToolUse hook as rescue.
$ npx -y skills add linxule/kimi-plugin-cc --agent claude-codeShips with kimi. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/pursue
Context preview
What this command does when you run it.
Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a hard wall-clock budget. Write-capable, gated by the same PreToolUse hook as rescue.
Command definition
pursue.mddescription: Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a hard wall-clock budget. Write-capable, gated by the same PreToolUse hook as rescue.
argument-hint: "[--budget <30m|1h>] [--turns <N>] [-m <model>] <objective>"
disable-model-invocation: true
Run the companion with any user-supplied flags appended after `task pursue`:
`${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task pursue <args>`
`/kimi:pursue` is **autonomous goal mode**: Kimi keeps working toward the objective across continuation turns until it completes, blocks itself, or the budget expires. It is write-capable and runs under the **same PreToolUse hook + workspace allowlist as `/kimi:rescue`** (the hook gates every tool call in every turn), and like rescue it **cannot mutate git state** — the main thread owns branch/commit.
Supported flags:
- `--budget <duration>` — HARD wall-clock ceiling (e.g. `30m`, `1h`, `90s`; bare number = minutes). Default 45m. This is the only guaranteed bound on an autonomous run.
- `--turns <N>` — SOFT cap: injected into the objective as a model instruction to call `SetGoalBudget`. Advisory, not enforced.
- `-m`, `--model <name>`
Prototype limitations (experimental):
- **No `--background` flag** — the runtime has no detached-worker mode for pursue. That is separate from how the *caller* runs the shell command: a goal loop routinely outlives a foreground timeout (Claude Code caps foreground Bash at 10 minutes vs the 45m default budget), so detaching the call is expected. The bounds that hold either way are the PreToolUse hook, the workspace allowlist, no git mutation, and the mandatory finite `--budget`. To stop a run, just say so — the stop path is `companion.sh cancel` with no id, which targets the latest running job for this repo. Note that a cancel stops further work; it does **not** roll back edits already made to your real tree.
- **No `--resume`.** Goal mode emits a goalId distinct from the session id; resuming the session would not reliably re-enter the goal. The goalId is shown in the result for when resume lands.
- Requires kimi-code **>= 0.8.0** (headless goal mode) and the `/kimi:setup` PreToolUse hook (refuses without it).
Terminal outcomes are surfaced as status, not errors: `complete` (done, exit 0), `blocked` (Kimi stopped itself, exit 3), `paused` (interrupted, exit 6). A run that hits the `--budget` wall-clock ceiling is instead a timeout **failure** (the goal process tree is reaped), not a terminal status. The result headlines the goal status, reason, and turns/tokens/wall-clock usage.
Return the companion stdout verbatim.
Read more
description: Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a hard wall-clock budget. Write-capable, gated by the same PreToolUse hook as rescue. argument-hint: "[--budget <30m|1h>] [--turns <N>] [-m <model>] <objective>" disable-model-invocation: true
Run the companion with any user-supplied flags appended after `task pursue`:
`${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task pursue <args>`
`/kimi:pursue` is **autonomous goal mode**: Kimi keeps working toward the objective across continuation turns until it completes, blocks itself, or the budget expires. It is write-capable and runs under the **same PreToolUse hook + workspace allowlist as `/kimi:rescue`** (the hook gates every tool call in every turn), and like rescue it **cannot mutate git state** — the main thread owns branch/commit.
Supported flags:
- `--budget <duration>` — HARD wall-clock ceiling (e.g. `30m`, `1h`, `90s`; bare number = minutes). Default 45m. This is the only guaranteed bound on an autonomous run.
- `--turns <N>` — SOFT cap: injected into the objective as a model instruction to call `SetGoalBudget`. Advisory, not enforced.
- `-m`, `--model <name>`
Prototype limitations (experimental):
- **No `--background` flag** — the runtime has no detached-worker mode for pursue. That is separate from how the *caller* runs the shell command: a goal loop routinely outlives a foreground timeout (Claude Code caps foreground Bash at 10 minutes vs the 45m default budget), so detaching the call is expected. The bounds that hold either way are the PreToolUse hook, the workspace allowlist, no git mutation, and the mandatory finite `--budget`. To stop a run, just say so — the stop path is `companion.sh cancel` with no id, which targets the latest running job for this repo. Note that a cancel stops further work; it does **not** roll back edits already made to your real tree.
- **No `--resume`.** Goal mode emits a goalId distinct from the session id; resuming the session would not reliably re-enter the goal. The goalId is shown in the result for when resume lands.
- Requires kimi-code **>= 0.8.0** (headless goal mode) and the `/kimi:setup` PreToolUse hook (refuses without it).
Terminal outcomes are surfaced as status, not errors: `complete` (done, exit 0), `blocked` (Kimi stopped itself, exit 3), `paused` (interrupted, exit 6). A run that hits the `--budget` wall-clock ceiling is instead a timeout **failure** (the goal process tree is reaped), not a terminal status. The result headlines the goal status, reason, and turns/tokens/wall-clock usage.
Return the companion stdout verbatim.
Use Kimi as Claude Code's second reviewer, independent thinker, and delegated worker — without building your own multi-agent stack. This is a Claude Code plugin that drives the kimi-code CLI (the Node.js successor to Kimi CLI) as a subprocess.
Repo: linxule/kimi-plugin-cc
Other commands on kimi.
- /README
Claude Code slash command markdown. Each file is thin — it routes through `scripts/companion.sh` to the Node runtime under `runtime/`.
Open command - /ask
Ask Kimi a read-only question in free-form prose mode.
Open command - /cancel
Cancel an active plugin-managed Kimi job for the current repository.
Open command - /challenge
Run a read-only Kimi challenge review that challenges assumptions and surfaces safer alternatives.
Open command - /replay
Re-render a stored Wire event log for a completed plugin-managed Kimi job.
Open command - /rescue
Run a write-capable Kimi rescue against the current repository with optional background execution and resume behavior.
Open command

