kimi-result-handling

kimi-result-handling is a skill for Claude Code from luanmorenommaciel/kimi-plugin-cc. It costs 0 tokens per session (306 once invoked), scanned A, original, MIT.

A reference guide for reading Kimi's headless command-line results in stream-json format, where each line is a separate JSON record. It explains how to identify final replies, tool calls, errors, and activity.

In plain words
What is it for?
Use it to parse Kimi result logs, match tool calls with responses, collect activity such as files and commands, and handle empty or malformed output.
Why use it?
It prevents scripts from misreading multi-line command output or losing useful details about what the agent did.

Skill for Claude Code

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

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

Good fit Use it to parse Kimi result logs, match tool calls with responses, collect activity such as files and commands, and handle empty or malformed output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling
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.

Any agent
npx skills add luanmorenommaciel/kimi-plugin-cc --skill kimi-result-handling
Clone the repo
git clone --depth 1 https://github.com/luanmorenommaciel/kimi-plugin-cc

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-result-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling/github.svg)](https://agentmods.dev/skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling)
Your own site
<a href="https://agentmods.dev/skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling"><img src="https://agentmods.dev/badge/skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kimi-result-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling"><img src="https://agentmods.dev/badge/skills/luanmorenommaciel/kimi-plugin-cc/kimi-result-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 306 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.00000 $0.00306
Opus 5.5 $0.00000 $0.00122
Sonnet 5.5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00031

Measured 2mo ago against content hash 8630de7eb0d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kimi-result-handling 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 2mo 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-result-handling/SKILL.md · 37 lines

What it actually says

Kimi Result Handling

Reference skill for parsing --output-format stream-json results from Kimi headless mode.

JSONL format

Each line is a separate JSON object:

{"role":"assistant","content":"Hello!"}
{"role":"assistant","content":"Let me check.","tool_calls":[{"type":"function","id":"tc_1","function":{"name":"Shell","arguments":"{\"command\":\"ls\"}"}}]}
{"role":"tool","tool_call_id":"tc_1","content":"file1.py\nfile2.py"}

Parsing rules

  1. Final message: last line with "role":"assistant" and "content" (may also have tool_calls).
  2. Tool calls: extract from assistant lines; map to tool responses by tool_call_id.
  3. Activity log: collect all Shell, ReadFile, WriteFile, SearchWeb tool calls for --verbose output.

Activity log structure

{
  "files_read": ["/path/to/file"],
  "files_written": ["/path/to/file"],
  "commands_executed": ["ls -la"],
  "web_searches": ["query string"]
}

Error handling

  • Empty output → check kimi.log for stderr.
  • Malformed JSONL → skip bad lines, report count.
  • Exit code 75 → retry with exponential backoff.
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. 2mo ago First seen · 37 lines · 0 tokens per session scan A 8630de7eb0d8

Subscribe to this mod's changes

kimi-result-handling is a skill published in the GitHub repository luanmorenommaciel/kimi-plugin-cc (14 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 306 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-31.

Related

kimi-result-handling compared with skills from other repositories

kimi-result-handling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kimi-result-handlingluanmorenommaciel/kimi-plugin-ccSkill143mo agoMITA0Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k3d agoMITA200Claude Code, Codex
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill315k6d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code