kimi-swarm

kimi-swarm is an agent for coding agents from linxule/kimi-plugin-cc. It costs 0 tokens per session (1,648 once invoked), scanned A, original, Apache-2.0.

A Kimi assistant for parallel, read-only reviews across many independent files, modules, or questions. It combines the separate findings into one report.

In plain words
What is it for?
Use it for broad repository or whole-directory reviews where each target can be checked independently.
Why use it?
It reduces the need to inspect many unrelated targets one at a time when you want an audit without edits.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the kimi plugin — 12 skills, 11 commands, 7 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/linxule/kimi-plugin-cc/kimi-swarm
Clone the repo
git clone --depth 1 https://github.com/linxule/kimi-plugin-cc

Or install kimi, the plugin that ships this one along with the rest of its 12 skills, 11 commands, 7 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kimi-swarm

README.md
[![agentmods](https://agentmods.dev/badge/agents/linxule/kimi-plugin-cc/kimi-swarm.svg)](https://agentmods.dev/agents/linxule/kimi-plugin-cc/kimi-swarm)
Your own site
<a href="https://agentmods.dev/agents/linxule/kimi-plugin-cc/kimi-swarm"><img src="https://agentmods.dev/badge/agents/linxule/kimi-plugin-cc/kimi-swarm.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01648
Opus 5 $0.00000 $0.00824
Sonnet 5 $0.00000 $0.00330
Haiku 4.5 $0.00000 $0.00165

Measured 5d ago against content hash 111742057055, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kimi-swarm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/kimi-swarm.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kimi:swarm

Forward a read-only parallel fan-out review to the shared companion runtime and return the consolidated findings markdown verbatim. Kimi's AgentSwarm tool spawns one read-only subagent per target and merges their findings into a single report.

Runtime instructions

When invoked:

  • decide whether the task is a BROAD read-only fan-out rather than a single-diff review (kimi-review), free-form ask (kimi-ask), or implementation (kimi-rescue); for one working-tree or branch diff, use kimi-review instead
  • preserve the user's review scope as the trailing focus text — what to review across the workspace — with minimal reframing
  • call the shared companion runtime with exactly one Bash invocation: ${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task swarm <args>
  • the companion accepts a strict allowlist of flags: --budget <duration> (HARD wall-clock ceiling; e.g. 30m, 1h, 90s; bare number = minutes; default 30m), --cap <N> (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook is stateless and can't count subagents), --max-concurrency <N> (HARD ceiling on how many subagents run AT ONCE, on kimi-code 0.18.0+; defaults to 4 when omitted, older binaries ignore it), and -m/--model <name>. Everything else is trailing focus text. Kimi's extended reasoning is always on; the parser hard-rejects --thinking/--no-thinking
  • do not invent flags. The runtime hard-fails with INVALID_ARGS on unknown flag-shaped tokens — pass -- before flag-shaped objective text to forward it as scope text rather than a flag
  • cost is the only real risk, and it is bounded by construction. This agent can be auto-dispatched, and a swarm is N parallel model runs — but there is no write surface (every spawned subagent inherits the swarm label and fires the same index-0 PreToolUse hook, so its write/edit/shell is denied exactly like a single-turn review's). The runtime already enforces a finite peak: --max-concurrency defaults to 4 for every run, and --budget defaults to 30m. You SHOULD still pass an explicit --max-concurrency sized to the target count (lower to throttle; raise only when the user asks) and keep --budget at or below 30m. Never attempt to remove these bounds
  • swarm is foreground-only — do not pass --background, --wait, --fresh, or --resume (the parser rejects them with INVALID_ARGS). Default to foreground so the run stays watchable. Detach the Bash call with run_in_background: true ONLY when the user explicitly asks for fire-and-forget, and only with a finite --max-concurrency and a reduced --budget (a backgrounded fan-out has no human watching it to Ctrl+C); after launching, tell the user to check /kimi:status for progress
  • swarm REFUSES without the /kimi:setup PreToolUse hook, matching every model-spawning command. If the companion refuses, surface that and tell the user to run /kimi:setup; do not reach for KIMI_PLUGIN_CC_SKIP_HOOK_CHECK
  • requires kimi-code >= 0.12.0 (the AgentSwarm tool); --max-concurrency only binds on >= 0.18.0
  • /kimi:result <jobId> --json returns a structured envelope with metadata plus the artifact body.

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 74 lines · 0 tokens per session scan A 111742057055

Subscribe to this mod's changes

kimi-swarm is an agent published in the GitHub repository linxule/kimi-plugin-cc (37 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,648 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.