Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
999 lines (691 loc) · 45.5 KB

File metadata and controls

999 lines (691 loc) · 45.5 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Changelog

Unreleased

1.22.0 (2026-03-13)

  • Shell: Collapse long pasted text into [Pasted text #n] placeholders — text pasted via Ctrl-V or bracketed paste that exceeds 300 characters or 3 lines is displayed as a compact placeholder token in the prompt buffer while the full content is sent to the model; the external editor (Ctrl-O) expands placeholders for editing and re-folds them on save
  • Shell: Cache pasted images as attachment placeholders — images pasted from the clipboard are stored on disk and shown as [image:…] tokens in the prompt, keeping the input buffer readable
  • Shell: Fix UTF-16 surrogate characters in pasted text causing serialization errors — lone surrogates from Windows clipboard data are now sanitized before storage, preventing UnicodeEncodeError in history writes and JSON serialization
  • Shell: Redesign slash command completion menu — replace the default completion popup with a full-width custom menu that shows command names and multi-line descriptions, with highlight and scroll support
  • Shell: Fix cancelled shell commands not properly terminating child processes — when a running command is cancelled, the subprocess is now explicitly killed to prevent orphaned processes

1.21.0 (2026-03-12)

  • Shell: Add inline running prompt with steer input — agent output is now rendered inside the prompt area while the model is running, and users can type and send follow-up messages (steers) without waiting for the turn to finish; approval requests and question panels are handled inline with keyboard navigation
  • Core: Change steer injection from synthetic tool calls to regular user messages — steer content is now appended as a standard user message instead of a fake _steer tool-call/tool-result pair, improving compatibility with context serialization and visualization
  • Wire: Add SteerInput event — a new Wire protocol event emitted when the user sends a follow-up steer message during a running turn
  • Shell: Echo user input after submission in agent mode — the prompt symbol and entered text are printed back to the terminal for a clearer conversation transcript
  • Shell: Improve session replay with steer inputs — replay now correctly reconstructs and displays steer messages alongside regular turns, and filters out internal system-reminder messages
  • Shell: Fix upgrade command in toast notifications — the upgrade command text is now sourced from a single UPGRADE_COMMAND constant for consistency
  • Core: Persist system prompt in context.jsonl — the system prompt is now written as the first record of the context file and frozen per session, so visualization tools can read the full conversation context and session restores reuse the original prompt instead of regenerating it
  • Vis: Add session directory shortcuts in kimi vis — open the current session folder directly from the session page, copy the raw session directory path with Copy DIR, and support opening directories on both macOS and Windows
  • Shell: Improve API key login UX — show a spinner during key verification, display a helpful hint when a 401 error suggests the wrong platform was selected, show a setup summary on success, and default thinking mode to "on"

1.20.0 (2026-03-11)

  • Web: Add plan mode toggle in web UI — switch control in the input toolbar with a dashed blue border on the composer when plan mode is active, and support setting plan mode via the set_plan_mode Wire protocol method
  • Core: Persist plan mode state across session restarts — plan_mode is saved to SessionState and restored when a session resumes
  • Core: Fix StatusUpdate not reflecting plan mode changes triggered by tools — send a corrected StatusUpdate after EnterPlanMode/ExitPlanMode tool execution so the client sees the up-to-date state
  • Core: Fix HTTP header values containing trailing whitespace/newlines on certain Linux systems (e.g. kernel 6.8.0-101) causing connection errors — strip whitespace from ASCII header values before sending
  • Core: Fix OpenAI Responses provider sending implicit reasoning.effort=null which breaks Responses-compatible endpoints that require reasoning — reasoning parameters are now omitted unless explicitly set
  • Vis: Add session download, import, export and delete — one-click ZIP download from session explorer and detail page, ZIP import into a dedicated ~/.kimi/imported_sessions/ directory with "Imported" filter toggle, kimi export <session_id> CLI command, and delete support for imported sessions with AlertDialog confirmation
  • Core: Fix context compaction failing when conversation contains media parts (images, audio, video) — switch from blacklist filtering (exclude ThinkPart) to whitelist filtering (only keep TextPart) to prevent unsupported content types from being sent to the compaction API
  • Web: Fix @ file mention index not refreshing after switching sessions or when workspace files change — reset index on session switch, auto-refresh after 30s staleness, and support path-prefix search beyond the 500-file limit

1.19.0 (2026-03-10)

  • Core: Add plan mode — the agent can enter a planning phase (EnterPlanMode) where only read-only tools (Glob, Grep, ReadFile) are available, write a structured plan to a file, and present it for user approval (ExitPlanMode) before executing; toggle manually via /plan slash command or Shift-Tab keyboard shortcut
  • Vis: Add kimi vis command for launching an interactive visualization dashboard to inspect session traces — includes wire event timeline, context viewer, session explorer, and usage statistics
  • Web: Fix session stream state management — guard against null reference errors during state resets and preserve slash commands across session switches to avoid a brief empty gap

1.18.0 (2026-03-09)

  • ACP: Support embedded resource content in ACP mode so that Zed's @ file references correctly include file contents
  • Core: Use parameters_json_schema instead of parameters in Google GenAI provider to bypass Pydantic validation that rejects standard JSON Schema metadata fields in MCP tools
  • Shell: Enhance Ctrl-V clipboard paste to support video files in addition to images — video file paths are inserted as text, and a crash when clipboard data is None is fixed
  • Core: Pass session ID as user_id metadata to Anthropic API
  • Web: Preserve slash commands on WebSocket reconnect and add automatic retry logic for session initialization

1.17.0 (2026-03-03)

  • Core: Add /export command to export current session context (messages, metadata) to a Markdown file, and /import command to import context from a file or another session ID into the current session
  • Shell: Show token counts (used/total) alongside context usage percentage in the status bar (e.g., context: 42.0% (4.2k/10.0k))
  • Shell: Rotate keyboard shortcut tips in the toolbar — tips cycle through available shortcuts on each prompt submission to save horizontal space
  • MCP: Add loading indicators for MCP server connections — Shell displays a "Connecting to MCP servers..." spinner and Web shows a status message while MCP tools are being loaded
  • Web: Fix scrollable file list overflow in the toolbar changes panel
  • Core: Add compaction_trigger_ratio config option (default 0.85) to control when auto-compaction triggers — compaction now fires when context usage reaches the configured ratio or when remaining space falls below reserved_context_size, whichever comes first
  • Core: Support custom instructions in /compact command (e.g., /compact keep database discussions) to guide what the compaction preserves
  • Web: Add URL action parameters (?action=create to open create-session dialog, ?action=create-in-dir&workDir=xxx to create a session directly) for external integrations, and support Cmd/Ctrl+Click on new-session buttons to open session creation in a new browser tab
  • Web: Add todo list display in prompt toolbar — shows task progress with expandable panel when the SetTodoList tool is active
  • ACP: Add authentication check for session operations with AUTH_REQUIRED error responses for terminal-based login flow

1.16.0 (2026-02-27)

  • Web: Update ASCII logo banner to a new styled design
  • Core: Add --add-dir CLI option and /add-dir slash command to expand the workspace scope with additional directories — added directories are accessible to all file tools (read, write, glob, replace), persisted across sessions, and shown in the system prompt
  • Shell: Add Ctrl-O keyboard shortcut to open the current input in an external editor ($VISUAL/$EDITOR), with auto-detection fallback to VS Code, Vim, Vi, or Nano
  • Shell: Add /editor slash command to configure and switch the default external editor, with interactive selection and persistent config storage
  • Shell: Add /new slash command to create and switch to a new session without restarting Kimi Code CLI
  • Wire: Auto-hide AskUserQuestion tool when the client does not support the supports_question capability, preventing the LLM from invoking unsupported interactions
  • Core: Estimate context token count after compaction so context usage percentage is not reported as 0%
  • Web: Show context usage percentage with one decimal place for better precision

1.15.0 (2026-02-27)

  • Shell: Simplify input prompt by removing username prefix for a cleaner appearance
  • Shell: Add horizontal separator line and expanded keyboard shortcut hints to the toolbar
  • Shell: Add number key shortcuts (1–5) for quick option selection in question and approval panels, with redesigned bordered panel UI and keyboard hints
  • Shell: Add tab-style navigation for multi-question panels — use Left/Right arrows or Tab to switch between questions, with visual indicators for answered, current, and pending states, and automatic state restoration when revisiting a question
  • Shell: Allow Space key to submit single-select questions in the question panel
  • Web: Add tab-style navigation for multi-question dialogs with clickable tab bar, keyboard navigation, and state restoration when revisiting a question
  • Core: Set process title to "Kimi Code" (visible in ps / Activity Monitor / terminal tab title) and label web worker subprocesses as "kimi-code-worker"

1.14.0 (2026-02-26)

  • Shell: Make FetchURL tool's URL parameter a clickable hyperlink in the terminal
  • Tool: Add AskUserQuestion tool for presenting structured questions with predefined options during execution, supporting single-select, multi-select, and custom text input
  • Wire: Add QuestionRequest / QuestionResponse message types and capability negotiation for structured question interactions
  • Shell: Add interactive question panel for AskUserQuestion with keyboard-driven option selection
  • Web: Add QuestionDialog component for answering structured questions inline, replacing the prompt composer when a question is pending
  • Core: Persist session state across sessions — approval decisions (YOLO mode, auto-approved actions) and dynamic subagents are now saved and restored when resuming a session
  • Core: Use atomic JSON writes for metadata and session state files to prevent data corruption on crash
  • Wire: Add steer request to inject user messages into an active agent turn (protocol version 1.4)
  • Web: Allow Cmd/Ctrl+Click on FetchURL tool's URL parameter to open the link in a new browser tab, with platform-appropriate tooltip hint

1.13.0 (2026-02-24)

  • Core: Add automatic connection recovery that recreates the HTTP client on connection and timeout errors before retrying, improving resilience against transient network failures

1.12.0 (2026-02-11)

  • Web: Add subagent activity rendering to display subagent steps (thinking, tool calls, text) inside Task tool messages
  • Web: Add Think tool rendering as a lightweight reasoning-style block
  • Web: Replace emoji status indicators with Lucide icons for tool states and add category-specific icons for tool names
  • Web: Enhance Reasoning component with improved thinking labels and status icons
  • Web: Enhance Todo component with status icons and improved styling
  • Web: Implement WebSocket reconnection with automatic request resending and stale connection watchdog
  • Web: Enhance session creation dialog with command value handling
  • Web: Support tilde (~) expansion in session work directory paths
  • Web: Fix assistant message content overflow clipping
  • Wire: Fix deadlock when multiple subagents run concurrently by not blocking the UI loop on approval and tool-call requests
  • Wire: Clean up stale pending requests after agent turn ends
  • Web: Show placeholder text in prompt input with hints for slash commands and file mentions
  • Web: Fix Ctrl+C not working in uvicorn web server by restoring default SIGINT handler and terminal state after shell mode exits
  • Web: Improve session stop handling with proper async cleanup and timeout
  • ACP: Add protocol version negotiation framework for client-server compatibility
  • ACP: Add session resume method to restore session state (experimental)

1.11.0 (2026-02-10)

  • Web: Move context usage indicator from workspace header to prompt toolbar with a hover card showing detailed token usage breakdown
  • Web: Add folder indicator with work directory path to the bottom of the file changes panel
  • Web: Fix stderr not being restored when switching to web mode, which could suppress web server error output
  • Web: Fix port availability check by setting SO_REUSEADDR on the test socket

1.10.0 (2026-02-09)

  • Web: Add copy and fork action buttons to assistant messages for quick content copying and session forking
  • Web: Add keyboard shortcuts for approval actions — press 1 to approve, 2 to approve for session, 3 to decline
  • Web: Add message queueing — queue follow-up messages while the AI is processing; queued messages are sent automatically when the response completes
  • Web: Replace Git diff status bar with unified prompt toolbar showing activity status, message queue, and file changes in collapsible tabs
  • Web: Load global MCP configuration in web worker so web sessions can use MCP tools
  • Web: Improve mobile prompt input UX — reduce textarea min-height, add autoComplete="off", and disable focus ring on small screens
  • Web: Handle models that stream text before thinking by ensuring thinking messages always appear before text in the message list
  • Web: Show more specific status messages during session connection ("Loading history...", "Starting environment..." instead of generic "Connecting...")
  • Web: Send error status when session environment initialization fails instead of leaving UI in a waiting state
  • Web: Auto-reconnect when no session status received within 15 seconds after history replay completes
  • Web: Use non-blocking file I/O in session streaming to avoid blocking the event loop during history replay

1.9.0 (2026-02-06)

  • Config: Add default_yolo config option to enable YOLO (auto-approve) mode by default
  • Config: Accept both max_steps_per_turn and max_steps_per_run as aliases for the loop control setting
  • Wire: Add replay request to stream recorded Wire events (protocol version 1.3)
  • Web: Add session fork feature to branch off a new session from any assistant response
  • Web: Add session archive feature with auto-archive for sessions older than 15 days
  • Web: Add multi-select mode for bulk archive, unarchive, and delete operations
  • Web: Add media preview for tool results (images/videos from ReadMediaFile) with clickable thumbnails
  • Web: Add shell command and todo list display components for tool outputs
  • Web: Add activity status indicator showing agent state (processing, waiting for approval, etc.)
  • Web: Add error fallback UI when images fail to load
  • Web: Redesign tool input UI with expandable parameters and syntax highlighting for long values
  • Web: Show compaction indicator when context is being compacted
  • Web: Improve auto-scroll behavior in chat for smoother following of new content
  • Web: Update last_session_id for work directory when session stream starts
  • Shell: Remove Ctrl-/ keyboard shortcut that triggered /help command
  • Rust: Move the Rust implementation to MoonshotAI/kimi-agent-rs with independent releases; binary renamed to kimi-agent
  • Core: Preserve session id when reloading configuration so the session resumes correctly
  • Shell: Fix session replay showing messages that were cleared by /clear or /reset
  • Web: Fix approval request states not updating when session is interrupted or cancelled
  • Web: Fix IME composition issue when selecting slash commands
  • Web: Fix UI not clearing messages after /clear, /reset, or /compact commands

1.8.0 (2026-02-05)

  • CLI: Fix startup errors (e.g. invalid config files) being silently swallowed instead of displayed

1.7.0 (2026-02-05)

  • Rust: Add kagent, the Rust implementation of Kimi agent kernel with wire-mode support (experimental)
  • Auth: Fix OAuth token refresh conflicts when running multiple sessions simultaneously
  • Web: Add file mention menu (@) to reference uploaded attachments and workspace files with autocomplete
  • Web: Add slash command menu in chat input with autocomplete, keyboard navigation, and alias support
  • Web: Prompt to create directory when specified path doesn't exist during session creation
  • Web: Fix authentication token persistence by switching from sessionStorage to localStorage with 24-hour expiry
  • Web: Add server-side pagination for session list with virtualized scrolling for better performance
  • Web: Improve session and work directories loading with smarter caching and invalidation
  • Web: Fix WebSocket errors during history replay by checking connection state before sending
  • Web: Git diff status bar now shows untracked files (new files not yet added to git)
  • Web: Restrict sensitive APIs only in public mode; update origin enforcement logic

1.6 (2026-02-03)

  • Web: Add token-based authentication and access control for network mode (--network, --lan-only, --public)
  • Web: Add security options: --auth-token, --allowed-origins, --restrict-sensitive-apis, --dangerously-omit-auth
  • Web: Change --host option to bind to specific IP address; add automatic network address detection
  • Web: Fix WebSocket disconnect when creating new sessions
  • Web: Increase maximum image dimension from 1024 to 4096 pixels
  • Web: Improve UI responsiveness with enhanced hover effects and better layout handling
  • Wire: Add TurnEnd event to signal the completion of an agent turn (protocol version 1.2)
  • Core: Fix custom agent prompt files containing $ causing silent startup failure

1.5 (2026-01-30)

  • Web: Add Git diff status bar showing uncommitted changes in session working directory
  • Web: Add "Open in" menu for opening files/directories in Terminal, VS Code, Cursor, or other local applications
  • Web: Add search functionality to filter sessions by title or working directory
  • Web: Improve session title display with proper overflow handling

1.4 (2026-01-30)

  • Shell: Merge /login and /setup commands; /setup is now an alias for /login
  • Shell: /usage now shows remaining quota percentage; add /status alias
  • Config: Add KIMI_SHARE_DIR environment variable to customize the share directory path (default: ~/.kimi)
  • Web: Add new Web UI for browser-based interaction
  • CLI: Add kimi web subcommand to launch the Web UI server
  • Auth: Fix encoding error when device name or OS version contains non-ASCII characters
  • Auth: OAuth credentials are now stored in files instead of keyring; existing tokens are automatically migrated on startup
  • Auth: Fix authorization failure after the system sleeps or hibernates

1.3 (2026-01-28)

  • Auth: Fix authentication issue during agent turns
  • Tool: Wrap media content with descriptive tags in ReadMediaFile for better path traceability

1.2 (2026-01-27)

  • UI: Show description for kimi-for-coding model

1.1 (2026-01-27)

  • LLM: Fix kimi-for-coding model's capabilities

1.0 (2026-01-27)

  • Shell: Add /login and /logout slash commands for login and logout
  • CLI: Add kimi login and kimi logout subcommands
  • Core: Fix subagent approval request handling

0.88 (2026-01-26)

  • MCP: Remove Mcp-Session-Id header when connecting to MCP servers to fix compatibility

0.87 (2026-01-25)

  • Shell: Fix Markdown rendering error when HTML blocks appear outside any element
  • Skills: Add more user-level and project-level skills directory candidates
  • Core: Improve system prompt guidance for media file generation and processing tasks
  • Shell: Fix image pasting from clipboard on macOS

0.86 (2026-01-24)

  • Build: Fix binary builds

0.85 (2026-01-24)

  • Shell: Cache pasted images to disk for persistence across sessions
  • Shell: Deduplicate cached attachments based on content hash
  • Shell: Fix display of image/audio/video attachments in message history
  • Tool: Use file path as media identifier in ReadMediaFile for better traceability
  • Tool: Fix some MP4 files not being recognized as videos
  • Shell: Handle Ctrl-C during slash command execution
  • Shell: Fix shlex parsing error in shell mode when input contains invalid shell syntax
  • Shell: Fix stderr output from MCP servers and third-party libraries polluting shell UI
  • Wire: Graceful shutdown with proper cleanup of pending requests when connection closes or Ctrl-C is received

0.84 (2026-01-22)

  • Build: Add cross-platform standalone binary builds for Windows, macOS (with code signing and notarization), and Linux (x86_64 and ARM64)
  • Shell: Fix slash command autocomplete showing suggestions for exact command/alias matches
  • Tool: Treat SVG files as text instead of images
  • Flow: Support D2 markdown block strings (|md syntax) for multiline node labels in flow skills
  • Core: Fix possible "event loop is closed" error after running /reload, /setup, or /clear
  • Core: Fix panic when /clear is used in a continued session

0.83 (2026-01-21)

  • Tool: Add ReadMediaFile tool for reading image/video files; ReadFile now focuses on text files only
  • Skills: Flow skills now also register as /skill:<skill-name> commands (in addition to /flow:<skill-name>)

0.82 (2026-01-21)

  • Tool: Allow WriteFile and StrReplaceFile tools to edit/write files outside the working directory when using absolute paths
  • Tool: Upload videos to Kimi files API when using Kimi provider, replacing inline data URLs with ms:// references
  • Config: Add reserved_context_size setting to customize auto-compaction trigger threshold (default: 50000 tokens)

0.81 (2026-01-21)

  • Skills: Add flow skill type with embedded Agent Flow (Mermaid/D2) in SKILL.md, invoked via /flow:<skill-name> commands
  • CLI: Remove --prompt-flow option; use flow skills instead
  • Core: Replace /begin command with /flow:<skill-name> commands for flow skills

0.80 (2026-01-20)

  • Wire: Add initialize method for exchanging client/server info, external tools registration and slash commands advertisement
  • Wire: Support external tool calls via Wire protocol
  • Wire: Rename ApprovalRequestResolved to ApprovalResponse (backwards-compatible)

0.79 (2026-01-19)

  • Skills: Add project-level skills support, discovered from .agents/skills/ (or .kimi/skills/, .claude/skills/)
  • Skills: Unified skills discovery with layered loading (builtin → user → project); user-level skills now prefer ~/.config/agents/skills/
  • Shell: Support fuzzy matching for slash command autocomplete
  • Shell: Enhanced approval request preview with shell command and diff content display, use Ctrl-E to expand full content
  • Wire: Add ShellDisplayBlock type for shell command display in approval requests
  • Shell: Reorder /help to show keyboard shortcuts before slash commands
  • Wire: Return proper JSON-RPC 2.0 error responses for invalid requests

0.78 (2026-01-16)

  • CLI: Add D2 flowchart format support for Prompt Flow (.d2 extension)

0.77 (2026-01-15)

  • Shell: Fix line breaking in /help and /changelog fullscreen pager display
  • Shell: Use /model to toggle thinking mode instead of Tab key
  • Config: Add default_thinking config option (need to run /model to select thinking mode after upgrade)
  • LLM: Add always_thinking capability for models that always use thinking mode
  • CLI: Rename --command/-c to --prompt/-p, keep --command/-c as alias, remove --query/-q
  • Wire: Fix approval requests not responding properly in Wire mode
  • CLI: Add --prompt-flow option to load a Mermaid flowchart file as a Prompt Flow
  • Core: Add /begin slash command if a Prompt Flow is loaded to start the flow
  • Core: Replace Ralph Loop with Prompt Flow-based implementation

0.76 (2026-01-12)

  • Tool: Make ReadFile tool description reflect model capabilities for image/video support
  • Tool: Fix TypeScript files (.ts, .tsx, .mts, .cts) being misidentified as video files
  • Shell: Allow slash commands (/help, /exit, /version, /changelog, /feedback) in shell mode
  • Shell: Improve /help with fullscreen pager, showing slash commands, skills, and keyboard shortcuts
  • Shell: Improve /changelog and /mcp display with consistent bullet-style formatting
  • Shell: Show current model name in the bottom status bar
  • Shell: Add Ctrl-/ shortcut to show help

0.75 (2026-01-09)

  • Tool: Improve ReadFile tool description
  • Skills: Add built-in kimi-cli-help skill to answer Kimi Code CLI usage and configuration questions

0.74 (2026-01-09)

  • ACP: Allow ACP clients to select and switch models (with thinking variants)
  • ACP: Add terminal-auth authentication method for setup flow
  • CLI: Deprecate --acp option in favor of kimi acp subcommand
  • Tool: Support reading image and video files in ReadFile tool

0.73 (2026-01-09)

  • Skills: Add built-in skill-creator skill shipped with the package
  • Tool: Expand ~ to the home directory in ReadFile paths
  • MCP: Ensure MCP tools finish loading before starting the agent loop
  • Wire: Fix Wire mode failing to accept valid cancel requests
  • Setup: Allow /model to switch between all available models for the selected provider
  • Lib: Re-export all Wire message types from kimi_cli.wire.types, as a replacement of kimi_cli.wire.message
  • Loop: Add max_ralph_iterations loop control config to limit extra Ralph iterations
  • Config: Rename max_steps_per_run to max_steps_per_turn in loop control config (backward-compatible)
  • CLI: Add --max-steps-per-turn, --max-retries-per-step and --max-ralph-iterations options to override loop control config
  • SlashCmd: Make /yolo toggle auto-approve mode
  • UI: Show a YOLO badge in the shell prompt

0.72 (2026-01-04)

  • Python: Fix installation on Python 3.14.

0.71 (2026-01-04)

  • ACP: Route file reads/writes and shell commands through ACP clients for synced edits/output
  • Shell: Add /model slash command to switch default models and reload when using the default config
  • Skills: Add /skill:<name> slash commands to load SKILL.md instructions on demand
  • CLI: Add kimi info subcommand for version/protocol details (supports --json)
  • CLI: Add kimi term to launch the Toad terminal UI
  • Python: Bump the default tooling/CI version to 3.14

0.70 (2025-12-31)

  • CLI: Add --final-message-only (and --quiet alias) to only output the final assistant message in print UI
  • LLM: Add video_in model capability and support video inputs

0.69 (2025-12-29)

  • Core: Support discovering skills in ~/.kimi/skills or ~/.claude/skills
  • Python: Lower the minimum required Python version to 3.12
  • Nix: Add flake packaging; install with nix profile install .#kimi-cli or run nix run .#kimi-cli
  • CLI: Add kimi-cli script alias for invoking the CLI; can be run via uvx kimi-cli
  • Lib: Move LLM config validation into create_llm and return None when missing config

0.68 (2025-12-24)

  • CLI: Add --config and --config-file options to pass in config JSON/TOML
  • Core: Allow Config in addition to Path for the config parameter of KimiCLI.create
  • Tool: Include diff display blocks in WriteFile and StrReplaceFile approvals/results
  • Wire: Add display blocks to approval requests (including diffs) with backward-compatible defaults
  • ACP: Show file diff previews in tool results and approval prompts
  • ACP: Connect to MCP servers managed by ACP clients
  • ACP: Run shell commands in ACP client terminal if supported
  • Lib: Add KimiToolset.find method to find tools by class or name
  • Lib: Add ToolResultBuilder.display method to append display blocks to tool results
  • MCP: Add kimi mcp auth and related subcommands to manage MCP authorization

0.67 (2025-12-22)

  • ACP: Advertise slash commands in single-session ACP mode (kimi --acp)
  • MCP: Add mcp.client config section to configure MCP tool call timeout and other future options
  • Core: Improve default system prompt and ReadFile tool
  • UI: Fix Ctrl-C not working in some rare cases

0.66 (2025-12-19)

  • Lib: Provide token_usage and message_id in StatusUpdate Wire message
  • Lib: Add KimiToolset.load_tools method to load tools with dependency injection
  • Lib: Add KimiToolset.load_mcp_tools method to load MCP tools
  • Lib: Move MCPTool from kimi_cli.tools.mcp to kimi_cli.soul.toolset
  • Lib: Add InvalidToolError, MCPConfigError and MCPRuntimeError
  • Lib: Make the detailed Kimi Code CLI exception classes extend ValueError or RuntimeError
  • Lib: Allow passing validated list[fastmcp.mcp_config.MCPConfig] as mcp_configs for KimiCLI.create and load_agent
  • Lib: Fix exception raising for KimiCLI.create, load_agent, KimiToolset.load_tools and KimiToolset.load_mcp_tools
  • LLM: Add provider type vertexai to support Vertex AI
  • LLM: Rename Gemini Developer API provider type from google_genai to gemini
  • Config: Migrate config file from JSON to TOML
  • MCP: Connect to MCP servers in background and parallel to reduce startup time
  • MCP: Add mcp-session-id HTTP header when connecting to MCP servers
  • Lib: Split slash commands (prev "meta commands") into two groups: Shell-level and KimiSoul-level
  • Lib: Add available_slash_commands property to Soul protocol
  • ACP: Advertise slash commands /init, /compact and /yolo to ACP clients
  • SlashCmd: Add /mcp slash command to display MCP server and tool status

0.65 (2025-12-16)

  • Lib: Support creating named sessions via Session.create(work_dir, session_id)
  • CLI: Automatically create new session when specified session ID is not found
  • CLI: Delete empty sessions on exit and ignore sessions whose context file is empty when listing
  • UI: Improve session replaying
  • Lib: Add model_config: LLMModel | None and provider_config: LLMProvider | None properties to LLM class
  • MetaCmd: Add /usage meta command to show API usage for Kimi Code users

0.64 (2025-12-15)

  • UI: Fix UTF-16 surrogate characters input on Windows
  • Core: Add /sessions meta command to list existing sessions and switch to a selected one
  • CLI: Add --session/-S option to specify session ID to resume
  • MCP: Add kimi mcp subcommand group to manage global MCP config file ~/.kimi/mcp.json

0.63 (2025-12-12)

  • Tool: Fix FetchURL tool incorrect output when fetching via service fails
  • Tool: Use bash instead of sh in Shell tool for better compatibility
  • Tool: Fix Grep tool unicode decoding error on Windows
  • ACP: Support ACP session continuation (list/load sessions) with kimi acp subcommand
  • Lib: Add Session.find and Session.list static methods to find and list sessions
  • ACP: Update agent plans on the client side when SetTodoList tool is called
  • UI: Prevent normal messages starting with / from being treated as meta commands

0.62 (2025-12-08)

  • ACP: Fix tool results (including Shell tool output) not being displayed in ACP clients like Zed
  • ACP: Fix compatibility with the latest version of Zed IDE (0.215.3)
  • Tool: Use PowerShell instead of CMD on Windows for better usability
  • Core: Fix startup crash when there is broken symbolic link in the working directory
  • Core: Add builtin okabe agent file with SendDMail tool enabled
  • CLI: Add --agent option to specify builtin agents like default and okabe
  • Core: Improve compaction logic to better preserve relevant information

0.61 (2025-12-04)

  • Lib: Fix logging when used as a library
  • Tool: Harden file path check to protect against shared-prefix escape
  • LLM: Improve compatibility with some third-party OpenAI Responses and Anthropic API providers

0.60 (2025-12-01)

  • LLM: Fix interleaved thinking for Kimi and OpenAI-compatible providers

0.59 (2025-11-28)

  • Core: Move context file location to .kimi/sessions/{workdir_md5}/{session_id}/context.jsonl
  • Lib: Move WireMessage type alias to kimi_cli.wire.message
  • Lib: Add kimi_cli.wire.message.Request type alias request messages (which currently only includes ApprovalRequest)
  • Lib: Add kimi_cli.wire.message.is_event, is_request and is_wire_message utility functions to check the type of wire messages
  • Lib: Add kimi_cli.wire.serde module for serialization and deserialization of wire messages
  • Lib: Change StatusUpdate Wire message to not using kimi_cli.soul.StatusSnapshot
  • Core: Record Wire messages to a JSONL file in session directory
  • Core: Introduce TurnBegin Wire message to mark the beginning of each agent turn
  • UI: Print user input again with a panel in shell mode
  • Lib: Add Session.dir property to get the session directory path
  • UI: Improve "Approve for session" experience when there are multiple parallel subagents
  • Wire: Reimplement Wire server mode (which is enabled with --wire option)
  • Lib: Rename ShellApp to Shell, PrintApp to Print, ACPServer to ACP and WireServer to WireOverStdio for better consistency
  • Lib: Rename KimiCLI.run_shell_mode to run_shell, run_print_mode to run_print, run_acp_server to run_acp, and run_wire_server to run_wire_stdio for better consistency
  • Lib: Add KimiCLI.run method to run a turn with given user input and yield Wire messages
  • Print: Fix stream-json print mode not flushing output properly
  • LLM: Improve compatibility with some OpenAI and Anthropic API providers
  • Core: Fix chat provider error after compaction when using Anthropic API

0.58 (2025-11-21)

  • Core: Fix field inheritance of agent spec files when using extend
  • Core: Support using MCP tools in subagents
  • Tool: Add CreateSubagent tool to create subagents dynamically (not enabled in default agent)
  • Tool: Use MoonshotFetch service in FetchURL tool for Kimi Code plan
  • Tool: Truncate Grep tool output to avoid exceeding token limit

0.57 (2025-11-20)

  • LLM: Fix Google GenAI provider when thinking toggle is not on
  • UI: Improve approval request wordings
  • Tool: Remove PatchFile tool
  • Tool: Rename Bash/CMD tool to Shell tool
  • Tool: Move Task tool to kimi_cli.tools.multiagent module

0.56 (2025-11-19)

  • LLM: Add support for Google GenAI provider

0.55 (2025-11-18)

  • Lib: Add kimi_cli.app.enable_logging function to enable logging when directly using KimiCLI class
  • Core: Fix relative path resolution in agent spec files
  • Core: Prevent from panic when LLM API connection failed
  • Tool: Optimize FetchURL tool for better content extraction
  • Tool: Increase MCP tool call timeout to 60 seconds
  • Tool: Provide better error message in Glob tool when pattern is **
  • ACP: Fix thinking content not displayed properly
  • UI: Minor UI improvements in shell mode

0.54 (2025-11-13)

  • Lib: Move WireMessage from kimi_cli.wire.message to kimi_cli.wire
  • Print: Fix stream-json output format missing the last assistant message
  • UI: Add warning when API key is overridden by KIMI_API_KEY environment variable
  • UI: Make a bell sound when there's an approval request
  • Core: Fix context compaction and clearing on Windows

0.53 (2025-11-12)

  • UI: Remove unnecessary trailing spaces in console output
  • Core: Throw error when there are unsupported message parts
  • MetaCmd: Add /yolo meta command to enable YOLO mode after startup
  • Tool: Add approval request for MCP tools
  • Tool: Disable Think tool in default agent
  • CLI: Restore thinking mode from last time when --thinking is not specified
  • CLI: Fix /reload not working in binary packed by PyInstaller

0.52 (2025-11-10)

  • CLI: Remove --ui option in favor of --print, --acp, and --wire flags (shell is still the default)
  • CLI: More intuitive session continuation behavior
  • Core: Add retry for LLM empty responses
  • Tool: Change Bash tool to CMD tool on Windows
  • UI: Fix completion after backspacing
  • UI: Fix code block rendering issues on light background colors

0.51 (2025-11-08)

  • Lib: Rename Soul.model to Soul.model_name
  • Lib: Rename LLMModelCapability to ModelCapability and move to kimi_cli.llm
  • Lib: Add "thinking" to ModelCapability
  • Lib: Remove LLM.supports_image_in property
  • Lib: Add required Soul.model_capabilities property
  • Lib: Rename KimiSoul.set_thinking_mode to KimiSoul.set_thinking
  • Lib: Add KimiSoul.thinking property
  • UI: Better checks and notices for LLM model capabilities
  • UI: Clear the screen for /clear meta command
  • Tool: Support auto-downloading ripgrep on Windows
  • CLI: Add --thinking option to start in thinking mode
  • ACP: Support thinking content in ACP mode

0.50 (2025-11-07)

Changed

  • Improve UI look and feel
  • Improve Task tool observability

0.49 (2025-11-06)

Fixed

  • Minor UX improvements

0.48 (2025-11-06)

Added

  • Support Kimi K2 thinking mode

0.47 (2025-11-05)

Fixed

  • Fix Ctrl-W not working in some environments
  • Do not load SearchWeb tool when the search service is not configured

0.46 (2025-11-03)

Added

  • Introduce Wire over stdio for local IPC (experimental, subject to change)
  • Support Anthropic provider type

Fixed

  • Fix binary packed by PyInstaller not working due to wrong entrypoint

0.45 (2025-10-31)

Added

  • Allow KIMI_MODEL_CAPABILITIES environment variable to override model capabilities
  • Add --no-markdown option to disable markdown rendering
  • Support openai_responses LLM provider type

Fixed

  • Fix crash when continuing a session

0.44 (2025-10-30)

Changed

  • Improve startup time

Fixed

  • Fix potential invalid bytes in user input

0.43 (2025-10-30)

Added

  • Basic Windows support (experimental)
  • Display warnings when base URL or API key is overridden in environment variables
  • Support image input if the LLM model supports it
  • Replay recent context history when continuing a session

Fixed

  • Ensure new line after executing shell commands

0.42 (2025-10-28)

Added

  • Support Ctrl-J or Alt-Enter to insert a new line

Changed

  • Change mode switch shortcut from Ctrl-K to Ctrl-X
  • Improve overall robustness

Fixed

  • Fix ACP server no attribute error

0.41 (2025-10-26)

Fixed

  • Fix a bug for Glob tool when no matching files are found
  • Ensure reading files with UTF-8 encoding

Changed

  • Disable reading command/query from stdin in shell mode
  • Clarify the API platform selection in /setup meta command

0.40 (2025-10-24)

Added

  • Support ESC key to interrupt the agent loop

Fixed

  • Fix SSL certificate verification error in some rare cases
  • Fix possible decoding error in Bash tool

0.39 (2025-10-24)

Fixed

  • Fix context compaction threshold check
  • Fix panic when SOCKS proxy is set in the shell session

0.38 (2025-10-24)

  • Minor UX improvements

0.37 (2025-10-24)

Fixed

  • Fix update checking

0.36 (2025-10-24)

Added

  • Add /debug meta command to debug the context
  • Add auto context compaction
  • Add approval request mechanism
  • Add --yolo option to automatically approve all actions
  • Render markdown content for better readability

Fixed

  • Fix "unknown error" message when interrupting a meta command

0.35 (2025-10-22)

Changed

  • Minor UI improvements
  • Auto download ripgrep if not found in the system
  • Always approve tool calls in --print mode
  • Add /feedback meta command

0.34 (2025-10-21)

Added

  • Add /update meta command to check for updates and auto-update in background
  • Support running interactive shell commands in raw shell mode
  • Add /setup meta command to setup LLM provider and model
  • Add /reload meta command to reload configuration

0.33 (2025-10-18)

Added

  • Add /version meta command
  • Add raw shell mode, which can be switched to by Ctrl-K
  • Show shortcuts in bottom status line

Fixed

  • Fix logging redirection
  • Merge duplicated input histories

0.32 (2025-10-16)

Added

  • Add bottom status line
  • Support file path auto-completion (@filepath)

Fixed

  • Do not auto-complete meta command in the middle of user input

0.31 (2025-10-14)

Fixed

  • Fix step interrupting by Ctrl-C, for real

0.30 (2025-10-14)

Added

  • Add /compact meta command to allow manually compacting context

Fixed

  • Fix /clear meta command when context is empty

0.29 (2025-10-14)

Added

  • Support Enter key to accept completion in shell mode
  • Remember user input history across sessions in shell mode
  • Add /reset meta command as an alias for /clear

Fixed

  • Fix step interrupting by Ctrl-C

Changed

  • Disable SendDMail tool in Kimi Koder agent

0.28 (2025-10-13)

Added

  • Add /init meta command to analyze the codebase and generate an AGENTS.md file
  • Add /clear meta command to clear the context

Fixed

  • Fix ReadFile output

0.27 (2025-10-11)

Added

  • Add --mcp-config-file and --mcp-config options to load MCP configs

Changed

  • Rename --agent option to --agent-file

0.26 (2025-10-11)

Fixed

  • Fix possible encoding error in --output-format stream-json mode

0.25 (2025-10-11)

Changed

  • Rename package name ensoul to kimi-cli
  • Rename ENSOUL_* builtin system prompt arguments to KIMI_*
  • Further decouple App with Soul
  • Split Soul protocol and KimiSoul implementation for better modularity

0.24 (2025-10-10)

Fixed

  • Fix ACP cancel method

0.23 (2025-10-09)

Added

  • Add extend field to agent file to support agent file extension
  • Add exclude_tools field to agent file to support excluding tools
  • Add subagents field to agent file to support defining subagents

0.22 (2025-10-09)

Changed

  • Improve SearchWeb and FetchURL tool call visualization
  • Improve search result output format

0.21 (2025-10-09)

Added

  • Add --print option as a shortcut for --ui print, --acp option as a shortcut for --ui acp
  • Support --output-format stream-json to print output in JSON format
  • Add SearchWeb tool with services.moonshot_search configuration. You need to configure it with "services": {"moonshot_search": {"api_key": "your-search-api-key"}} in your config file.
  • Add FetchURL tool
  • Add Think tool
  • Add PatchFile tool, not enabled in Kimi Koder agent
  • Enable SendDMail and Task tool in Kimi Koder agent with better tool prompts
  • Add ENSOUL_NOW builtin system prompt argument

Changed

  • Better-looking /release-notes
  • Improve tool descriptions
  • Improve tool output truncation

0.20 (2025-09-30)

Added

  • Add --ui acp option to start Agent Client Protocol (ACP) server

0.19 (2025-09-29)

Added

  • Support piped stdin for print UI
  • Support --input-format=stream-json for piped JSON input

Fixed

  • Do not include CHECKPOINT messages in the context when SendDMail is not enabled

0.18 (2025-09-29)

Added

  • Support max_context_size in LLM model configurations to configure the maximum context size (in tokens)

Improved

  • Improve ReadFile tool description

0.17 (2025-09-29)

Fixed

  • Fix step count in error message when exceeded max steps
  • Fix history file assertion error in kimi_run
  • Fix error handling in print mode and single command shell mode
  • Add retry for LLM API connection errors and timeout errors

Changed

  • Increase default max-steps-per-run to 100

0.16.0 (2025-09-26)

Tools

  • Add SendDMail tool (disabled in Kimi Koder, can be enabled in custom agent)

SDK

  • Session history file can be specified via _history_file parameter when creating a new session

0.15.0 (2025-09-26)

  • Improve tool robustness

0.14.0 (2025-09-25)

Added

  • Add StrReplaceFile tool

Improved

  • Emphasize the use of the same language as the user

0.13.0 (2025-09-25)

Added

  • Add SetTodoList tool
  • Add User-Agent in LLM API calls

Improved

  • Better system prompt and tool description
  • Better error messages for LLM

0.12.0 (2025-09-24)

Added

  • Add print UI mode, which can be used via --ui print option
  • Add logging and --debug option

Changed

  • Catch EOF error for better experience

0.11.1 (2025-09-22)

Changed

  • Rename max_retry_per_step to max_retries_per_step

0.11.0 (2025-09-22)

Added

  • Add /release-notes command
  • Add retry for LLM API errors
  • Add loop control configuration, e.g. {"loop_control": {"max_steps_per_run": 50, "max_retry_per_step": 3}}

Changed

  • Better extreme cases handling in read_file tool
  • Prevent Ctrl-C from exiting the CLI, force the use of Ctrl-D or exit instead

0.10.1 (2025-09-18)

  • Make slash commands look slightly better
  • Improve glob tool

0.10.0 (2025-09-17)

Added

  • Add read_file tool
  • Add write_file tool
  • Add glob tool
  • Add task tool

Changed

  • Improve tool call visualization
  • Improve session management
  • Restore context usage when --continue a session

0.9.0 (2025-09-15)

  • Remove --session and --continue options

0.8.1 (2025-09-14)

  • Fix config model dumping

0.8.0 (2025-09-14)

  • Add shell tool and basic system prompt
  • Add tool call visualization
  • Add context usage count
  • Support interrupting the agent loop
  • Support project-level AGENTS.md
  • Support custom agent defined with YAML
  • Support oneshot task via kimi -c
Morty Proxy This is a proxified and sanitized view of the page, visit original site.