You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Add first-class backend switch (--kernel) for Rust runtime integration #1179
Today, validating the Rust backend from kimi-cli requires tricky test-time overrides (for example setting KIMI_E2E_WIRE_CMD and patching specific e2e paths). This makes local verification and CI setup fragile.
We should add a first-class runtime switch in kimi-cli so Python and Rust backends can be selected explicitly without test-specific hacks.
Problem
There is no official runtime flag/env to switch kimi-cli to the Rust backend.
Current Rust integration tests depend on ad-hoc command overrides and local patching.
This creates friction for contributors and weakens reproducibility in CI.
Summary
Today, validating the Rust backend from
kimi-clirequires tricky test-time overrides (for example settingKIMI_E2E_WIRE_CMDand patching specific e2e paths). This makes local verification and CI setup fragile.We should add a first-class runtime switch in
kimi-cliso Python and Rust backends can be selected explicitly without test-specific hacks.Problem
kimi-clito the Rust backend.Proposal
Add backend selection to
kimi-cli:--kernel <python|rust>KIMI_KERNEL=python|rustKIMI_KERNEL_BIN=/path/to/kimi-agentBehavior:
pythonkeeps current behavior (default).rustroutes runtime startup through wire mode usingkimi-agent.--kernel rustis selected but binary is unavailable, return a clear actionable error.Why this helps
Suggested Acceptance Criteria
kimi --kernel rustruns with the Rust backend in normal workflows.KIMI_KERNEL=rustworks without CLI flag.KIMI_KERNEL_BINcan override binary path for local/dev builds.Notes
This is primarily a testability and integration ergonomics improvement, but it also provides a clear user-facing control for backend selection.