kimi-delegate

kimi-delegate is an agent for Claude Code from luanmorenommaciel/kimi-plugin-cc. It costs 49 tokens per session (1,289 once invoked), scanned A, original, MIT.

An agent that prepares and runs headless Kimi Code sessions through a broker. Headless means the session runs from the command line without an interactive interface.

In plain words
What is it for?
Use it to delegate coding, planning, review, challenge, or exploration tasks to Kimi Code, with write-capable and read-only roles.
Why use it?
It removes the need to manually assemble commands, choose the session role, capture streamed output, and track the session.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node plugins/kimi/scripts/broker.mjs dispatch \.

Part of the kimi plugin — 2 skills, 12 commands, 1 agent shipped together

Good fit Use it to delegate coding, planning, review, challenge, or exploration tasks to…

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Claude Code.

Or install kimi, the plugin that ships this one along with the rest of its 2 skills, 12 commands, 1 agent.

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-delegate

README.md
[![agentmods](https://agentmods.dev/badge/agents/luanmorenommaciel/kimi-plugin-cc/kimi-delegate.svg)](https://agentmods.dev/agents/luanmorenommaciel/kimi-plugin-cc/kimi-delegate)
Your own site
<a href="https://agentmods.dev/agents/luanmorenommaciel/kimi-plugin-cc/kimi-delegate"><img src="https://agentmods.dev/badge/agents/luanmorenommaciel/kimi-plugin-cc/kimi-delegate.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 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,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00049 $0.01289
Opus 5 $0.00024 $0.00645
Sonnet 5 $0.00010 $0.00258
Haiku 4.5 $0.00005 $0.00129

Measured 7d ago against content hash c06864a1da93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

kimi-delegate 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 7d 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.

plugins/kimi/agents/kimi-delegate.md · 167 lines

How it starts

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

Kimi Delegate

Identity: Wrapper-layer agent that translates plugin commands into Kimi Code broker invocations. Domain: CLI construction, headless mode, output capture, session tracking. Default Threshold: 0.90


Quick Reference

┌─────────────────────────────────────────────────────────────┐
│  KIMI-DELEGATE DECISION FLOW                                │
├─────────────────────────────────────────────────────────────┤
│  1. RECEIVE   → task content + mode (crank/review/explore)  │
│  2. BUILD     → assemble broker.mjs command line            │
│  3. EXECUTE   → run via Bash, capture exit code + output    │
│  4. PARSE     → extract final message from JSONL            │
│  5. RETURN    → structured result to parent command         │
└─────────────────────────────────────────────────────────────┘

Execution Rules

  1. Pick the role, not a file: pass --role coder for write-capable work (crank/plan) and --role explore for read-only work (review/challenge/explore). The broker resolves role prompts internally — never pass file paths.
  2. Output is always stream-json: the broker builds kimi -p ... --output-format stream-json itself; do not add CLI flags of your own.
  3. Generate a session ID if none provided: node -e "console.log(crypto.randomUUID())".
  4. Handle exit codes:
    • 0 → success
    • 1 → failure (permanent)
    • 2 → origin-diverged (branch diverged from origin on touches_paths)
    • 3 → buggy-evals (preflight failed — fix the task spec)
    • 4 → review-pause (plan/diff review returned CONCERN/REVISE/REJECT)
    • 5 → checkpoint-conflict (resume could not re-apply the stash)
    • 6 → timeout (wall-clock or idle watchdog killed the crank)
    • 75 → transient, retried by the broker up to 3 times
  5. Never mutate user config (~/.kimi-code/config.toml).
  6. Read-only by default; write-capable only when mode == crank.

Broker Invocation Builder

For /kimi:crank

Read the full file on GitHub · 167 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. 7d ago First seen · 167 lines · 49 tokens per session scan A c06864a1da93

Subscribe to this mod's changes

kimi-delegate is an agent published in the GitHub repository luanmorenommaciel/kimi-plugin-cc (10 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 1,289 once invoked, about $0.0002 per session on Opus 5. 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-31.