MoonshotAI has released Kimi Code CLI 2.8.0. It offers experimental prompt prediction in the terminal and fixes web approval handling and external tool server connections. Developers using agents can opt into input assistance and reduce interruptions when starting sessions or working on the web.
1. Enable prediction with an environment variable and accept it with a key
This release improves interactions with experimental prompt prediction. Users enable it with an environment variable, a way to pass settings to the runtime, then accept suggestions with Tab or the right arrow key. Use the following setting to enable it in the terminal.
KIMI_CODE_EXPERIMENTAL_PROMPT_PREDICTION=12. Wait for external tool connections to fix session startup errors
MCP connects agents to external tool servers. When creating or resuming a session, an execution unit that preserves task state, this version waits for initial MCP server connections to settle. Previously, MCP tools discovered during startup could remain unavailable throughout the session. Connection waits use per-server startup timeouts. The release also fixes duplicate launches of the same MCP server at CLI startup.
This change aims to reduce blocked work caused by tools being unavailable just after a session opens. However, waiting for connections to settle may also delay session readiness where servers start slowly.
3. Display approval requests and conversations with attachments correctly on the web
The web interface now shows approval and question requests that previously failed to appear while a session was waiting for a response. It also fixes approved plans appearing as failed tool calls. Conversations containing images or videos no longer trigger an error screen on the web.
Failed responses can be resumed in place using the Continue button on the error card. This does not add a separate message to the conversation as if the user had asked to continue. The change addresses both resuming after failure and the actual user conversation history.
On mobile, the button for jumping to the latest conversation position no longer stops partway. The release also fixes tooltips remaining open after tapping the screen on touch devices.
4. Inspect content sent to the model and compaction results
The web interface adds an experimental feature for inspecting the usage and makeup of context, the conversation information a model uses to answer. Usage appears near the input box and in the session information sidebar, while a detailed panel shows items sent to the model. Developers who want to inspect both usage and content can enable it in the Labs settings menu.
Context compaction, which summarizes conversation information to reduce its size, can be queued from the context panel even while a response is being generated. Instead of a separate waiting notice, the compaction status indicator shows elapsed time, followed by a token change summary card on completion. The interface now lets users check progress and results in the same workflow after requesting compaction.
5. Changes to read-only command approvals and shared session behavior
In always-confirm mode, Bash commands verified as read-only by a pre-execution check are now automatically approved. Add ask to the permission rules to keep requiring confirmation for those commands. This reduces confirmation steps but changes workflows where users personally decided on approval each time.
Session locks recorded under a different hostname, the name identifying a machine on a network, are now reclaimed automatically. When sharing a state directory across machines or containers, which isolate programs, note that the directory does not protect active sessions on other machines.
2.8.0 focuses on refining prompt prediction usability and reducing errors that blocked tool connections and web workflows.
