Doc, Sheet, Slide and PDF
Edit .docx documents with the AI agent in Kition Doc
The agent in Kition Desktop edits a .docx through Kition Doc’s own commands: it reads the paragraphs, applies styles, inserts tables and headers, checks the document, and works live or in a draft you review.
Updated
By Kition Docs
Verified against Kition Desktop 0.1.1 (0532c350) on 2026-12-02
How the agent works in a document
The agent does not rewrite the .docx file as text. It uses the Doc kit’s own tools: doc_inspect reads the document (its paragraphs with their index, style and text, the page, the word count and a preview), doc_commands finds a command by keywords, doc_run runs command steps, doc_query and doc_batch read and edit the document’s objects, doc_check lists what is wrong, and doc_export writes a PDF or PNG as a new file.
The commands are the ones the ribbon runs: about 490 of them, such as text.insert (Type Text), paragraph.style (Apply Style), table.insert (Table) and change.track (Track Changes). Most commands act on a selection, so the agent first selects a range, then acts on it. Every paragraph has a stable id, kept in the file, so the agent can name it even after other paragraphs move.
Ask the agent
- Open the document, then open **AI Chat**. Use **Add context › Add current document**, or @-mention the file, so the agent knows which document you mean.
- Choose **Live** or **Draft** under **Kit edits** in the composer (see below).
- Ask for one change at a time, in plain words. Name the paragraph, heading or table you mean.
- Watch the steps in the timeline: each tool call shows its input and output.
- Check the result on the page. In Live mode, undo what you do not want; in Draft mode, review and merge or discard.
Example requests
| You ask | The agent runs |
|---|---|
| “Make the first line a Heading 1 and the second a subtitle.” | `select.range`, then `paragraph.style` |
| “Bold the word Sales in the second paragraph.” | `select.range`, then `format.bold` |
| “Add a 3 × 4 table after the introduction with a header row.” | `text.newParagraph`, `table.insert`, then text into the cells |
| “Put page numbers at the bottom of every page.” | `pageNumber.insert` |
| “Set narrow margins and landscape orientation.” | `page.margins`, `page.orientation` |
| “Insert a table of contents at the top.” | `toc.insert` (References › Table of Contents) |
| “Turn on Track Changes, then shorten the conclusion.” | `change.track`, then text edits recorded as revisions |
| “Check the document and fix broken references.” | `doc_check`, then the fix it suggests |
| “Export this as a PDF.” | `doc_export` writes a new .pdf next to the document |
Live or Draft
Live is the default: “The agent edits open kit documents directly; you can undo its edits.” Use Undo in the editor (Cmd/Ctrl+Z) to take back an edit.
Draft: “The agent edits a draft of open kit documents; you review it and merge or discard it.” The document stays as it is until you merge. When the banner says “The agent’s draft is ready for review”, choose Review to compare “Document now” with “With the draft merged”, with counts of what was added, changed and removed, then Merge or Discard. “Undo takes a merge back in one step.”
Either way, if you change the file while the agent is working, Kition does not let the agent write over your change. Each agent edit is also recorded in Version history as “Edited by the agent”.
Good to know
- The agent does not change fonts just because the check reports a substituted font (
doc.font-substituted): the file keeps the font, only the screen uses a stand-in. - With Track Changes on, the agent’s edits become tracked revisions too; it accepts them only when you ask.
- The kit’s agent guide (
agent/guide.mdin the Doc repository) describes the tools, addressing and checks in full.
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 Doc
Kition Doc is the word processor of Kition Desktop: it opens, edits and saves .docx files on laid-out pages, with a ribbon, a styles gallery, tables, headers and footers.
Export from Kition Doc: PDF, PNG and Save As .docx
Kition Doc exports a .docx as a PDF of the whole document or as a PNG of the current page, written next to the document as a new file; Save As keeps an editable .docx copy.
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.