Published · 8 min read
How to create an llms.txt file for your docs
Learn how to create llms.txt for your documentation: what goes in it, how to write or generate one, and how to keep it accurate after each release.
Published · 7 min read
Find out which tools can draft documentation updates after a pull request merges, and how human review keeps bad doc changes from going live.
Is there a tool that automatically updates documentation when a pull request is merged? Yes, several. But the question buyers actually ask is more specific: what tools can automate documentation updates after a PR merges, with a human reviewing before anything goes live? The second half is what separates a useful tool from a risky one. This guide covers what the category looks like, what "human review" should mean in practice, and what to ask a vendor before you connect a repository.
Who updates your docs when the code changes? On most teams, it's whoever remembers.
Postman's 2026 State of the API Report surveyed 8,953 developers, architects and executives. In it, 49.7% name incomplete or outdated documentation as their top collaboration blocker. In the same survey, 44.4% say developers write and update docs themselves. The people shipping the change are also the people expected to notice every page it broke.
This isn't new. In Postman's 2023 report, when asked what worries organizations most after API developers leave, respondents said the biggest issue by far is outdated documentation. In that same 2023 report, 52% of respondents said lack of documentation was the biggest obstacle to consuming APIs.
The fix has been known for years. The 2021 Accelerate State of DevOps Report found that teams that created documentation and updated it as the system changed have higher quality documentation. It also found that teams with quality documentation are more likely to have clearly defined ownership of it.
So the goal is clear: update docs as the system changes, with a named owner. The hard part is doing that at the pace code now merges. That's the job automation is supposed to take on.
"Documentation automation" is a loose label. The category covers three different jobs: tools that regenerate references, tools that sync code snippets, and tools that update guides after a pull request merges. Which one you need depends on which part of your docs goes stale.
These rebuild API references from a spec or from the code itself. If your OpenAPI description is accurate, the reference stays accurate. They don't touch the tutorial that still describes the old auth flow, or the help center article with last quarter's screenshots.
These tie code samples or doc passages to specific files, so a change to the code flags or refreshes the linked content. Code coupling suits internal engineering documentation. It's less help for public guides, where the wording around the snippet is usually what goes wrong.
This is the category the question is really about. A tool here reads the merged change, works out which documentation pages it made inaccurate, and drafts the fix as a reviewable pull request.
Tools that draft updates from code changes, before or after merge, include Thally Track, ReadMe's GitHub AI Writer and DocuWriter.ai, among others, and they all do it in different ways. The differences matter more than the shared label:
A note on comparisons. The roundups you'll find, including vendor-written ones, are mostly reviews of official capabilities and public documentation, not hands-on accuracy benchmarks. Treat them as a map of who claims what, then test on your own repositories.
Plenty of tools say they update docs automatically. Plenty also say there's a human in the loop. Ask what the loop is made of.
There's a good reason to insist on review. In the 2025 Stack Overflow Developer Survey, 84% of respondents are using or planning to use AI tools in their development process. Yet more developers actively distrust the accuracy of AI tools (46%) than trust it (33%), and only 3% report highly trusting the output. Your readers are in that distrustful group. So are your reviewers, and their caution is useful.
A review step worth the name has four properties.
Docs as Code, as Write the Docs describes it, means writing and publishing docs with the same tools as your code: issue trackers, version control, plain text files, code review and automated tests. A doc update that arrives as a PR lands in the queue your team already works, with a diff, a history and a way to revert. A "review" button inside a vendor dashboard is weaker if the content lives somewhere you can't diff.
GitHub lets repository administrators require that all pull requests receive a specific number of approving reviews before someone merges into a protected branch. If a collaborator tries to merge with pending or rejected reviews, they get an error message. GitHub also records the state of the diff at the point a pull request is approved. If your docs publish from a protected branch, human approval is a rule the platform enforces for bots and people alike, and it leaves an audit trail.
A reviewer shouldn't have to re-derive why a page changed. A good draft points to the merged PR, the specific lines that changed, and the doc sentence those lines made wrong. Without that, review turns into either a rubber stamp or a research project.
A change to internal test helpers should not wake anything up. A tool that opens a docs PR for every merge trains your team to ignore it. Being able to say "no docs impact" is as important as drafting well.
Ask every vendor which triggers, destinations, review steps and plans they support. Then get specific.
That last point matters more as code assistants become a main way developers read your docs. A page that's wrong on your site is also wrong in every answer an AI tool gives about your product.
You don't need to automate everything on day one. A cautious rollout looks like this.
If you want to try this without a commitment, Thally Track runs that impact analysis on your recent merged pull requests through a read-only GitHub App, and nothing publishes without human approval.
Whichever tool you pick, hold it to the same standard. It should tell you which pages a merge made wrong, show the evidence, draft the fix as a pull request, and wait for a person to approve it.
Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.
Create a managed site, or use the open-source engine to run Thally yourself.