kimi-cli-runtime

kimi-cli-runtime is a skill for Claude Code, Codex from satasuk03/kimi-plugin-cc. It costs 17 tokens per session (779 once invoked), scanned A, original, MIT.

An internal helper contract for forwarding requests to the Kimi companion runtime from Claude Code subagents. It defines separate commands for worker tasks and read-only reasoning.

In plain words
What is it for?
Use it only inside the Kimi worker and reasoner subagents to forward one task or reasoning request and return the runtime's output unchanged.
Why use it?
It prevents subagents from bypassing the required runtime or performing extra orchestration and shell work.

Skill for Claude CodeCodex

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 — 2 skills, 7 commands, 2 agents 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 skills/satasuk03/kimi-plugin-cc/kimi-cli-runtime
Any agent
npx skills add satasuk03/kimi-plugin-cc --skill kimi-cli-runtime
Clone the repo
git clone --depth 1 https://github.com/satasuk03/kimi-plugin-cc

Made for: Claude Code, Codex.

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

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-cli-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/satasuk03/kimi-plugin-cc/kimi-cli-runtime.svg)](https://agentmods.dev/skills/satasuk03/kimi-plugin-cc/kimi-cli-runtime)
Your own site
<a href="https://agentmods.dev/skills/satasuk03/kimi-plugin-cc/kimi-cli-runtime"><img src="https://agentmods.dev/badge/skills/satasuk03/kimi-plugin-cc/kimi-cli-runtime.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 779 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.00017 $0.00779
Opus 5 $0.00009 $0.00390
Sonnet 5 $0.00003 $0.00156
Haiku 4.5 $0.00002 $0.00078

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

Security

Grade A, and why

kimi-cli-runtime 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 3d 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/skills/kimi-cli-runtime/SKILL.md · 44 lines

What it actually says

Kimi Runtime

Use this skill only inside the kimi:kimi-worker and kimi:kimi-reasoner subagents.

Primary helpers:

  • node "${CLAUDE_PLUGIN_ROOT}/scripts/kimi-companion.mjs" task "<raw arguments>" — for kimi:kimi-worker.
  • node "${CLAUDE_PLUGIN_ROOT}/scripts/kimi-companion.mjs" reason "<raw arguments>" — for kimi:kimi-reasoner.

Execution rules:

  • Each subagent is a forwarder, not an orchestrator. Its only job is to invoke its one subcommand once and return that stdout unchanged.
  • Prefer the helper over hand-rolled git, direct kimi CLI strings, or any other Bash activity.
  • Do not call setup, review, status, result, or cancel from either subagent.
  • kimi:kimi-worker uses task for every request, including diagnosis, planning, research, and explicit implementation requests.
  • kimi:kimi-reasoner uses reason for every request. reason is always read-only, regardless of flags.
  • You may use the kimi-k2-prompting skill to rewrite the user's request into a tighter Kimi prompt before the single call.
  • That prompt drafting is the only Claude-side work allowed. Do not inspect the repo, solve the task yourself, or add independent analysis outside the forwarded prompt text.
  • Leave model unset by default. Add --model only when the user explicitly asks for one.
  • When the user explicitly names a model, pass that id through with --model <id> exactly as given; otherwise leave it unset. Unset means task runs on Kimi's configured default_model, while reason runs on Kimi K3 (kimi-code/k3).
  • kimi:kimi-worker defaults to a write-capable Kimi run. Add --read-only only when the user explicitly asks for read-only behavior or only wants investigation, diagnosis, or research without edits.

Command selection:

  • Use exactly one call per handoff.
  • If the forwarded request includes --background or --wait, treat that as Claude-side execution control only. Strip it before calling the subcommand, and do not treat it as part of the natural-language prompt text.
  • If the forwarded request includes --model, pass it through as-is.
  • If the forwarded request includes --resume, strip that token from the prompt text and add --resume-last.
  • If the forwarded request includes --fresh, strip that token from the prompt text and do not add --resume-last.
  • --resume: always add --resume-last, even if the request text is ambiguous.
  • --fresh: always use a fresh run, even if the request sounds like a follow-up.
  • --resume-last: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous run.

Safety rules:

  • Default to write-capable Kimi work in kimi:kimi-worker unless the user explicitly asks for read-only behavior.
  • kimi:kimi-reasoner is always read-only.
  • Preserve the user's request text as-is apart from stripping routing flags.
  • Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
  • Return the stdout of the invoked subcommand exactly as-is.
  • If the Bash call fails or Kimi cannot be invoked, return nothing.
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. 3d ago First seen · 44 lines · 17 tokens per session scan A 1365c5f8af0a

Subscribe to this mod's changes

kimi-cli-runtime is a skill published in the GitHub repository satasuk03/kimi-plugin-cc (2 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 779 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

kimi-swarm-write

Run a write-capable Kimi swarm that edits many disjoint targets in a throwaway worktree and returns a reviewable patch. Use only for explicit parallel edit fan-out requests; the plugin never applies or commits the patch.

linxule/kimi-plugin-cc · 51 tokens

kimi-ask

Ask Kimi a read-only free-form question about the current repository. Use for prose explanations, flow tracing, module comparisons, or conceptual reasoning where Codex should delegate the answer to local kimi-code rather than perform implementation.

linxule/kimi-plugin-cc · 48 tokens

kimi-pursue

Run Kimi's autonomous goal mode for an explicitly requested hands-off multi-turn objective. This is write-capable and budget-bounded; use only when the user explicitly asks Kimi to pursue an objective autonomously.

linxule/kimi-plugin-cc · 48 tokens

kimi-setup

Verify local Kimi companion readiness and manage the kimi-code PreToolUse hook plus optional review gate state. Use when explicitly requested to install, check, enable, disable, or uninstall the integration. Codex and Claude Code share one /.kimi-code/config.toml but each own a host-scoped block, so $kimi-setup here…

linxule/kimi-plugin-cc · 87 tokens

kimi-cancel

Cancel an active plugin-managed Kimi job for the current repository. Use only when the user explicitly asks to cancel a Kimi run.

linxule/kimi-plugin-cc · 31 tokens

kimi-challenge

Run a read-only adversarial Kimi challenge review that questions assumptions, design choices, and tradeoffs. Use when the user wants pushback on whether the approach is right, not a defect-only review.

linxule/kimi-plugin-cc · 45 tokens