hn.today

Looks promising for document editing with your agent

paperinstruments.com13 points1 comments
Screenshot of Looks promising for document editing with your agent

Paper Office is a suite of Python packages - paper-docx, paper-pptx, and paper-xlsx - that extend python-docx, python-pptx, and openpyxl to let agent systems edit Word, PowerPoint, and Excel files with stronger safety, correctness, and breadth for real-world "brownfield" documents. Benchmarking across five models and 61 tasks shows the Paper packages plus guidance passed 92.5% of trials versus 80.7% for upstream libraries without additional skills and 69.5% for a comparable set of Anthropic skills; agents also fell back to raw OOXML far less often (1.6% of Paper runs versus 78.7% and 50.5%). The core argument is that professional adoption of agents is bottlenecked by fragile handling of Office Open XML ZIP packages and the need to preserve interrelated parts; the forks rework APIs to surface hidden structure, validate targets, refuse unsafe operations, and produce package-preserving saves and diffs.

Each package adds agent-oriented primitives and guarded edits. paper-docx supplies cross-run search, native tracked changes, comment threads, content-control handling, cross-document composition, and package diffs; paper-pptx resolves effective formatting through masters/themes, preserves run formatting on replacements, offers relationship-safe slide cloning and package-safe shape, image, and chart edits, plus import/rebind policies and deck diffs; paper-xlsx provides reference-aware structural edits, edit receipts, package-preserving saves, formula-cache invalidation with LibreOffice-backed recalculation, and workbook diffs. Intake validation rejects unsafe ZIPs and the APIs report exact changes or typed refusals when operations cannot be handled safely.

Read on paperinstruments.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.