As “one-click code generation” becomes part of developers’ daily routine, the open-source community is facing a hidden crisis: black-box logic, hard-to-maintain “spaghetti code,” and insufficiently reviewed “AI slop” are quietly eroding the foundations of software engineering. In response to this industry pain point, The Document Foundation (TDF), the maintainer of the long-established open-source office suite LibreOffice, has formally drawn a red line and announced extremely strict new rules for large language models (LLMs) and AI-assisted programming.

image.png

Core red line: not just disclosure, but “understanding every line”

TDF’s new rules are not a blanket ban on AI. Instead, they use a tightly controlled process to ensure that AI remains a tool, not a way to shift responsibility. The new rules set out four hard requirements:

1. Prior approval and mandatory disclosure: Contributors must obtain approval before using LLMs to assist development, and when submitting code (a commit), they must clearly disclose their use of AI tools.

2. A strict “human explanation” obligation: For patches completed with the help of LLMs, contributors must be able to clearly explain, in their own words, the principle and purpose of every line of modified code. This means the era of “copy, paste, and submit” is completely over.

3. Defining AI no-go zones: The use of LLMs is explicitly prohibited for writing commit messages, code comments, bug reports, and messages to other developers.

4. Sensitive-area isolation: Some areas of the core codebase are directly designated as off-limits for LLM use, cutting off the potential risks posed by AI-generated content at the physical level.

Deeper logic: embrace efficiency, but defend the value of “human code”

In its statement, TDF candidly acknowledged that LibreOffice itself does not contain any AI features, and that AI-assisted programming is already an unavoidable reality in the software development community. The foundation has not completely banned AI; as long as the final contributed code is of acceptable quality, it will still be accepted.

However, behind this “limited openness” is a deep commitment to the essence of software engineering. Code is not just instructions that a machine can run; it is the crystallization of human logic and a contract for team collaboration. If developers cannot even restate the logic of AI-generated code in their own words, then the maintainability, security, and future iteration of that code will be a disaster. TDF’s move is precisely intended to build a solid firewall between “AI-driven efficiency” and “code quality control.”

Industry insight: the open-source community’s “battle to protect code quality” is in full swing

LibreOffice’s choice is by no means an isolated case; it is a microcosm of the broader trend in software development today. Even Linux founder Linus Torvalds has clearly stated that his openness to AI-assisted programming is premised on developers strictly following the rules and taking ultimate responsibility.

With the spread of AI coding assistants (such as GitHub Copilot, Cursor, and others), open-source projects stand at a crossroads: should they allow AI-generated content to run rampant and cause projects to decay, or establish strict review mechanisms to ensure long-term health? TDF’s new rules provide a highly valuable reference model—technology can assist thinking, but responsibility must never be outsourced.

In the future, outsiders will closely watch how LibreOffice’s code reviewers put these rules into practice. But one thing is certain: when “being able to explain the code you wrote” once again becomes a basic quality for open-source contributors, software development is returning to its core values: clear logic, reliable engineering quality, and a sense of reverence for every line of code.