AI agent
Use Claude Code, Codex or Cursor with the kits
Install the kition command line, register it with Claude Code, Codex or Cursor, and review their drafts of your files in Kition Desktop.
Updated
By Kition Docs
Verified against Kition Desktop 0.1.1 (0532c350) on 2026-12-02
How it works
Agents you already use can edit the same files with the same kits, without Kition Desktop. The kition command line runs the kits headless (with no window) as an MCP server that your agent connects to. The first time the agent opens a file of a kit, kition downloads that kit from npm into ~/.kition/kits.
You need Node.js 20 or later for the npm install.
Set it up
- Install the command line: `npm install -g @kition/cli`.
- Open a terminal in the folder you want the agent to work in. Use the same folder you open as a workspace in Kition Desktop.
- Register `kition` with your agent: `kition agent add claude`, `kition agent add codex` or `kition agent add cursor`. The command prints exactly what it ran or wrote.
- Start your agent in that folder and ask it to open or edit a file, for example a `.pptx` or `.xlsx`. It uses tools named after the kit, such as `slide_inspect` and `slide_run`.
- Check what is registered with `kition agent list`. Remove it with `kition agent remove <agent>`. If something does not work, run `kition doctor`.
npm install -g @kition/cli
cd "$HOME/Documents/My workspace"
kition agent add claude # or: codex, cursor
kition agent listWhere each agent is registered
| Agent | Default registration |
|---|---|
| Claude Code | For this folder only (Claude Code's `local` scope). `--scope user` registers it for every folder. |
| Codex | For the user: Codex keeps MCP servers per user only. |
| Cursor | `.cursor/mcp.json` in this folder; other servers in the file are kept. `--scope user` writes `~/.cursor/mcp.json`. |
Let the agent work in drafts
As registered by kition agent add, the agent edits files directly unless it asks for a draft. To have every edit go to a draft instead, ask the agent to use drafts, or register the server by hand with the --drafts option, for example claude mcp add kition -- kition mcp --drafts --workspace "$PWD".
A draft is kept in the workspace's hidden .kition/drafts/ folder, beside the file. The file itself does not change until you merge.
Review the draft in Kition Desktop
- Open the same folder as a workspace in Kition Desktop.
- In the file tree, a file with a waiting draft has a **Draft** badge: "An agent's draft of this file is waiting for your review". Click it.
- The panel "Review the agent's draft of …" compares **Document now** with **With the draft merged**. Some kits compare by summary and preview only, not object by object.
- Choose **Merge** to write the draft into the file, or **Discard** to drop it.
- If the file changed after the agent started its draft, Kition warns you, and the button becomes **Merge and replace**: merging replaces those changes with the draft.
- If the file has unsaved edits in an open tab, the merge is refused. Save or discard those edits first.
Version and sources
This guide describes Kition Desktop as of source 0532c350, checked on 2026-12-02. Connected actions also depend on the configured model provider or service. If your installed version is older, some controls may differ.
Related pages
Live edits and drafts
Choose whether the agent edits open kit documents live or in a draft, and review, merge or discard the draft it leaves for you.
Connect MCP servers
Give the built-in agent extra tools by listing MCP servers in ~/.kition/mcp.toml; Kition Desktop has no settings pane for them.
Approve the agent's commands and fetches
When the built-in agent asks before running a shell command or fetching a site, what each approval button does, and where remembered rules are saved.