Skip to main content
Glama
Arhimage
by Arhimage

kimi_code

Analyze and edit code files in a repository using CLI-based AI. Supports session management, background tasks, and configurable output for agentic workflows.

Instructions

Agentic work in a repository: analyze and edit files. Defaults to in-process CLI transport.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editNoAllow file modifications. Default: false (analysis-only intent). On Kimi 0.20.1 this is prompt-enforced (advisory): when false/omitted the prompt is prefixed with a read-only guard, but the CLI itself provides no hard read-only flag for -p mode.
promptYesThe analysis or coding prompt for Kimi.
work_dirYesAbsolute path to the codebase root directory.
transportNoHow the server drives Kimi. Both edit files and resume sessions; they differ in robustness and live-progress detail. 'cli' (default): one-shot process, most robust on Windows, but live progress is coarse — only streaming-output volume, no per-action lines. 'acp': persistent JSON-RPC session that emits granular live progress (tool calls, plan steps) and supports interactive permission prompts, but is heavier and more fragile. Prefer 'cli' for plain codegen/analysis; choose 'acp' when you need to watch each action live or handle mid-run prompts.
backgroundNoTrack as a long-running background task. Every progress event (including each action) is appended to the task log, readable via kimi_tasks — the full accumulating transcript, unlike the single overwriting live-progress line of a foreground call.
session_idNoExplicit Kimi session id to resume.
timeout_msNo
new_sessionNoStart fresh instead of continuing the last session. Default: false.
detail_levelNo
session_modeNoACP session mode when transport='acp'. Default: inferred from session_id/new_session.
include_thinkingNo
max_output_tokensNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description must cover behavior. It mentions the default read-only guard for edit=false and transport differences, but does not disclose potential risks of editing files, required permissions, or error conditions. Moderate transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at two sentences, front-loading the core purpose. The extensive parameter descriptions are placed in the schema, keeping the main description clean. Minor reduction for not exemplifying structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 12 parameters and no output schema, the description omits crucial details like return values, error handling, and session lifecycle. The parameter descriptions are helpful but do not compensate for the lack of overall context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67%, and the description adds meaningful context beyond the schema, such as the read-only guard behavior for 'edit' and the detailed transport comparison. Some parameters like 'detail_level' lack descriptions, but overall the description enhances understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Agentic work in a repository: analyze and edit files.' This is a specific verb+resource pair and distinguishes it from siblings like kimi_ask (likely Q&A) and kimi_setup (setup).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description briefly mentions defaults but lacks explicit guidance on when to use versus alternatives. However, the transport parameter description provides some context on preferring cli vs acp, but the main description does not offer clear when-to-use or when-not-to-use instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arhimage/ladder-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server