Skip to content

Kimi Agent (Rust), the Kimi Code CLI Wire mode-compatible agent server.

License

Notifications You must be signed in to change notification settings

MoonshotAI/kimi-agent-rs

Repository files navigation

Kimi Agent (Rust)

Rust implementation of Kimi Code CLI. Wire-only JSON-RPC agent server over stdio.

Build & Run

cargo build -p kimi-agent
./target/debug/kimi-agent

Test

cargo test                  # all
cargo test -p kimi-agent    # agent
cargo test -p kosong        # LLM abstraction
cargo test -p kaos          # OS abstraction

Workspace

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

Relationship to Python

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

Version numbers must always match kimi-cli exactly.

License

Apache-2.0. See LICENSE and NOTICE.

About

Kimi Agent (Rust), the Kimi Code CLI Wire mode-compatible agent server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages