kimi-code/docs/en
Kai c9a4836984
fix(agent-core-v2): leave swarm mode to the user (#4384)
* fix(agent-core-v2): leave swarm mode to the user

AgentSwarm now runs only while swarm mode is on, and only the user can
turn swarm mode on, so the model can no longer start a swarm by itself.

- Reject AgentSwarm at resolve time while swarm mode is off and check
  again right before it runs; no subagents start and swarm mode stays off.
- Stop AgentSwarm from entering swarm mode, reject the tool trigger, and
  ignore tool-triggered entries that older versions recorded on replay.
- Skip the one-AgentSwarm-per-response veto while swarm mode is off so
  the other tools in that response still run.
- Say in the AgentSwarm description and the swarm exit reminder that only
  the user can turn swarm mode on.
- Update the tools and slash-command reference docs.

* fix(transcript): ignore model-started swarm entries when folding history

Swarm mode entries with the tool trigger come only from older versions,
where the model started a swarm by itself. The engine already ignores
them on replay, so a session that stopped mid-swarm resumes with swarm
mode off. Folding history still marked swarm mode on from that entry,
and no later status update turned it off, so the web UI kept showing
swarm mode as on.

Keep the swarm.enter marker in history, but leave meta.modes untouched
for tool-triggered entries.
2026-10-25 03:22:35 +08:00
..
configuration fix: decouple workspace trust from runtime initialization (#4348) 2026-10-23 12:52:22 +08:00
customization docs(tower): add description (#4216) 2026-10-15 12:56:05 +08:00
guides chore: merge release/2026-10-20 into release/2026-10-21 (#4294) 2026-10-20 19:35:17 +08:00
reference fix(agent-core-v2): leave swarm mode to the user (#4384) 2026-10-25 03:22:35 +08:00
release-notes docs(changelog): sync 2.2.0 from apps/kimi-code/CHANGELOG.md (#4223) 2026-10-15 00:15:53 +08:00
index.md Kimi For Coding 2026-05-22 15:54:50 +08:00