English
Multi-Agent Swarm & Background Jobs
Big tasks often split naturally into independent pieces—reviewing one module while refactoring another, or running a slow test suite while continuing to edit code. iKi supports both parallel agents (Swarm) and background shell jobs without leaving your terminal.
Parallel Workers Without File Conflicts
Start a swarm with /swarm <goal>. Each worker can run with its own model (for example, a stronger coordinator and faster workers) and pick how its working directory is isolated:
| Mode | How it works | Good for |
|---|---|---|
inherit | Uses the main working directory directly | Read-only research, code review, log inspection |
share | Creates a dedicated git worktree sharing .git objects | Parallel edits, refactors, and builds without copying the whole repo |
branch | Makes a separate full clone | Destructive git experiments that shouldn't touch the shared repo |
Watching Progress Live
Whenever a swarm or background job is active, a status strip appears above the prompt showing what each worker is doing and how many jobs are running.
- Switch into any worker's live stream—or the shared message board—to see tool calls and reasoning as they happen.
- Open the background job viewer to tail live
stdout/stderr, or kill a stuck process group directly.
The exact shortcuts are shown on the status bar itself, so you don't need to remember them.
Long-Running Shell Commands
Builds, dev servers, and full test suites shouldn't freeze your chat. Commands can be launched in the background explicitly (background: true), and any foreground command that runs past defaultTimeoutMs automatically moves to the background so the agent (and you) can keep working and check its log later.
Configure the limits in ~/.iki/settings.toml:
toml
[tools.shell]
defaultTimeoutMs = 30000
maxTimeoutMs = 600000
promoteOnTimeout = true
maxOutputBytes = 24000
maxOutputLines = 400