Skip to content

Kimi Code CLI 2.9.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 12:15
· 71 commits to main since this release
914549f

Minor Changes

  • #5562 f3beb18 Thanks @Grapedge! - Add the /workspace slash command to switch between personal and business workspaces. Run /workspace to switch workspaces.

  • #5571 9f18936 Thanks @Grapedge! - Report how to resume the active session via the OSC 7577 Program Resume Protocol in terminals that set OSC7577_TOKEN.

  • #5333 a731006 Thanks @wbxl2000! - Promote /lab as the primary Lab command (keeping /experiments and /experimental as aliases), split Lab into Beta (Prompt prediction) and Experimental (NotifyUser tool, WaitFor tool, and Tower multi-agent mode) with an Enable all Beta features switch under [experimental.cli] (shared by kimi, kimi web, and kimi rc), and stop enabling WaitFor or Experimental-tier flags by default or via KIMI_CODE_EXPERIMENTAL_FLAG=1; enable WaitFor in /lab, [experimental.cli] wait_for = true, or KIMI_CODE_EXPERIMENTAL_WAIT_FOR=1.

  • #5509 df01263 Thanks @sailist! - External hooks can now return structured hookSpecificOutput instructions: additionalContext on SessionStart injects model-visible context without showing it in the UI, updatedInput on PreToolUse replaces the tool call's input before checks and execution, updatedToolOutput on PostToolUse replaces the tool result, and the Stop payload now carries response_text, transcript_path, and stop_hook_active.

  • #5750 d57c6e5 Thanks @Grapedge! - The terminal UI now starts in fullscreen mode by default. To keep the conversation in your terminal's scrollback, choose Regular in /settings → TUI mode.

  • #5465 8f794b0 Thanks @Grapedge! - Add a Scroll speed setting for fullscreen mode that defaults to auto instead of 1 line per mouse-wheel event. Change it in /settings -> Scroll speed or set wheel_scroll_lines in ~/.kimi-code/tui.toml (set 1 to keep the previous fixed 1-line behavior).

  • #5466 2bb9a98 Thanks @Grapedge! - Support searching conversations in fullscreen mode with Ctrl+F or /find.

  • #5748 7e16ccd Thanks @sailist! - Add organization-managed policy support for enforcing configuration, system-prompt instructions, hooks, MCP servers, read-only managed plugins, and model, permission, tool, and plugin restrictions. Administrators can place config.toml, config.d/*.toml, policy.toml, AGENTS.md, rules/*.md, mcp.json, or plugins/<dir>/ in /Library/Application Support/Kimi/Code (macOS), /etc/kimi/code (Linux), or %ProgramData%\Kimi\Code (Windows) to apply them to every session, including resumed sessions.

  • #5091 48de2e1 Thanks @chengluyu! - Add per-session git worktrees to the web UI and the server API. Choose Worktree in the Environment selector when starting a session on a git project; POST /api/v1/sessions accepts an optional worktree request.

  • #5293 a978771 Thanks @Grapedge! - Add Cwd, Project, and All tabs to /sessions in Git repositories, and allow resuming sessions across directories in the same project.

  • #5521 ccbe111 Thanks @sailist! - Add the KIMI_CODE_SWARM environment variable to start new sessions with swarm mode on, including kimi -p. Set KIMI_CODE_SWARM=1 to enable it. Turning swarm mode on no longer injects a workflow reminder into the conversation.

  • #5293 a978771 Thanks @Grapedge! - Add Git worktree support to start isolated sessions and manage worktrees in a repository. Run kimi -w to launch in a new worktree, or /worktree to list, create, switch, and delete worktrees.

  • #5646 9304e3b Thanks @Grapedge! - Move an ongoing local conversation into a newly created Git worktree without starting over. Open /worktree, press Ctrl+N, and keep Move current selected when creating the worktree.

