GenOffice lets coding agents build Office files headlessly

Genspark has released GenOffice, an open source office suite with editors for documents, spreadsheets, presentations, PDFs, HTML and Markdown. Its command-line interface, agent skill and Model Context Protocol server let tools such as Claude Code, Codex and Cursor create and edit .docx, .xlsx and .pptx files without launching a graphical app.

  • Platforms: macOS, Windows and Linux
  • License: Apache 2.0 for the core suite, with separately licensed enterprise code under ee/
  • Interfaces: six desktop editors, a shared AI panel, CLI tools, an agent skill and an MCP server
  • Status: version 0.10, with more than 7,600 GitHub stars and 55 open issues when this article was prepared
  • Source: the project repository and project website

Office files survive targeted edits

Office Open XML files such as .docx are ZIP archives containing XML, media and related assets. Many office suites parse that content into their own document model and regenerate the file during export, which can disturb formatting or unsupported elements.

When GenOffice opens a Word file, it archives the original by hash and parses top-level elements into a block tree. Each block retains a docxIndex reference and its original XML slice. During a save, the editor rewrites dirty blocks and splices them into the existing document.xml; untouched slices retain their original bytes.

Because the editor avoids rewriting unchanged XML, elements such as styles, comments, tracked changes, equations and ink annotations have a better chance of surviving a localized edit. The saved archive can still differ at the file level because changed XML and ZIP packaging must be written. GenOffice applies the same preservation-first principle to spreadsheets and presentations, while the repository documents the Word block-splicing mechanism in the most detail.