rust port of kimi agent, adjusted to hero env
  • Rust 93.1%
  • CSS 2.8%
  • JavaScript 2.1%
  • HTML 1.9%
  • Makefile 0.1%
Find a file
despiegk c941e1cc6f
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
feat: restructure workspace into crates/ layout and add hero_kimi_web service
- 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>
2026-05-18 11:51:32 +02:00
.github/workflows feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
crates feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
docs feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
.gitignore docs: rewrite README, update NOTICE and versioning; add .gitignore 2026-02-06 23:13:26 +08:00
.gitmodules build: remove kimi-cli submodule, add Makefile and parity docs 2026-05-18 06:20:40 +02:00
.pre-commit-config.yaml feat(rust): add rust version of kimi agent kernel - kagent (#717) 2026-02-04 22:32:31 +08:00
AGENTS.md feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
Cargo.lock feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
Cargo.toml feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
Cargo.toml.hero_builder_backup feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
LICENSE feat: initialize kimi-agent repo 2026-02-06 22:26:36 +08:00
Makefile feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
NOTICE feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00
README.md feat: restructure workspace into crates/ layout and add hero_kimi_web service 2026-05-18 11:51:32 +02:00

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 binary
  • make build-release — build optimized release binary
  • make install — build dev + install to $PATH_ROOT/bin
  • make install-release — build release + install to $PATH_ROOT/bin
  • make clean — remove build artifacts
  • make 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.

License

Apache-2.0. See LICENSE and NOTICE.