Patch Changes

  • #5244 63338e9 Thanks @RealKai42! - Stop a running UserPromptSubmit hook when you cancel the turn and discard its result.

  • #5586 64932bb Thanks @RealKai42! - Show ACP editors the turn Kimi continues after a Stop hook blocks, and other turns it starts on its own such as scheduled tasks, instead of dropping them silently.

  • #5403 f85f504 Thanks @RealKai42! - Show complete commands, working directories, and file paths in IDE approvals and clarify the Auto and YOLO modes.

  • #5447 9c57872 Thanks @RealKai42! - Show background task replies in ACP editors and report when the session is busy.

  • #5404 9abb45c Thanks @RealKai42! - Fix Plan mode in ACP editors and keep the mode picker in sync when reviewing a plan or restoring a session.

  • #5446 dd2fd11 Thanks @RealKai42! - Fix kimi acp sometimes crashing on Windows when the editor closes it.

  • #5583 74475df Thanks @RealKai42! - kimi acp no longer crashes with exit code 1 when the editor closes it while a background subagent is still running, and the agent is no longer told "Reason: [object Object]" about that subagent after the session is reopened.

  • #5357 111aae2 Thanks @RealKai42! - Fix kimi acp ending a failed turn silently; the editor now receives the error, such as a rejected model request or the per-turn step limit being reached.

  • #5525 d9f23b5 Thanks @RealKai42! - Fix kimi acp showing a running command's output only after the command ends when the editor offers no terminal.

  • #5547 94b0604 Thanks @RealKai42! - Fix kimi acp sometimes asking the editor to approve a tool call or answer a question before showing that tool call.

  • #5510 3e63682 Thanks @RealKai42! - Fix kimi acp showing the product's own reminders as user messages when an editor reopens a session, show shell commands run in the terminal UI as $ command with their output, and show which file each earlier read or edit touched.

  • #5417 ff4cf7b Thanks @sailist! - Show model retry progress in ACP clients.

  • #5455 562f4be Thanks @RealKai42! - Fix kimi acp sometimes not showing the terminal for a command that runs without asking for approval.

  • #5595 42dc696 Thanks @sailist! - Fix resuming a session sometimes failing with "updated by another client" when an MCP server fails to connect during startup.

  • #5585 a4bc573 Thanks @RealKai42! - Resuming a session no longer breaks the prompt cache when a permission rule denied a shell command earlier in the session.

  • #5394 4d833db Thanks @RealKai42! - Prevent prompts cancelled before their first step from reaching the model.

  • #5662 59b372d Thanks @RealKai42! - Fix editors connected through kimi acp on Windows missing sessions from their history when the folder is spelled with different slashes or letter case.

  • #5462 79dc02a Thanks @Grapedge! - Update the terminal UI: deduplicate prompt history, prefer contiguous matches in searchable pickers, keep Enter from submitting inside path and argument completion menus, let PageUp/PageDown page completion menus, expand fullscreen double-click selection across paths and identifiers, hide HTML comments in markdown, show raw LaTeX when display math exceeds narrow widths, skip clickable links for URLs over 8,192 characters, and stop emitting OSC 133 prompt markers in regular mode so terminal program status stays active.

  • #5538 2def6b4 Thanks @7Sageer! - Compaction close to the context window now summarizes the earliest messages instead of dropping them, and a summary that reaches the output limit fails the compaction instead of being retried.

  • #5639 c5d039d Thanks @wbxl2000! - Exclude discarded thinking tokens from the context token count reported after compaction.

  • #5443 7157001 Thanks @RealKai42! - Show when the Web composer is waiting for project trust and preserve drafts and attachments.

  • #5785 83fa756 Thanks @sailist! - Preserve comments and table order in config.toml when logging in, logging out, or updating settings.

  • #5657 262d0ce Thanks @RealKai42! - Show a one-line warning naming the invalid config.toml section and key at startup and when the file is broken while Kimi Code is running.

  • #5576 cad77bf Thanks @RealKai42! - Tell the model today's date, and when the date changes, in sessions started from the terminal on Windows.

  • #5592 10cbda8 Thanks @pvzheroes125! - Fix updated MCP tools appearing unavailable in ongoing and restored conversations.

  • #5454 5b4fa96 Thanks @RealKai42! - Fix automatic compaction being discarded and turns ending as cancelled when loop_control.compaction_trigger_ratio is set below 0.85.

  • #5452 90c3ca6 Thanks @RealKai42! - Rank files excluded by .gitignore below equally matching @ file suggestions outside a git repository when fd is installed.

  • #5651 ca5a5c2 Thanks @sailist! - Add a 30-second timeout to FetchURL requests.

  • #5651 ca5a5c2 Thanks @sailist! - Prevent FetchURL from crashing when concurrent HTTPS requests encounter unreachable IPv6 addresses.

  • #5599 a271189 Thanks @sailist! - Prevent undone prompts from reappearing and keep follow-up turns correctly assigned when forking older sessions.

  • #5372 14958e0 Thanks @wbxl2000! - Replace unintended browser focus outlines and message or scroll container focus rings with theme-consistent keyboard focus styles.

  • #5182 859b5f0 Thanks @kimi-agent-bot! - Preserve subagent and swarm timeout environment variables in print mode when they match the default value.

  • #5293 a978771 Thanks @Grapedge! - Support mouse selection and scrolling in fullscreen /sessions, /worktree, and choice dialogs.

  • #5761 13b273f Thanks @sailist! - Fix Kimi requests failing with schema validation errors when MCP tools use mixed-type enums, nullable type arrays, unions with a parent type, tuples, or recursive references.

  • #5467 dd79452 Thanks @Grapedge! - Switch between regular and fullscreen TUI modes immediately from /settings, /reload, and /reload-tui without restarting the CLI.

  • #5505 d98f858 Thanks @7Sageer! - Fix Remote Control reporting it is already running, sessions reporting they are in use, and updates staying blocked after the process holding the lock exited and another program reused its process ID.

  • #5487 b8f4b35 Thanks @RealKai42! - Fix skills, AGENTS.md files, and project configuration created just as file watching starts going unnoticed on macOS.

  • #5762 8b154cb Thanks @sailist! - Support additionalContext in UserPromptSubmit hooks and keep rejected startup permission flags from overriding the footer mode under organization-managed policy.

  • #5555 25b3431 Thanks @sailist! - Allow project MCP config files to disable a same-named user server with { "enabled": false } without repeating its connection settings, avoid starting lower-priority MCP servers that are shadowed by a higher-priority source, and share MCP connections across sessions in the same project until the last session releases them.

  • #5433 357a311 Thanks @sailist! - Load MCP tools on demand by default and cap the startup wait for MCP discovery at 2 seconds ([mcp] startup_wait_ms), letting slow-starting servers finish connecting in the background without blocking new sessions. Set deferred: false or [mcp] default_deferred = false to restore top-level inline tools, and reconnect failed initial stdio servers manually from /mcp.

  • #5573 abde108 Thanks @RealKai42! - Relative extra_skill_dirs entries now apply to every directory of a multi-directory workspace, not only the working directory.

  • #5659 d0a3bbe Thanks @RealKai42! - Restarting or reloading a session no longer breaks the prompt cache after a batch of tool calls in which a permission rule denied one call.

  • #5778 d9284c0 Thanks @pvzheroes125! - Wait for plugin subagent profile reloads before plugin operations return.

  • #5643 31b168d Thanks @wbxl2000! - The model picker and the provider manager show a provider's display name when one is set.

  • #5769 6214c0a Thanks @pvzheroes125! - Fall back to local media when an uploaded image or video reference no longer exists on the server.

  • #5532 0235ca0 Thanks @RealKai42! - Fix quitting, or changing a remote environment, taking about five extra seconds after a git, gh or ripgrep command failed to start on that host, for example when gh is not installed there.

  • #5613 4452ad9 Thanks @7Sageer! - Fix Remote Control sometimes leaving a stale lock file behind on exit.

  • #5617 5f7f90a Thanks @RealKai42! - Fix resumed sessions not showing that an earlier turn failed or was stopped.

  • #5204 e6b16c4 Thanks @Grapedge! - Directories in the same git repository, including its worktrees, now belong to one project by default. kimi -c and the session picker no longer include sessions from desktop projects, and a .kimi-code/mcp.json in a subdirectory is no longer read.

  • #5591 63ed5a8 Thanks @pvzheroes125! - Fix responses being truncated when many deferred tools are available.

  • #5573 abde108 Thanks @RealKai42! - Resumed sessions now tell the model about skills, project directories, AGENTS.md files and subagents that changed while the session was closed.

  • #5649 da8bdbb Thanks @7Sageer! - Remove the experimental Auto Review feature, including the [auto_review] and [experimental] auto_review settings and review status in tool cards and approval prompts.

  • #5413 fdd8d24 Thanks @RealKai42! - Keep deleted sessions out of refreshed session lists, including in ACP editors.

  • #5620 2c5ce9a Thanks @pvzheroes125! - Fix missed skill updates while workspace catalogs are being refreshed on macOS.

  • #5478 e74f142 Thanks @RealKai42! - Show a failed context compaction and its reason in the conversation in the desktop app and web UI, instead of only noting that it did not finish.

  • #5618 26c2240 Thanks @liruifengv! - Fix missing session titles for sessions started by invoking a skill, and generate titles after the first turn for skill-started sessions.

  • #5396 9101127 Thanks @kimi-agent-bot! - Hide the redundant skill: prefix from skill names in the slash command menu.

  • #5638 1f2f714 Thanks @sailist! - Keep the request tool list unchanged when MCP servers connect after startup or add tools mid-session, preserving prompt cache prefixes. On models without dynamic tool loading, these tools are only announced in a reminder; increase [mcp] startup_wait_ms or start a new session to call them directly.

  • #5749 dae55c9 Thanks @sailist! - Stop spurious tool update reminders when MCP tools only change loading mode, and deliver updated tool descriptions without disabling the tool.

  • #5640 2799623 Thanks @RealKai42! - Restarting or reloading a session no longer breaks the prompt cache when the session wrote or edited files earlier.

  • #5730 d4f14dd Thanks @7Sageer! - After context compaction, the agent sees the current list of loadable MCP tools right away instead of being told that already disconnected tools are available.

  • #5479 59dda4a Thanks @RealKai42! - Fix Tower tool calls timing out while waiting for Tower's state or inbox lock when several agents write at the same time. Tower is experimental; enable it with [experimental] tower = true in config.toml or KIMI_CODE_EXPERIMENTAL_TOWER=1.

  • #5481 b31ad09 Thanks @tpoisonooo! - Fix Tower mode mutual exclusion with Plan, Swarm, and Goal modes, and remove the NotifyUser tool from Tower worker profiles.

  • #5416 932e6fe Thanks @7Sageer! - Truncate oversized ! shell command output before adding it to the conversation context.

  • #5808 099f5a8 Thanks @kimi-agent-bot! - Exclude background task notifications from the terminal history turn limit so finished background tasks no longer hide earlier conversation.

  • #5590 3f3b06f Thanks @Grapedge! - Add fullscreen mouse scrolling, tab switching, and option click support to the /model, /undo, question, model-switch confirmation, and cache-expiry dialogs.

  • #5594 2dd8984 Thanks @Grapedge! - Add fullscreen mouse scrolling, text selection, hover highlights, double-click task opening, and action-bar clicks to the /tasks browser, task output viewer, subagent activity viewer, and approval diff preview.

  • #5588 87058b9 Thanks @Grapedge! - Add fullscreen mouse scrolling, text selection, and click support to the /btw panel and /effort selector.

  • #5628 74d8315 Thanks @RealKai42! - Fix the terminal UI staying busy after /init finishes, which also held back the messages sent afterwards.

  • #5460 46beafd Thanks @RealKai42! - Stop the terminal UI from keeping the cut-off part of a reply after a dropped model response is retried.

  • #5456 fef5a9b Thanks @Grapedge! - Show a live spinner and current step in the footer while exiting, including worktree deletion progress.

  • #5626 18fdf03 Thanks @pvzheroes125! - Fix duplicated or misassigned follow-up messages when reopening or forking older conversations.

  • #5663 5eb183d Thanks @wbxl2000! - Keep kimi web pins, sidebar order and layout, and project names when it opens on another port, and stop showing onboarding again there.

  • #5544 71b385b Thanks @RealKai42! - Fix /undo right after a turn sometimes failing with "Wire journal changed while the undo switch triple was appended".

  • #5406 23d230f Thanks @kimi-agent-bot! - Unify inline file, mention, attachment, and quote pills and text links with shared colors, consistent icons, compact spacing, and underline hover feedback.

  • #5434 e3b1904 Thanks @RealKai42! - Report cleanup failures from kimi web on stderr and return exit code 1.

  • #5792 821ff45 Thanks @RealKai42! - Fix the native Windows build of kimi and kimi web exiting without an error at random while it opens network connections.

  • #5754 e88cccc Thanks @sailist! - Reopening long sessions with background task history uses less memory and no longer runs out of heap from repeatedly loading the full session log.