WordCraft is a clean-room reimplementation of Microsoft Word in Rust (alpha, v0.20.1): a ribbon word processor that reads and writes .docx (password-protected, AES-encrypted), opens legacy .doc, reads/writes .odt/.ott/.fodt/.rtf/.html/.md/.tex, exports PDF/PNG with a strict check against silent loss, and ships wordcraft-cli (11 subcommands, incl. a structural .docx validator), an 18-tool MCP server and a 28-method localhost control channel. Trigger on any mention of WordCraft, .docx/.doc/.odt...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Wordcraft?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/midasmatterhorn-wordcraft)
---
name: wordcraft
description: >-
WordCraft is a clean-room reimplementation of Microsoft Word in Rust (alpha, v0.20.1): a ribbon word
processor that reads and writes .docx (password-protected, AES-encrypted), opens legacy .doc,
reads/writes .odt/.ott/.fodt/.rtf/.html/.md/.tex, exports PDF/PNG with a strict check against silent
loss, and ships wordcraft-cli (11 subcommands, incl. a structural .docx validator),
an 18-tool MCP server and a 28-method localhost control channel. Trigger on any mention of WordCraft,
.docx/.doc/.odt/.rtf documents, wordcraft-cli, its MCP tools or control channel, templates, mail merge,
macros or track changes, or a request to script, automate, batch-convert, validate, verify, repair or
troubleshoot it — even plain word-processor work ("write a .docx", "convert this .doc to PDF"). Not for
Microsoft Word itself.
---
# WordCraft
**Audit basis.** Refreshed **2026-12-05** against tag **v0.20.1**, commit **`f2e6403b9cf5284ea13101187aa365842a438f8e`** (`git rev-parse HEAD`; released 2026-12-04T20:49Z). The installed `/Applications/WordCraft.app` reports **0.20.1** (bundle id `ai.storyteller.wordcraft`), its binary prints `wordcraft 0.20.1 (f2e6403b)`, and the bundle ships `Contents/MacOS/wordcraft-cli`, which prints `wordcraft-cli 0.20.1` — **the bundle matches this tag**. So each count below was checked twice: read from this source, and run live through the bundled CLI (headless; the GUI was never launched). **Verify against your installed version** — the launcher auto-updates, and another version may expose a different command set.
**v0.20.0 → v0.20.1 delta.** **3 files, +157/−157** (`git diff --shortstat`; one merge commit in this shallow clone): `Cargo.toml`, `Cargo.lock`, `crates/ui-egui/Cargo.toml`. **No Rust source file changed.** The release is a version bump and a craft-libs re-pin, **`5299d8d97dc04648dff735d1bd6f60bd18f10b35` → `ad10c35ae545f0fb816364381a1a8154012b2359`** (every `craft-*` dependency and all `[patch.crates-io]` entries); the release note's only stated change is window maximize and full screen on Windows (#8838), which does not touch macOS. Every automation set is therefore byte-identical, and that was proved, not assumed: at 0.20.1 the live `commands --json` lists **679** ids, `parity` reports **512/524 (97.7%)** with the same 12 missing features, and an MCP handshake lists the **same 18 tools** on protocol `2025-06-18` — all identical to v0.20.0. CLI subcommands stay **11**, flags **22**, control methods **28**, languages **30**, proofing **17**, dialogs **104**, extensions **23/16**, validate rules **60**, and `craft-i18n.rev` is unchanged at **`217f4130…`**. One number in the previous skill was measured wrong and is corrected in the table: default shortcuts are **144** commands, not 164.
**Earlier history (unchanged counts, not re-measured in detail).** v0.19.1 → v0.20.0 was the interface port (1,048 files): ribbon, backstage, dialogs and canvas chrome moved onto the shared craft framework, the CLI gained `validate`, the control channel moved to a token handshake with 28 methods, and the macOS package began shipping the CLI. v0.18.1 → v0.19.1 added Markdown Source and Fit One Page; v0.16.0 → v0.18.1 added strict export, nine paragraph tools and the window commands. Treat those feature descriptions as still true because their code paths resolve at this tag; treat any older count as superseded by the table below.
## Overview
WordCraft is an open-source, clean-room reimplementation of Microsoft Word (Microsoft 365) in pure Rust — "writing and document design" — by the ArtCraft team (`README.md`). It is at **alpha** (`ROADMAP.md`: ~60% ready for real work, ~55% for a mainstream practitioner's week, ~63% for everyday essentials), with **512 of 524** ribbon/menu catalog features wired to live commands (97.7%, from `crates/engine/src/catalog.rs` against the registry). One codebase serves macOS, Windows, Linux, BSD and the web: egui/eframe through the craft UI framework on the GPU, no Electron. Source: GitHub **storytold/wordcraft**, MIT OR Apache-2.0. It reads and writes Microsoft's formats from published specifications (ECMA-376/ISO 29500, MS-DOC, OASIS ODF, MS-OFFCRYPTO), never from their code. The format engines live in `storytold/craft-libs` (`craft-docx`, `craft-doc-binary`, `craft-rtf`, `craft-odf`, `craft-image-codecs`, `craft-zip`, `craft-pdf`, `craft-proof`), all pinned at rev **`ad10c35ae5…`**; the in-tree `crates/docx`, `crates/docbin` and `crates/formats` are adapters that keep the public APIs stable (`crates/docx/src/lib.rs`, `crates/docbin/src/lib.rs`, `crates/formats/src/odt.rs`).
Everything user-visible is a **command with an id**; the ribbon, keyboard, command search, CLI, control channel and MCP all dispatch the same registry. **Several documents can be open at once**, each in its own native window, and one document can have several windows (`crates/ui-egui/src/windows.rs`). Automation addresses a *document* by id and a *window* by the key `ui.inspect` reports.
## Capabilities (verified)
### Automation surface at a glance
Every number was re-counted from this tag's code and re-checked through the bundled 0.20.1 CLI on 2026-12-05; nothing moved from v0.20.0. The repo's prose counts are stale (see the note under the table).
| Surface | v0.20.1 | Change since v0.20.0 |
|---|---|---|
| Engine commands (live ids) | **679** | none; 683 `CommandSpec::new` sites, 3 fixtures, 2 ids by constant |
| Catalog coverage | **512 / 524 (97.7%)** | none; 12 missing rows, 11 distinct ids |
| CLI subcommands | **11** | none (`apps/wordcraft-cli/src/main.rs` `SUBCOMMANDS`) |
| CLI flags | **22** plus `-h/--help`, `--version` | none |
| MCP tools | **18** | none; same names (`crates/mcp/src/tools.rs`), confirmed by a live `tools/list` |
| Control-channel methods | **28** | none; 16 handled in `crates/ui-egui/src/control/handler.rs`, 12 supplied by craft-libs |
| Interface languages | **30** | none (`crates/ui-egui/src/i18n.rs`) |
| Proofing-menu languages | **17** | none (`crates/ui-egui/src/ribbon/language.rs`); Hindi proofing unverified |
| Default shortcuts | **144** commands with a shortcut | re-measured live; the previous skill's 164 was a miscount (see below) |
| Open / save extensions | **23 / 16** literals | none (`crates/engine/src/io.rs`) |
| Dialog names | **104** (103 dialogs + the `restrictEditing` pane) | none |
Do not quote the repo's command counts: `README.md` still says "422 commands", `ROADMAP.md` "433 commands" and "493 / 508", and `docs/mcp.md` "over 270" for `list_commands`. Count with `wordcraft-cli commands --json` on the build you drive. The dialog count runs the other way: `docs/gaps.md` gap 7 says "61 modal dialogs", while the name table in `crates/ui-egui/src/dialogs.rs` answers to 104 names. Shortcuts have the same problem: gap 24 says 140 (macOS) / 158 (Linux/Windows), and the live macOS build reports **144** commands with a default shortcut (every one unique). The source's 172 `.key(` occurrences under `crates/engine/src/cmd/` are not a binding count — 50 pass a computed argument (comparison and map keys, 8 in `crates/engine/src/cmd/tools/compare.rs`), and only 122 pass a shortcut literal.
### Editing, formatting, document features
- Writing: typing/IME, AutoCorrect, list autoformat, selections, clipboard with formatting (HTML/RTF from other programs) and images (pictures copied in WordCraft reach the system clipboard and media survives internal paste; `apps/wordcraft/src/main.rs` wires `craft::platform::clipboard`), undo/redo including an undo-history list (`edit.undoTo`, `edit.undoHistory`), regex find & replace with capture-group expansion; typing behaviour is pinned to Word's by `crates/engine/src/tests/typing.rs`. `text.deleteSentenceBack` deletes to the sentence start and never crosses a paragraph or cell boundary.
- **Markdown Source view** (`view.markdownSource` / `view.markdownSourceText`): a Markdown document's source as editable text (≤ 2 MB). Entering writes the document out as text; leaving reads a changed text back as one Undo step. While it is open the text *is* the document: editing commands are refused, read-style commands (Save, Export) apply the text first (`crates/engine/src/cmd/md_source.rs`).
- **Paragraph tools** (`crates/engine/src/cmd/para/tools.rs`): convert line breaks to paragraphs, insert blank paragraphs, separate paragraphs, delete blank paragraphs, remove leading spaces, remove extra spaces, spaces to indent and back, remove line breaks. Each works on the selection or `{"scope": "all"}`, is one undo step, respects Track Changes, and refuses more than 10,000 paragraphs.
- Formatting, paragraphs, styles/themes/style sets, lists, tables (styles, band sizes, merge/split, sort, formulas, Convert to Text), pages/sections (margins, columns, headers/footers, watermark, line numbers, hyphenation, drop caps, page borders), objects (pictures with crop/recolour/background removal, shapes, text boxes, groups, drawing canvases with per-member selection via `select.member`, wrap, free rotation), references (TOC, footnotes/endnotes, citations APA/MLA/Chicago/IEEE, captions, table of figures, index, cross-references, Zotero), review (spelling/grammar, comments, track changes including moves and formatting revisions, accept/reject, compare, restrict editing), mail merge (CSV/spreadsheets, rules, Finish & Merge, Print Documents), Draw-tab ink, Read Aloud, Print/Web/Draft/Read/Focus/Full Screen views (`crates/engine/src/cmd/`).
- Fonts: `font.missing` reports the fonts a document asks for that are not installed, the family each is drawn in and whether that substitute measures the same (`metricCompatible`) (`crates/engine/src/cmd/font.rs`). Emphasis marks are a real text property (`format.emphasisMark`) written to DOCX (`w:em`) and ODT (`style:text-emphasize`).
- Content controls (`w:sdt`), move tracking (`w:moveFrom`/`w:moveTo`), formatting revisions and glossary/building blocks round-trip. Added at v0.20.0: `shape.size` and `shape.rotation` act only on shapes/canvases in a mixed selection, and `edit.pasteNestedTable` nests a copied table inside a cell.
- `insert_table` / `insert.spreadsheet` fills a table in one call (1–1000 rows × 1–63 cells a row, rectangular; `crates/engine/src/cmd/tools/actions.rs`).
### Import / open (by extension, `crates/engine/src/io.rs` `OPEN_EXTS`, 23 literals)
- `.docx` / `.docm` / `.dotx` / `.dotm` (Word package; Strict Open XML read via namespace mapping, including shapes, text boxes, groups and canvases — `crates/docx/tests/it/strict_drawings.rs`), `.doc` / `.dot` (Word 97-2003 binary reader, `crates/docbin`), `.txt`, `.md`, `.markdown`, `.html`/`.htm`, `.rtf`, `.odt`/`.ott`/`.fodt`, `.mht`/`.mhtml` (**read only**), `.tex`/`.latex`/`.ltx`, `.xml` (Word XML Document / Flat OPC or Word 2003 XML), `.json` (WordCraft's native document model), and `*.wcraft.json`.
- Extensionless or unknown-extension files open **by content** when they are Word/RTF/XML/HTML/text, with encoding detection.
- Passwords: `.docx` opens and saves with a password — **agile** (Word 2010+) and **Standard** (Word 2007-era AES) (`crates/docx/src/lib.rs` re-exporting `craft_docx`; `docs/file-format-parity.md`); `.odt`/`.ott` open and save with a password (AES-256-CBC; `crates/formats/src/odt.rs` re-exporting `craft_odf::text`; `docs/file-format-parity.md`); `.doc` protected with XOR/RC4/RC4 CryptoAPI opens (`crates/docbin/src/lib.rs`, `docs/file-format-parity.md`), untested on Word-written files; an AES `.doc` is refused (`docs/gaps.md` gap 9).
- Pictures: PNG, JPEG, GIF, WebP, BMP, TIFF, plus Windows/Enhanced Metafile `.wmf`/`.emf` at their frame size. Not SVG, ICO, HEIC (`crates/engine/src/cmd/insert/objects.rs` `image_ext`).
- Pictures a DOCX names but cannot bring in (missing part, external target, link-only with no embedded copy) are recorded beside the document and reported by strict export, never fetched.
### Save / native format / export (`crates/engine/src/io.rs` `SAVE_EXTS`, 16 literals)
- Native-lossless: `.docx`/`.docm`/`.dotx`/`.dotm` via `crates/docx`, Word XML Document (Flat OPC) and Word 2003 XML `.xml`, and `.json` for agents. A file opened with a password is saved with it again; exports that cannot carry one (pdf, html, txt) stay plain.
- `.odt`/`.ott`/`.fodt` are read and written nearly whole (repo self-estimate ~90%, `docs/file-format-parity.md`); a document saved without edits keeps what WordCraft does not model. A password-protected `.odt`/`.ott` saves encrypted.
- Copies/export: `.pdf` (krilla through the pinned `craft-pdf`), `.png` page images, `.txt`, `.md`, `.html`, `.rtf`, `.tex` (partial fidelity), `.json`, `.xml`. PDF/PNG follow the Numeral setting for digit shapes. `file.save`/`file.saveAs` take **`copy: true`** to write a copy while the document keeps its own file, unsaved changes and save stamps (File ▸ Export).
- **Strict export**: add `"strict": true` to `file.save`, `file.saveAs`, `file.exportPdf` or `file.exportPng` (a `.pdf` or `.png` target only; any other target is a parameter error). Nothing is written if the output would draw a character no installed face can draw or drop a picture; `file.strictReport {"markup"?, "page"?}` returns the schema-1 report without writing (`crates/engine/src/strict.rs`). In the CLI, `convert --strict` and `render --strict` exit **3** and put one stderr line per kind plus one JSON line on stderr; exit 1 is an ordinary error.
- Print Markup (`--markup` / `markup: true`): comments and tracked changes in PDF/PNG, a comment list in HTML/Markdown/text. PDFs and page images mark tracked changes in the Track Changes Options colours and marks (`crates/engine/src/io.rs` `ExportOptions.revisions`).
- `.doc` cannot be written; saves are atomic-by-design (temp file + replace; a failed save keeps the original bytes).
### Personal templates
- `file.listTemplates {"dir"?}` lists `.dotx`/`.dotm` in the user templates folder (top level plus one subfolder level as categories, ≤500 templates, ≤64 categories; network folders and relative paths refused; the automation read root applies). Without `dir` it uses the folder saved in File ▸ Options and **errors if none is saved** — always pass `dir` headlessly.
- `file.newFromTemplate {"path", "data"?, "password"?, "replaceBlank"?}` opens the file as a new, untitled, **dirty** document attached to that template (no extension check). `data` carries base64 bytes when the path is not valid Unicode; `password` opens a protected template; `replaceBlank: true` lets an untouched blank document give way. `file.saveTemplate {"path"}` **appends `.dotx` unless the path already ends `.dotx` or `.dotm` (any case)** — `out.docx` becomes `out.docx.dotx`. The GUI path is `ui.saveAsTemplate` (system dialog) — unusable headlessly. ODT templates are not listed.
- A Word template (`.dotx`, `.dotm`, `.dot`) opened from the platform (macOS "Open with") starts a new document based on it and is never written over; `file.open` still opens the template itself for editing (`crates/ui-egui/src/documents.rs`).
### Automation surfaces (all five drive the same commands)
- **CLI**: `wordcraft-cli convert|info|text|inspect|render|run|commands|parity|validate|mcp|zotero` with flags `--markup`, `--strict`, `--update-fields`, `--format wordml2003|flatopc`, `--page`, `--scale`, `--file`, `--template`, `--cmd 'id={json}'`, `--save`, `--print`, `--author`, `--password`, `--password-file`, `--script FILE|-`, `--json`, `--markdown`, `--connect`, `--automation-read-root`, `--automation-write-root`, and Zotero's `--trace`, `--port` (`apps/wordcraft-cli/src/main.rs` usage text is authoritative; 22 distinct flags).
- **`validate`**: `wordcraft-cli validate FILE [--json]` reads a `.docx` package as bytes and reports provable structural problems (OPC/content types, relationships, XML well-formedness and prefixes, comment/bookmark/note/style id spaces, field/table/markup structure, media magic). 60 stable rule ids (`crates/validate/src/lib.rs` `RULES`); verdicts **0 pass / 1 fail / 2 incomplete**, with 3 for usage or I/O errors. It never panics and never modifies the file. It does not validate `.doc`, `.odt`, `.rtf` or Word 2003 XML.
- **`parity`**: `wordcraft-cli parity [--markdown]` prints the catalog coverage above and the headless-reach summary (RFC-0052): every live catalog feature is `headless: yes`; the 12 missing ones carry `no` with reach `window` (3), `os` (8) or `engine-gap` (1), from `HEADLESS` in `crates/engine/src/catalog.rs`. `cargo xtask parity` writes the same into `docs/parity-checklist.md`.
- **`run --script`**: a JSON job file or stdin — `{"file"?, "template"?, "commands": […], "save"?: […]}` — runs the commands, then saves to each output, format by extension. Relative `file`/`save` paths resolve against the script's folder; capped at 4 MiB, 100,000 commands, 64 outputs. A failing command stops the run with `command N (id): …` and exit 1 before any output is written. `--print` echoes each command's `id: <json>` result. Repeated `--save` writes every listed output in order.
- **MCP server** over stdio: `wordcraft-cli mcp --automation-read-root DIR --automation-write-root DIR` (both required; `--connect` is **refused** until the app confines its control channel, #3695/#5819). **18 tools**: `list_commands`, `execute`, `insert_table`, `batch`, `new_document`, `open_document`, `save_document`, `type_text`, `select_text`, `get_text`, `inspect_document`, `render_page`, `list_documents`, `parity`, and app-only `screenshot`, `click`, `key`, `ui_inspect` (`crates/mcp/src/tools.rs`). The document tools take optional `"doc": <int>`; `list_documents` enumerates them. Protocol revision `2025-06-18`, resources `wordcraft://document` and `wordcraft://commands` (`crates/mcp/src/server.rs`). Both were confirmed live: `initialize` answers `2025-06-18`, `tools/list` returns these 18 names and `list_commands` returns 679. The four app-only tools answer `` `ui.screenshot` needs the desktop app ``, so they are unreachable while `--connect` is refused; the `execute` tool cannot reach `ui.*` ids either — it returns `unknown command` because they live in the UI crate, not the engine registry. `ui.render` and `ui.parity` work only as low-level *methods*; use the `render_page` and `parity` tools for them (`crates/mcp/src/lib.rs`).
- **MCP delivery semantics**: a bridged mutation whose delivery or reply is unknown returns `outcome unknown` and is never replayed; only `document.inspect`, `engine.commands`, `ui.inspect`, `ui.parity` and path-less `ui.render`/`ui.screenshot` retry (`crates/mcp/src/backend/remote.rs`). Inspect the document before repeating an operation yourself.
- **Control channel**: app started with `--control <port>`, JSON lines over `127.0.0.1`. **Authenticate once per connection** with `{"id":1,"method":"auth","params":{"token":"…"}}`; later requests carry no token. The legacy per-request `"key"` field is refused (`apps/wordcraft/src/control_server.rs` tests). The token comes from `--control-token`/`--control-token-file` (or `WORDCRAFT_CONTROL_TOKEN`/`WORDCRAFT_CONTROL_TOKEN_FILE`); otherwise the app writes a random token to `<settings>/control-key.<instance>` (`local-<port>` outside Flatpak, mode 0600, removed on exit). **28 documented methods** (`docs/control-protocol.md`): `engine.execute`, `engine.commands`, `document.inspect`, `ui.inspect`, `ui.click`, `ui.clickText`, `ui.move`, `ui.drag`, `ui.release`, `ui.wheel`, `ui.key`, `ui.type`, `ui.ime`, `ui.capsLock`, `ui.drop`, `ui.screenshot`, `ui.render`, `ui.parity`, `ui.resize`, `ui.focus`, `ui.accessTree`, `ui.dialog.set`, `ui.dialog.confirm`, `ui.dialog.cancel`, `ui.closeWindow`, `ui.clipboard`, `ui.replayAt`, `app.quit`. Any other method name is treated as a command id. `ui.accessTree` returns the window's accessibility tree (node ids, roles, names, values, focus), which `ui.click`, `ui.focus` and `ui.move` accept as targets.
- **Control limits and timeouts** (documented; the transport is craft-libs): a line over 1 MiB gets an error and the connection closes; a connection must authenticate within 10 s; an idle connection closes after 30 s; at most 16 connections are served at once. A request still queued when it times out is cancelled and can never run; one that had started reports an unknown outcome.
- **Macros**: `tools.recordMacro` / `tools.macros` record and replay command sequences.
- **Headless UI screenshots**: `cargo run -p wordcraft-ui-egui --example ui_shot -- script.jsonl` — JSON lines of control requests plus `{"shot": "<path>.png"}`, `{"steps": n}`, `{"wait": ms}`, `{"empty": true}`, `{"width": w}`, `{"height": h}`, `{"ppp": s}` (`crates/ui-egui/examples/ui_shot.rs`).
- **DOCX corpus harness**: `cargo xtask docx-corpus --dir corpus/docx` opens, inspects, renders, saves and reopens every `.docx` in child `wordcraft-cli` processes, writing a JSON report and a Markdown summary (`xtask/src/docx_corpus.rs`, `corpus/docx/README.md`). The corpus is local and never committed.
### Platform
- WebAssembly web build exists and is CI-checked: `apps/wordcraft-web`. `window.wordcraft` exposes `request`, `execute`, `commands`, `docInspect`, `uiInspect` and `screenshot` as promises over the same control requests (`apps/wordcraft-web/src/api.rs`); there is no TCP control channel in the browser. `?host=parent` embeds it, and `data-host="page"` serves a page's own document over DOM `CustomEvent`s (`apps/wordcraft-web/src/host.rs`).
- Local recovery of unsaved work (desktop only), **per document**, covers new drafts and edits; snapshots are taken at most every ten seconds; password-protected documents get no plaintext recovery copies; headless/CLI/web sessions create none (`crates/engine/src/recovery/desktop.rs`).
- Native printing through craft-libs' `craft::print`: `ui.printSettings`, `ui.printPage`, `ui.printSubmit`/`ui.print`, `ui.printCancel`, and `file.printPdf` (also takes `paper` and `pagesPerSheet`: 1|2|4|6|9|16|`"booklet"`|`"bookletReverse"`). A print job with no CUPS destinations answers `noPrinters` (`crates/ui-egui/src/printing.rs`).
- Zotero integration (`crates/zotero`, `docs/zotero.md`) — needs the Zotero desktop app running; loopback-only client with a same-user check on Linux. In-app: `ui.zotero.*`; from a terminal: `wordcraft-cli zotero <command> <file>` (`addEditCitation`, `addEditBibliography`, `addNote`, `refresh`, `removeCodes`, `setDocPrefs`).
- Language packs: `proof.packs`, `proof.installPack {"locale"}`, `proof.removePack {"locale"}` install spelling/hyphenation from the suite's font store (language-packs-2, 75 languages). Installation requires the person's download consent; an agent can never turn it on (`docs/mcp.md` §Language packs).
- Startup update prompt with direct self-updating (craft-update); Windows installs per-user by default. A Nightly build (`craft-nightly`, version suffix `-nightly.…`) is a separate channel and **refuses a control server** (`apps/wordcraft/src/main.rs`).
## Known limitations and not-implemented
Ranked shortfalls with evidence are in **docs/gaps.md** — read it before promising anything. The blocking (beta) list:
1. **DOCX has no real-world corpus test**: no corpus of files from Word, Google Docs, LibreOffice and Pages is committed; `crates/docx/tests` are synthetic fixtures. The opt-in `cargo xtask docx-corpus` harness exists, but nothing is checked in and there is no Word comparison. Treat fidelity on files you did not create as unverified and round-trip the user's file.
2. **Word's native ink is not drawn from its strokes** (its picture fallback shows) and **OLE objects show only their picture**; ink, canvases, groups, charts and SmartArt are preserved and written back with all parts.
3. **Field crashes and freezes remain open**: startup crash on Intel UHD Graphics (#170), macOS 12.7.6 Intel crash (#979), Thai-font and font-selector freezes (#59, #31). Save-path reliability was narrowed, not closed.
4. **Pagination differs from Word**: no Aptos-metric font, legacy compatibility options partial, no page-by-page comparison harness.
5. Still missing from the review/data model: drag-and-drop moves (no text drag), custom-XML binding evaluation (opaque backing stores survive saves).
6. Print dialog depth: driver tray/options and device-specific settings (n-up and booklets exist).
7. Dialog depth: **104** names in the table against Word's ~100 — the repo's own gap text still says 61.
Catalog features with **no command** (12 rows, 11 distinct; `insert.inkEquation` is listed twice): `tools.dictate`, `insert.onlinePicture`, `insert.model3d`, `insert.screenshot`, `addins.get`, `insert.video`, `insert.inkEquation`, `draw.inkToMath`, `review.translate`, `review.blockAuthors`, `view.readLayout` (`crates/engine/src/catalog.rs`).
Other verified gaps:
- **Strict export is not a completeness proof**: it checks drawn characters and pictures only. It depends on the fonts installed on the host, reports pictures dropped on DOCX open for DOCX input only, and a PNG of any page is refused for a missing or external picture anywhere in the document. It does not detect dropped tables, fields, styles or formatting.
- **`validate` is DOCX-only** and proves structural integrity, not fidelity: a clean verdict does not mean Word opens the file identically.
- **Charts/SmartArt from Word are read-only** (no embedded-workbook editing); no combo/3D/stock charts.
- **`.doc` is read-only** — WordCraft never writes Word 97-2003; Word 6/95 files are refused. No PDF Reflow, no Works/WordPerfect. **MHT opens but cannot be saved.**
- **No VBA execution** (macros in `.docm` are preserved, never run), no Office add-ins, no cloud storage, no real-time co-authoring.
- **Proofing**: built-in rules cover English variants, Polish, Portuguese (Brazil), Italian, Croatian, Turkish, Russian, Czech, Indonesian and Spanish; every other language needs a Language pack (75 pinned) and none has full grammar rules (`docs/gaps.md` gap 8). Hindi has an interface and is listed in the proofing menu, but `docs/localization-parity.md` says Hindi proofing is not included — treat Hindi proofing as unverified.
- **Writing fidelity is partial for non-Word formats**: ODT ~90% (repo self-estimate), RTF ~50%, HTML ~65%, MHT ~60%, Word 2003 XML ~55% and lossy (never opened in Word), Flat OPC ~65% (`docs/file-format-parity.md`).
- **RTL/East Asian depth** is incomplete: kashida; RTL in HTML/RTF (ODT RTL paragraphs are read and written; the Arabic interface's dialogs mirror).
- Mail merge sources: CSV/TSV/TXT and `.xlsx/.xlsm/.xls/.ods` only; no Outlook/Access/database sources, no email merge (`crates/formats/src/sheet.rs`).
- No in-app AI assistant (agent control is external, over CLI/MCP).
- Default shortcuts: **144** commands carry one, against Word's ~250 (`commands --json`, live on 0.20.1). `docs/gaps.md` gap 24 says 140 (macOS) / 158 (Linux/Windows), so its macOS number is four short of the build; the previous skill's 164 came from counting `.key(` call sites, 50 of which are not shortcuts.
- Screen-reader access is exposed through AccessKit and `ui.accessTree` but has not been tested with real NVDA/VoiceOver/Orca sessions.
- **Personal templates are narrow**: `.dotx`/`.dotm` only, one subfolder level, ≤500 entries, network folders refused, and the GUI picker needs a saved folder.
- The **desktop app's automation is not confined**: `--automation-read-root`/`--automation-write-root` apply to the headless MCP server only; `mcp --connect` is refused for that reason.
- Interface translations come from `storytold/craft-i18n`; without the `CRAFT_I18N_DIR` checkout at the pinned SHA the build is English only. 30 interface languages ship; Indonesian (`id`), European Portuguese (`pt-PT`) and Hebrew are missing (`crates/ui-egui/src/i18n.rs`).
- The View ▸ Window commands are **desktop-only**; in the web, CLI and a headless MCP session they are disabled (no other native window exists).
- A **Nightly** window refuses `--control` (exit 2), so do not script a Nightly install.
## How to operate
Launch (macOS):
- App: `open -a WordCraft` or `open -a WordCraft --args <file.docx>`. Binary inside the bundle: `WordCraft.app/Contents/MacOS/WordCraft`. Bundle id `ai.storyteller.wordcraft`.
- App flags: `wordcraft [--sample] [--control PORT] [--control-token TOKEN | --control-token-file PATH] [FILE…]`; `--version`, `-h|--help` (`apps/wordcraft/src/main.rs` usage). A bad `--control` port (0, non-numeric, out of range) or a missing option value exits with status 2.
- Environment variables that matter to agents: `WORDCRAFT_CONTROL_PORT`, `WORDCRAFT_CONTROL_TOKEN`, `WORDCRAFT_CONTROL_TOKEN_FILE`, `WORDCRAFT_PROFILE_DIR` (isolated profile incl. recovery/keys), `WORDCRAFT_NO_PREFS`, `WORDCRAFT_REGION=en-US`, `WORDCRAFT_LANGUAGE`, `RUST_LOG`. `WORDCRAFT_PASSWORD` is read by `wordcraft-cli` only, not by the app.
### Getting the CLI
From v0.20.0 the macOS app bundle ships the CLI: `/Applications/WordCraft.app/Contents/MacOS/wordcraft-cli` (`packaging/macos/package.sh` copies and signs it). The 0.20.1 bundle installed here has it and it prints `wordcraft-cli 0.20.1`. The ArtCraft Launcher does **not** put it on `PATH`, so find it in this order:
1. **In the bundle** — `/Applications/WordCraft.app/Contents/MacOS/wordcraft-cli --version`. Use this exact path, or add `Contents/MacOS` to `PATH` for the shell that scripts it. This is the copy that matches the app.
2. **On `PATH`** — `command -v wordcraft-cli`. A different version means the CLI and app have drifted: re-read *Verify against your installed version* before trusting ids.
3. **Install the release asset** — user-local, no `sudo`:
```sh
APP_VER=0.20.1
REL="https://github.com/storytold/wordcraft/releases/download/v$APP_VER"
ASSET="wordcraft-cli-$APP_VER-macos-universal.zip"
mkdir -p "$HOME/.local/bin" "$HOME/Downloads/wordcraft-cli" && cd "$HOME/Downloads/wordcraft-cli"
curl -fLO "$REL/$ASSET" && curl -fLO "$REL/SHA256SUMS.txt"
expected=$(grep -F "$ASSET" SHA256SUMS.txt | awk '{print $1}')
actual=$(shasum -a 256 "$ASSET" | awk '{print $1}')
[ "$expected" = "$actual" ] && echo "checksum OK" || { echo "checksum MISMATCH — stop"; exit 1; }
unzip -oq "$ASSET"
install -m 0755 "wordcraft-cli-$APP_VER-macos-universal/wordcraft-cli" "$HOME/.local/bin/wordcraft-cli"
"$HOME/.local/bin/wordcraft-cli" --version
```
The measured 0.20.1 asset is 117,589,298 bytes (112.1 MB) with SHA256SUMS line `939bcb44ba1530862e772e3733d99973206078add13b363b9db0d4f7c9d02f6d`. `~/.local/bin` must be on `PATH` (`export PATH="$HOME/.local/bin:$PATH"`). Never `sudo` into `/usr/local`, never unzip into `/Applications`, and never replace an existing `wordcraft-cli` of another version without telling the user. Building from source (`cargo install --path apps/wordcraft-cli --locked`) is a developer path only — a full Rust toolchain and minutes of compiling.
Document and window model: **several documents at once, each in a native window**, and a document can have several windows (`crates/ui-egui/src/windows.rs`). `file.new` opens a document in a new window; `view.newWindow` adds a window on the same document (its own selection, zoom, view mode and panes); `view.switchWindows {id?|window?}` lists documents and switches either; `file.closeDocument {id, force?}` closes a document (all its windows); closing one of a document's windows leaves it open. Automation targets a document with `doc` (engine commands name it `id`), and a window with the key `ui.inspect` → `windows`. Recovery is per document. On hosts where the root entry has no window of its own (`windowless_root`), input and screenshots target the active document window.
Core commands (exact ids, from `crates/engine/src/cmd/file.rs`, `crates/engine/src/cmd/tools/specs.rs`, `crates/engine/src/cmd/user_templates.rs`, `crates/engine/src/cmd/view.rs`, `crates/engine/src/cmd/font.rs`): `file.new {"template": "blank|sample|letter|resume|report"}` (an unrecognised name silently yields a blank document), `file.open {"path", "data"?, "password"?}`, `file.save {"path"?, "password"?, "markup"?, "format"?, "strict"?, "copy"?}`, `file.saveAs`, `file.encrypt {"password": string | null}`, `file.rename {"name"}`, `file.exportPdf {"path", "markup"?, "strict"?}`, `file.exportPng {"path", "page"?, "scale"?, "strict"?}`, `file.strictReport {"markup"?, "page"?}`, `file.printPdf {"path", "range"?, "pages"?, "parity"?, "copies"?, "collate"?, "paper"?, "pagesPerSheet"?}`, `file.close {"save"?, "force"?}` / `file.closeDocument {id, force?}`, `file.setAuthor {"name"}`, `file.properties`, `file.info`, `document.inspect`, `document.text`, `font.missing {}`, `review.trackChanges {"value": true}`, `review.restrict {"mode"?|"stop": true}`, `references.updateFields`, `file.listTemplates {"dir"?}`, `file.newFromTemplate {"path", "data"?, "password"?, "replaceBlank"?}`, `file.saveTemplate {"path"}`, `mailings.first|last|goToRecord|printDocuments`, `view.switchWindows {id?|window?}`, `view.stylesPaneDock`, `view.paperColor {"value": "document|green|cream|gray"}`.
Positions in command params and `document.inspect` are `{"story": "body" | {"part": n}, "path": [block, row, cell, block, …], "off": byteOffset}` (`docs/control-protocol.md`).
CLI recipes (verified usage strings):
```sh
wordcraft-cli convert report.docx report.pdf # docx, doc [read], pdf, odt, rtf, html, md, tex, txt, json, png, xml
wordcraft-cli convert report.docx report.pdf --strict # exit 3 and no file if a character or picture would be lost
wordcraft-cli render report.docx out.png --page 2 --scale 2 --strict
wordcraft-cli convert report.docx out.xml --format wordml2003 # or flatopc (the default Word XML Document)
wordcraft-cli convert report.odt report.docx # ODT is read and written; .ott/.fodt are save targets too
wordcraft-cli text report.docx # plain text, list labels kept
wordcraft-cli info report.docx # pages, words, paragraphs, properties (JSON)
wordcraft-cli inspect report.docx # structure as JSON
wordcraft-cli validate report.docx --json # structural .docx check: exit 0/1/2 (3 = usage/IO)
wordcraft-cli run --template sample --cmd 'select.text={"text":"Membership"}' \
--cmd format.bold --save out.docx
wordcraft-cli run --script job.json # commands + saves from a JSON file (- = stdin)
wordcraft-cli run --file in.docx --cmd 'file.strictReport={}' --print # report, writes nothing
wordcraft-cli convert locked.docx out.pdf --password '…' # or --password-file / WORDCRAFT_PASSWORD
wordcraft-cli commands --json # every command id, label, params, shortcut
wordcraft-cli mcp --author "Claude (copyedit)" \
--automation-read-root project --automation-write-root project/out
wordcraft-cli zotero refresh paper.docx --save paper.docx
```
Exit status: 0 on success, 1 on error with the message on stderr, **2** for `validate` incomplete, **3** for a strict refusal and `validate` usage/IO; a failing `run` writes nothing; `wrote <path>` goes to **stderr** only after a successful save. Through `run`, MCP or the control channel a strict refusal is an ordinary command error (`strict: …`), not exit 3.
Printing imposition headlessly (booklet or 2-up sheets):
```sh
wordcraft-cli run --file report.docx --cmd 'file.printPdf={"path":"booklet.pdf","pagesPerSheet":"booklet"}'
wordcraft-cli run --file report.docx --cmd 'file.printPdf={"path":"two-up.pdf","pagesPerSheet":2,"paper":"A4"}'
```
Using a personal template headlessly (no `file.new` template name exists for these; `listTemplates` demands a full path):
```sh
T="$PWD/templates"
wordcraft-cli run --cmd "file.listTemplates={\"dir\":\"$T\"}" --print # discovery
wordcraft-cli run --cmd "file.newFromTemplate={\"path\":\"$T/Contract.dotx\"}" \
--cmd 'select.text={"text":"[Client]"}' --cmd 'text.insert={"text":"Acme Ltd"}' --save out.docx
wordcraft-cli run --file out.docx --cmd "file.saveTemplate={\"path\":\"$T/Acme contract.dotx\"}"
```
`file.newFromTemplate` leaves the document untitled and dirty; save it outside the templates folder. Pass `replaceBlank: true` only when you know an untouched blank document is the active one.
Driving the running app (control channel):
```sh
open -a WordCraft --args --control 7981
cat "$HOME/Library/Application Support/WordCraft/control-key.local-7981"
# then one JSON object per line to 127.0.0.1:7981, authenticating once per connection:
{"id":1,"method":"auth","params":{"token":"<token>"}}
{"id":2,"method":"engine.execute","params":{"command":"text.insert","params":{"text":"Hello"}}}
{"id":3,"method":"engine.execute","params":{"command":"document.inspect","doc":1}}
{"id":4,"method":"ui.accessTree"}
{"id":5,"method":"ui.click","params":{"label":"Bold"}}
{"id":6,"method":"ui.screenshot","params":{"path":"shot.png"}}
{"id":7,"method":"file.closeDocument","params":{"id":1,"force":true}}
```
A first line that is not `auth`, or a wrong token, gets `authentication required` and the connection closes; a second `auth` gets `already authenticated`; a line over 1 MiB closes the connection. A request still queued after the timeout is cancelled and can never run; if it had started, the reply says the outcome is unknown — inspect before retrying. `ui.screenshot` captures the root viewport; select a secondary window first (`view.switchWindows {"window": <key>}`). `file.close {save: true}` writes then closes (a document with no file yet is an error), and `file.close`/`file.closeDocument` refuse unsaved changes unless `force: true`. `ui.closeWindow {"window"?}` presses a window's close button and brings up the Save prompt on unsaved work; it errors when no document window is open. Input methods (`ui.click`, `ui.move`, `ui.drag`, `ui.key`, `ui.type`, `ui.ime`, `ui.capsLock`, `ui.drop`, `ui.focus`) defer their successful reply, and `ui.clickText` replies *before* the click is processed — check the resulting document/widget state before a dependent step rather than replaying an edit that merely looks late.
Reading the app's own diagnostics: `<settings>/logs/wordcraft.log` (rotated, 16 MiB cap; the macOS settings folder is `~/Library/Application Support/WordCraft`, `WORDCRAFT_NO_PREFS` logs to stderr only). Unreadable `.docx` parts, pictures/fonts a PDF export left out, and recovered panics land there.
## Working with an AI agent
Legitimate, reliable agent work with WordCraft:
- **Do document work headlessly.** `wordcraft-cli mcp`, `wordcraft-cli run` (flags or `--script`) and `wordcraft-cli validate` need no window, no focus and no GUI driving. Verify your own work with `inspect_document` / `get_text` / `render_page` instead of screenshots.
- **Prove a PDF or PNG is complete.** Run `file.strictReport {}` (or the CLI's `--strict`) before delivering: the report says `"strict": "failed"` and names the code points and picture parts that would be missing (the CLI exits 3). This is the one check WordCraft offers against silent render loss; it covers glyphs and pictures, not layout or semantic loss.
- **Prove a `.docx` is structurally sound** with `wordcraft-cli validate` before handing it to another program. A pass says the package is internally consistent, not that Word renders it identically.
- **Work across documents**: open several with `open_document`/`file.new`, address each with `"doc"` (`list_documents` enumerates), close with `file.closeDocument {id, force?}`. A second window on one document is a desktop-only view, not a second document.
- **Clean up text with the paragraph tools** instead of retyping: `para.removeExtraSpaces`, `para.removeBlank`, `para.convertBreaks`, `para.spacesToIndent` and the rest take `{"scope": "all"}` and run as one undo step, preserving tracked changes.
- **Prepare inputs**: write Markdown/HTML/CSV/text in the shell and bring it in (`open_document`, `insert.textFromFile`, `mailings.recipients` for `.csv/.tsv/.txt` with encoding detection and `.xlsx/.xlsm/.xls/.ods`, `insert.picture` with a path or base64 bytes).
- **Produce deliverables**: convert/export to PDF/ODT/RTF/HTML/MD/tex/txt/PNG from the CLI (docx and pdf in one `run --script`), insert a filled table in one MCP call with `insert_table`, impose n-up sheets or booklets with `pagesPerSheet`, and hand the `.docx` on for Word.
- **Attribute your edits**: pass `--author "Claude (copyedit)"` (or `file.setAuthor`) and turn tracking on explicitly with `review.trackChanges {"value": true}`. Under Restrict Editing the author cannot be changed and most `file.*` commands are refused.
- **Confine yourself**: run the headless MCP server with `--automation-read-root`/`--automation-write-root` (a missing root grants none of that access; the roots must exist). This also bounds the personal-templates folder. The flags do not confine a running app.
- **Repair/interpret native projects**: the native format is `.docx` itself; `.json` is the engine's own model (media bytes and opaque parts included as base64). Recovery snapshots are per-document versioned JSON under `recovery/`, taken at most every ten seconds; the newest edits can be lost.
- **Check fonts before blaming layout**: `font.missing {}` lists the fonts the document asks for that are not installed; a `metricCompatible` substitute keeps line breaks, anything else can move pages. The same fonts decide what a strict export can draw.
- **Drive the GUI by names, not pixels, when you must**: `ui.inspect` reports the open dialogs (`id`, `parent`, `key`, `fields`) and `ui.accessTree` gives every control's id, role and name; open a dialog with `engine.execute {"command":"ui.dialog","params":{"name":"…"}}` (names are the route table's, e.g. `pageSetup`, `font`, `insertTable`) and answer it with `ui.dialog.set` / `ui.dialog.confirm` / `ui.dialog.cancel`.
- **Do not**: drive the GUI blind by clicking at guessed coordinates — prefer commands or `ui.accessTree` nodes; assume SVG/ICO/HEIC images load (they don't); assume `.doc` can be written (it can't); assume MHT can be saved (it can't); assume charts, SmartArt, OLE or native ink *from Word* can be edited (they are preserved through saves, not editable); assume `.docx` fidelity on real-world files (gap #1); assume a headless session writes recovery copies (it doesn't); call `ui.saveAsTemplate` headlessly (it opens a system dialog); expect `view.arrangeAll`/`view.sideBySide`/`view.syncScroll` to work headlessly (they need native windows).
- **Watch these footguns**: `file.saveTemplate` appends `.dotx` (`out.docx` → `out.docx.dotx`); `file.new {"template": "MyTemplate"}` silently gives a blank document — use `file.newFromTemplate {"path"}`; `file.listTemplates` without `dir` errors when no folder is saved; `review.trackChanges` without `value` *toggles* (it can turn tracking off in a document saved with it on); `format.highlight` without `color` toggles; `file.close`/`file.closeDocument` error on unsaved changes unless `{"force": true}` (which discards them), and `file.close` needs `save` or `force`; the control channel needs an `auth` line first — a per-request `"key"` is refused; after an `outcome unknown` from the control channel, re-running a mutation may apply it twice; `strict` on any target other than PDF/PNG is a parameter error, not a promise; a Nightly build refuses `--control`.
## Verification protocol
Alpha software that never crashes by design but is unproven on real-world files: trust nothing you did not re-open.
1. **Throwaway round-trip first**: new → type/format → save `.docx` → reopen → export `.pdf`, all in a scratch directory (`wordcraft-cli run --template blank --cmd … --save t.docx`, then `wordcraft-cli convert t.docx t.pdf`, then `wordcraft-cli inspect t.docx`). Repeat the round trip in `.odt` when ODT is the deliverable — its fidelity is good but self-estimated, not measured.
2. **Never trust a silent export**: the CLI prints `wrote <path>` (stderr) only after the command returned Ok, and a failing command writes nothing; still check the file exists, is non-zero, and re-read it. For PDF/PNG deliverables, run `--strict` (exit 3) or `file.strictReport` and act on the report; a pass is not proof of layout fidelity.
3. **Validate the package**: `wordcraft-cli validate out.docx` before shipping a `.docx` to Word, LibreOffice or an ATS. Exit 0 is a structural pass; 1 means a corrupt/error finding; 2 means a required input could not be examined.
4. **Compare structure, not just text**: `inspect`/`document.inspect` shows styles, tables, sections — use it to catch silent loss (the known failure mode is content dropped without a warning; gap #1).
5. **Keep the user's original untouched**: work on a copy; WordCraft's save replaces the file in place (safely, but in place). Recovery copies exist for the desktop app only, are unencrypted, and the newest edits before a crash can be lost.
6. **Version and back up** project files per session; update the app only between projects (the launcher auto-updates; the version you script against may change — this skill was measured on v0.20.1 source and its bundled CLI). Re-check the command set you script against with `wordcraft-cli commands --json`, and regression-test a local corpus with `cargo xtask docx-corpus --dir corpus/docx` if you work from source.
## Sources & evidence
- Repo: https://github.com/storytold/wordcraft (org `storytold`), inspected read-only at **tag `v0.20.1`**, commit **`f2e6403b9cf5284ea13101187aa365842a438f8e`** ("Merge pull request #8914 from storytold/release-0.20.1-hotfix", 2026-12-04 12:45:16 −0600; released 2026-12-04T20:49Z), audited **2026-12-05**; the `v0.20.0` ref (`72798d3d…`) was used for the tag-to-tag set diff.
- Installed app: `/Applications/WordCraft.app` — **0.20.1**, bundle id `ai.storyteller.wordcraft`, the same commit: its binary prints `wordcraft 0.20.1 (f2e6403b)` and its bundled `Contents/MacOS/wordcraft-cli` prints `wordcraft-cli 0.20.1`. This round's counts and the round-trip results below were **run live** with that CLI; the GUI was never launched.
- Live checks (all in a throwaway directory): `commands --json` → 679 ids, 144 with a shortcut; `parity` → 512/524 and headless yes 512 / no 12 (window 3, os 8, engine-gap 1); `run --template sample --save t.docx` → `wrote t.docx` on stderr, exit 0, `info` 2 pages / 41 paragraphs / 362 words; `convert` and `convert --strict` → exit 0 with a PDF; `file.strictReport` → `{"schema":1,"strict":"passed",…}`; `validate --json` → `{"verdict":"Pass",…}` with 60 checks and exit 0, a missing file exit 3; `run --script` wrote docx/txt/html/odt/rtf/md, and a script with a bad first command exited 1, `command 1 (id): …`, nothing written; an MCP `initialize`/`tools/list`/`resources/list` handshake gave protocol `2025-06-18`, 18 tools and both resources, while `mcp` without roots and `mcp --connect` refused as documented.
- Release asset for this tag: `wordcraft-cli-0.20.1-macos-universal.zip`, 117,589,298 bytes, SHA256SUMS line `939bcb44ba1530862e772e3733d99973206078add13b363b9db0d4f7c9d02f6d` (read with `curl -fsSIL` and `curl -fsSL` on the release; not downloaded).
- Key files read: README.md, ROADMAP.md, Cargo.toml, AGENTS.md, craft-i18n.rev, corpus/docx/README.md, packaging/macos/package.sh, docs/{gaps,file-format-parity,mcp,control-protocol,recovery,zotero,parity-checklist,ui-parity,testing,localization-parity,spelling-dictionaries}.md, apps/wordcraft/src/{main.rs,control_server.rs,profile_root.rs,build_channel.rs}, apps/wordcraft-cli/src/{main.rs,script.rs,automation_args.rs}, apps/wordcraft-web/src/{main.rs,host.rs,api.rs}, crates/engine/src/{io.rs,catalog.rs,session.rs,strict.rs,file_access.rs}, crates/engine/src/cmd/ (mod, file, tools/specs, tools/actions, user_templates, font, view, text, para, para/tools, mailings, review, protect, table, references, fields, md_source, objects/specs, objects/picture, page/fit_page), crates/engine/src/recovery/desktop.rs, crates/engine/tests/{strict_export,strict_pictures}.rs, crates/validate/src/lib.rs, apps/wordcraft-cli/tests/it/{strict,mcp_roots,closed_stdout}.rs, crates/docx/src/lib.rs, crates/docbin/src/lib.rs, crates/formats/src/odt.rs, crates/mcp/src/{tools,server,backend,backend/remote}.rs, crates/ui-egui/src/{windows,dialogs,documents,i18n,language_packs,printing,print_page,services}.rs, crates/ui-egui/src/{app/commands,app/files,app/command_board,control/handler,control/tests, ribbon/language,ribbon/home}.rs, crates/ui-egui/src/dialogs/ (find_replace, merge_dialogs, dialogs_insert/symbol, dialogs_refs/{index,cross_ref}), crates/ui-egui/examples/ui_shot.rs, crates/control-key/src/lib.rs, crates/zotero/, xtask/src/main.rs, xtask/src/docx_corpus.rs.
- Counts were re-measured on 2026-12-05 from this tag's code and again through the bundled 0.20.1 CLI; the method for each is in `evidence.md`. Nothing moved from v0.20.0: commands **679**, catalog **512/524**, CLI **11** subcommands and **22** flags, MCP **18** tools, control **28** methods, languages **30**, proofing **17**, dialogs **104**, extensions **23/16**, validate rules **60**. The one corrected figure is shortcuts: **144** commands (the previous skill's 164 counted non-shortcut `.key(` calls).
- Nothing was built or committed; the clone was read, and the installed bundle was read and run headlessly (its binary and bundled CLI `--version`/`--help`, and the CLI's document and MCP commands). The GUI was never launched, so GUI-only behaviour is still cited to code, docs and the app's own tests. Where the repo contradicts itself (command counts, dialog count, shortcut count, catalog coverage, Hindi proofing, gap #1) the contradiction is stated in place rather than resolved by guesswork.