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

  1. 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.
  2. Choose **Live** or **Draft** under **Kit edits** in the composer (see below).
  3. Ask for one change at a time, in plain words. Name the paragraph, heading or table you mean.
  4. Watch the steps in the timeline: each tool call shows its input and output.
  5. 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

What you can ask and what the agent runs
You askThe 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.md in 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

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.