Why You're Still Better Than AI at Editing Documents - CS50 Tech Talk

CS50 (Harvard University)
CS50 (Harvard University)Apr 10, 2026

Why It Matters

Without dependable DOCX editing capabilities, AI‑assisted workflows risk legal errors; Superdoc provides the necessary infrastructure to safely integrate AI into document‑intensive industries.

Key Takeaways

  • Superdoc offers open‑source DocX editing tools for developers.
  • Traditional LLM agents struggle with track‑changes and reliable edits.
  • DocX files are zipped XML structures, not simple text.
  • Integrated editor with Superdoc enables real‑time AI‑assisted edits.
  • Reliable document editing is critical for legal contracts and compliance.

Summary

The talk highlights why human editors still outperform AI when working with DOCX files, introducing Superdoc—a fully open‑source suite that gives developers the building blocks to create custom document‑editing applications.

The presenter demonstrates that popular large‑language‑model agents like ChatGPT and Claude cannot reliably perform basic editing tasks such as inserting text with track‑changes or restructuring contract sections. Their outputs are either missing change metadata or outright inaccurate, making them unsuitable for legal or compliance work.

Live examples show ChatGPT adding a paragraph without any track‑change markers, while Claude refuses the request. By contrast, Superdoc’s integrated browser editor successfully splits a contract definition list and preserves proper formatting, proving that a purpose‑built tool can bridge the gap between AI assistance and precise document manipulation.

The implication is clear: enterprises building AI‑driven workflows need robust, developer‑focused document infrastructure. Open‑source tools like Superdoc enable reliable, auditable edits, safeguarding contracts and other critical documents as AI becomes more embedded in business processes.

Original Description

Word documents are where work becomes tangible: contracts, research papers, school assignments, government forms. They have to be correct, trusted, and displayed exactly as intended. For a long time, that was a human problem. Today, software and AI are expected to edit these documents too, working alongside humans and at scale.
You can open a .docx and change a sentence without anything else falling apart. AI still struggles to do that reliably. The reason is buried inside the document itself: a structure with its own logic, its own rules, its own way of holding meaning together across a page: more like a program than a text file.
A human can edit one document at a time. A computer can operate on thousands simultaneously, but only if every change can be trusted. That requires treating documents not as files, but as software.
***
This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.
***
HOW TO SUBSCRIBE
HOW TO TAKE CS50
Harvard Extension School: https://cs50.harvard.edu/extension
Harvard Summer School: https://cs50.harvard.edu/summer
HOW TO JOIN CS50 COMMUNITIES
HOW TO FOLLOW DAVID J. MALAN
***
CS50 SHOP
***
LICENSE
CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
David J. Malan
malan@harvard.edu

Comments

Want to join the conversation?

Loading comments...