Kimi Code: A Terminal-First Coding Agent in Practice
Kimi Code is an AI coding agent that works across a whole repository, plans multi-step changes, runs commands and iterates on results from a terminal or IDE. It is driven by Kimi K3 and can use a 1M-token context, screenshots, Plan mode, skills, Hooks and MCP. This guide separates documented capabilities from the review controls a developer still needs before accepting generated code.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What is Kimi Code?
Kimi Code is an AI coding agent built for terminal-first development and deep IDE integration. Unlike a completion tool that suggests the next lines, it analyses a repository, plans multi-step changes, executes commands and iterates from the results. It is driven by Kimi K3 and is available in terminals, VS Code, Cursor and a desktop app.
The official introduction describes it as agent-level automation for large refactors, debugging and repetitive work, with navigation between editor, terminal and documentation handled by the agent. Source: Kimi Code introduction, fetched 2026-12-02.
How is it different from a code-completion assistant?
The difference is how much of the workflow the tool owns. A completion tool sees the current file and cursor; Kimi Code reads project files, tracks dependencies between modules, forms a plan, edits several files, runs project checks and revises its work based on real command output.
| Tool type | Typical context | Typical output |
|---|---|---|
| Code completion | Current file, nearby lines | Inline suggestions |
| Coding assistant | Prompt, pasted code, selection | Explanations, code blocks |
| Coding agent | Repository files, project docs, command output | File edits, plans, diffs, test results |
That wider context is what makes cross-file refactors possible, but it also means the agent can change more than you intended. Scope and review become part of the job. Source: Kimi's AI programming guide, fetched 2026-12-02.
What does the 1M-token context actually buy you?
It lets the agent hold an entire project's structure, dependencies and patterns in view at once, rather than only the file being edited. For a multi-file refactor, that means it can find call sites and related tests before changing a signature, which reduces partial migrations.
The official pages also describe native vision understanding, so a screenshot, diagram or short video can be part of the task context. That is useful when a bug report is visual or a UI requirement is easier to show than describe. Context size alone does not guarantee correctness; the agent still needs clear instructions and verifiable acceptance criteria.
How do Plan mode and shell mode work?
Plan mode is the safer entry point for a large change. Press Shift-Tab or type /plan, and Kimi Code researches the codebase and proposes a step-by-step plan for approval before it modifies any files. The goal-based workflow keeps progress tied to a defined outcome across steps.
Shell mode lets the agent run commands in the development environment: tests, dependency installation and interaction with external tools. The official guide lists four stages in a typical run: understand the task, collect context, generate or execute, and return evidence such as a diff, test output or a stated hypothesis. Review the plan before approving it, especially when commands have side effects.
Which models can Kimi Code use, and what do they cost?
Kimi Code is driven by Kimi K3, and you can explicitly select K3.1 Pro. In the CLI, type /model and pick Kimi K3.1 Pro; in the VS Code or Cursor extension and the desktop app, use the model dropdown in the input bar. Update to the latest version if the model is missing.
| Model | Context | Price per MTok (input / output) | Best for |
|---|---|---|---|
kimi-k3.1-pro |
1M tokens | $2.00 / $10.00 | Full builds, 3D, deep research |
kimi-k3.1-pro-highspeed |
1M tokens | $4.00 / $20.00 | Fast back-and-forth work |
These are the international API list prices shown on the Kimi platform as of 2 December 2026; the Chinese platform publishes separate yuan prices, so check the region you actually use. Kimi Code also offers a high-speed option for latency-sensitive tasks. Source: Kimi API platform, fetched 2026-12-02.
How do you run a Kimi Code task well?
A reliable run starts with a bounded request, not a wish. The workflow below follows the four stages the official guide describes, from understanding the task to returning evidence. It assumes you have already opened the repository and selected a model; adjust the scope to match how costly a wrong change would be.
- State the outcome and constraints. Name the behaviour you want, the files likely involved and what must not change.
- Enter Plan mode. Use
/planor Shift-Tab, then read the proposed steps before approving anything. - Ask for evidence, not just code. Require the agent to run the project's own tests and static checks and to show their output.
- Inspect the diff. Compare it against your acceptance criteria and check for unrelated edits.
- Iterate on failures. When a command fails, ask for a hypothesis and a targeted fix rather than a blind retry.
Teams can save reusable workflows as skills, trigger internal scripts with Hooks, connect project services through MCP, and share setups as plugins. Cluster mode coordinates parallel sub-agents when a task splits into independent workstreams, then merges their findings back into the main flow.
What should you review before accepting generated code?
The official guide proposes four controls, and they scale with the cost of failure. Check requirements and scope first: confirm the requested behaviour exists and unrelated behaviour is untouched. Check repository and security fit: installed versions, business rules, data handling and permission boundaries, plus logs and config for leaked secrets.
Then require independent evidence: run the project's established tests and linters, add targeted cases for inferred edge conditions, and use measurements for performance claims. Finally keep permission and release control: grant only the access the task needs, require approval for high-impact commands and preserve normal deployment protections. Generated output becomes software only after a responsible developer checks it and the relevant checks pass.
Where does Kimi Code fit in the development lifecycle?
It mainly supports the build-and-integrate stage: turning an approved direction into a file-level plan, bounded changes and updated tests. It can also help clarify requirements before coding by exposing unresolved constraints, and help after coding by linking incidents to recent changes and summarising service evidence.
The handoffs matter more than using AI everywhere. Requirements should stay visible when tests are designed, the plan should explain why each change exists when a reviewer opens the diff, and release findings should remain usable for maintenance. Kimi Code supports that continuity through repository tools, approvals and Plan mode; it does not replace the engineer's decision about what is ready to ship. Source: Kimi's AI programming guide, fetched 2026-12-02.
What do readers ask about Kimi Code?
These questions come up when deciding how to fit the agent into an existing workflow. The answers below cover visual input, editor support, Plan mode and tool connections, and stay within what the official product pages document rather than guessing at unreleased features.
Can Kimi Code see screenshots and diagrams?
Yes. The official pages describe multimodal context, so a screenshot or design reference can be supplied as task context for UI work.
Does it work outside the terminal?
Yes. It supports VS Code, Cursor, a desktop app and terminal workflows, with the same model selection available through /model or the input-bar dropdown.
Is Plan mode mandatory?
No, but it is the recommended way to start a large change because it produces an approvable plan before files are modified.
Can I connect my own tools?
Yes. The documented options are skills for reusable flows, Hooks for internal scripts, MCP for project services and plugins for sharing a setup.