Doc, Sheet, Slide and PDF
Edit .xlsx spreadsheets with the AI agent in Kition Sheet
The agent in Kition Desktop works in .xlsx workbooks through Kition Sheet’s commands: it writes values and formulas, formats, sorts, adds charts and pivot tables, checks for formula errors, and works live or in a draft.
Updated
By Kition Docs
Verified against Kition Desktop 0.1.1 (0532c350) on 2026-12-02
How the agent works in a workbook
The agent uses the Sheet kit’s own tools. sheet_inspect reads every sheet with its id, name and used range, and shows the values; a formula cell shows its computed value. sheet_commands finds a command by keywords, sheet_run runs command steps, sheet_query and sheet_batch read and edit the workbook’s objects, sheet_check lists formula errors and other problems, and sheet_export writes a PDF, CSV, web page, picture or template as a new file.
Its commands are the ones the ribbon runs, about 360 of them: cell.set (Enter Cell) enters a value or a formula, range.setValues fills a range, data.sort, chart.insert, conditionalFormat.apply and so on. The agent names the sheet and the cells it acts on, so it never moves your selection or changes the sheet you are looking at.
Ask the agent
- Open the workbook, open **AI Chat**, and add it with **Add context › Add current document** or an @-mention.
- Choose **Live** or **Draft** under **Kit edits** in the composer.
- Name the sheet and the cells or columns you mean: “On the Sales sheet, column D…”.
- Read the steps in the timeline. After a formula change, ask the agent to read the computed values back.
- Check the grid. In Live mode undo what you do not want; in Draft mode review, then merge or discard.
Example requests
| You ask | The agent runs |
|---|---|
| “In D2:D20, put the share of each row in the total of column C.” | `cell.set` with a formula such as `=C2/SUM($C$2:$C$20)`, filled down |
| “Add a total row under the data.” | `cell.set` with `=SUM(…)` or `formula.autoSum` |
| “Sort the table by Revenue, largest first.” | `data.sort` |
| “Show revenue as currency with no decimals.” | `format.numberFormat` |
| “Highlight values under 0 in red.” | `conditionalFormat.apply` |
| “Make a column chart of revenue by region.” | `chart.insert` |
| “Summarise sales by region in a pivot table.” | `pivot.insert` |
| “Paste this CSV text into a new sheet.” | `sheet.insert`, then `data.fromTextCsv` |
| “Find and fix the #DIV/0! errors.” | `sheet_check`, then a guarded formula |
| “Export the Summary sheet as CSV.” | `sheet_export` |
Live or Draft
In Live mode (the default), “The agent edits open kit documents directly; you can undo its edits.” In Draft mode, “The agent edits a draft of open kit documents; you review it and merge or discard it.”
When a draft is ready, the banner says “The agent’s draft is ready for review”. Review shows “Document now” beside “With the draft merged” and counts the objects added, changed and removed. Merge applies it, and “Undo takes a merge back in one step”; Discard drops it. Kition does not let the agent write over a change you made while it worked, and every agent edit is listed in Version history as “Edited by the agent”.
What the agent cannot do here
- It works only on the workbook Kition opened for it. Commands that name another file by path, such as opening a file or getting data from a file, are not offered; paste data as text instead.
- Spelling (
spelling.check) is not available to the agent. - The check reports
sheet.formula-error,sheet.circular-reference,sheet.broken-name,sheet.merge-hides-dataand more; a suggested fix runs only when it is what you asked for. - The kit’s agent guide (
agent/guide.mdin the Sheet repository) has the full rules for sheet ids, cell addresses and checks.
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
Get started with Kition Sheet
Kition Sheet is the spreadsheet of Kition Desktop: it edits and saves .xlsx and .xlsm workbooks with formulas, formats, tables, charts and pivot tables, and opens .xls, .ods and .csv read only.
Export from Kition Sheet: PDF, CSV, PNG and more
Kition Sheet exports a workbook as PDF, a sheet as CSV, CSV UTF-8, a web page or a picture, an .xlsx copy, or an .xltx template, each written as a new file next to the workbook.
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.
Chat with the agent
Open AI Chat, start and find chats, point the agent at documents, folders and files, pick a model, and stop a run.
Read the agent's steps
How the agent works through kit commands, and how to read its plan card, tool steps, changed files and the 16-step limit of a turn.