Rust implementation of Kimi Code CLI. Wire-only JSON-RPC agent server over stdio.
cargo build -p kimi-agent
./target/debug/kimi-agentcargo test # all
cargo test -p kimi-agent # agent
cargo test -p kosong # LLM abstraction
cargo test -p kaos # OS abstraction| Crate | Purpose |
|---|---|
kimi-agent |
Main binary — wire server, tools, agent loop, MCP |
kosong |
LLM abstraction — messages, tool schemas, providers |
kaos |
OS abstraction — LocalKaos, path semantics |
This repo is a Rust rewrite of the Python kimi-cli runtime. The two must stay compatible on wire protocol, message formats, ~/.kimi data layout, tool schemas, and all other externally observable behavior. Python is the source of truth.
The Python repo is pinned as a git submodule at kimi-cli/:
git submodule update --initVersion numbers must always match kimi-cli exactly.