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

  1. Install the command line: `npm install -g @kition/cli`.
  2. 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.
  3. 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.
  4. 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`.
  5. Check what is registered with `kition agent list`. Remove it with `kition agent remove <agent>`. If something does not work, run `kition doctor`.
sh
npm install -g @kition/cli
cd "$HOME/Documents/My workspace"
kition agent add claude    # or: codex, cursor
kition agent list

Where each agent is registered

What kition agent add does
AgentDefault registration
Claude CodeFor this folder only (Claude Code's `local` scope). `--scope user` registers it for every folder.
CodexFor 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

  1. Open the same folder as a workspace in Kition Desktop.
  2. 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.
  3. 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.
  4. Choose **Merge** to write the draft into the file, or **Discard** to drop it.
  5. 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.
  6. 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

Ready when you are.

Kition is the open pro suite for AI: 16 professional kits and an agent in one free desktop app, for macOS, Windows and Linux.