rust port of kimi agent, adjusted to hero env
- Rust 93.1%
- CSS 2.8%
- JavaScript 2.1%
- HTML 1.9%
- Makefile 0.1%
|
Some checks are pending
CI (kimi_agent) / rust (macos-14) (push) Waiting to run
CI (kimi_agent) / rust (ubuntu-22.04) (push) Waiting to run
CI (kimi_agent) / rust (ubuntu-22.04-arm) (push) Waiting to run
CI (kimi_agent) / rust (windows-11-arm) (push) Waiting to run
CI (kimi_agent) / rust (windows-2022) (push) Waiting to run
CI (kimi_agent) / e2e (push) Blocked by required conditions
- Move kaos, kimi_agent, and kosong crates under crates/ directory - Add new hero_kimi_web crate: Axum-based web UI for Kimi chat with HTMX, SSE, templates, and static assets - Update CI/CD workflows, Cargo workspace, Makefile, and docs to reflect new layout - Remove completed _/PLAN.md and _/PROMPT.md planning files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| crates | ||
| docs | ||
| .gitignore | ||
| .gitmodules | ||
| .pre-commit-config.yaml | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Cargo.toml.hero_builder_backup | ||
| LICENSE | ||
| Makefile | ||
| NOTICE | ||
| README.md | ||
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
Install
Build and install the binary to $PATH_ROOT/bin/:
# Dev build
PATH_ROOT=~/.local make install
# Release build (optimized)
PATH_ROOT=~/.local make install-release
Available make targets:
make build— build dev binarymake build-release— build optimized release binarymake install— build dev + install to$PATH_ROOT/binmake install-release— build release + install to$PATH_ROOT/binmake clean— remove build artifactsmake help— show all targets
Note: make install* requires PATH_ROOT environment variable to be set.
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.