Quick Start
Once you’ve installed the plugin, the orchestrator skill and global rules are loaded automatically in every session - no extra commands, no manual setup.
What to expect
Section titled “What to expect”Launch Kimi Code as usual. At session start, the orchestrator skill auto-loads via sessionStart.skill in kimi.plugin.json. You’ll see a <plugin_session_start> block in the system prompt referencing the orchestrator’s methodology. The global rules from ~/.kimi-code/AGENTS.md are also injected by Kimi Code’s session-start context preparer.
The orchestrator is the routing layer. It does not implement, debug, or edit code itself - it loads specialist skills via the Skill tool and dispatches them to Kimi Code’s 3 built-in subagents (coder, explore, plan).
Try a single delegation
Section titled “Try a single delegation”Hand a concrete, scoped task to the builder persona (dispatched to the coder subagent):
“Use builder to add a JSDoc comment to the
addfunction insrc/math.ts.”
The orchestrator loads the builder SKILL.md, inlines the persona into an Agent call, and dispatches to the coder subagent. The coder subagent has Write/Edit/Bash access by default.
Try a multi-step task
Section titled “Try a multi-step task”For work that spans multiple specialists, hand the whole thing to the orchestrator:
“The login flow throws on empty email. Trace the bug, fix it, and review the fix.”
The orchestrator decomposes the work:
diagnose(coder) - 6-step root cause tracebuilder(coder) - apply the minimal fixreviewer(coder, no-edit) - validate the fix
Each step verifies before handing off to the next.
Try swarm fan-out
Section titled “Try swarm fan-out”For ≥3 uniform items, the orchestrator uses AgentSwarm (Kimi Code v0.12.0+):
“Review these 5 files for security issues: src/auth.ts, src/api.ts, src/db.ts, src/routes.ts, src/middleware.ts.”
The orchestrator:
- Identifies ≥3 uniform independent items.
- Loads the
reviewerpersona. - Calls
AgentSwarmwith aprompt_templatethat includes thereviewerpersona +{{item}}placeholder. - Returns a single
<agent_swarm_result>envelope with one<subagent>per file.
AgentSwarm must be the only tool call in the turn (exclusive-deny policy) - no “explore first, then swarm” in one turn.
Try a multi-phase plan
Section titled “Try a multi-phase plan”For complex features, get a phased plan from planner (dispatched to the plan subagent) before implementing:
“Use planner to draft a migration plan from REST to GraphQL.”
The planner persona returns phases with success criteria and rollback points. Hand the plan to the orchestrator for execution, or to builder for individual phases.
Common pitfalls
Section titled “Common pitfalls”- Forgot
~/.kimi-code/AGENTS.md- global rules never load. Verify withls -la ~/.kimi-code/AGENTS.md. - Forgot
[[hooks]]- destructive bash commands (rm -rf) slip through. Save the companion script as~/.kimi-code/hooks/block-dangerous-bash.mjs. - Forgot
[[permission.rules]]- thereviewerpersona can edit files because thecodersubagent has Write/Edit tools. Persona text alone is advisory, not enforcement. - Skipped
/new- plugin changes don’t take effect in the current session. Run/reloadthen/new. - Orchestrator starts writing code directly - the orchestrator skill is supposed to route, not implement. Check
/plugins listand confirm the session-start skill loaded. - AgentSwarm not available - requires Kimi Code v0.12.0+. On older versions, the orchestrator falls back to single
Agentcalls in parallel turns.
Pipeline reference
Section titled “Pipeline reference”The full pipeline diagram is in Workflow Patterns.
Next Steps
Section titled “Next Steps”- Skill Reference - Full reference for all 8 skills
- Workflow Patterns - Practical examples for each skill