bg-kimi
Execute long-running Kimi CLI tasks as detached background processes. Use start to begin, then poll status or tail logs as needed.
Instructions
Run Kimi CLI as a detached background task. Subactions: start (returns taskId), status, tail (log output), stop, remove, list. Use for long-running autonomous work — the MCP call returns immediately and you poll status later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cd | No | ||
| plan | No | Start in plan mode. | |
| yolo | No | --yolo: auto-approve everything (default for bg tasks: afk; pass yolo for full power). | |
| agent | No | ||
| label | No | Human-readable label to identify this task later. | |
| lines | No | Lines to return from log tail. | |
| model | No | Optional model override. Known: kimi-for-coding, kimi-k2-6, kimi-k2-6-turbo, kimi-k2-thinking-turbo, kimi-k2-5, kimi-latest. | |
| action | Yes | Background task action. | |
| prompt | No | Prompt (required for action=start). | |
| signal | No | Signal for stop action. | SIGTERM |
| taskId | No | Task ID returned by action=start. | |
| addDirs | No | ||
| thinking | No | ||
| agentFile | No | ||
| skillsDirs | No | ||
| workingDir | No | ||
| mcpConfigFile | No | ||
| maxStepsPerTurn | No | ||
| maxRalphIterations | No | Extra autonomous iterations after the first turn. -1 = unlimited. |