DocsGitHubBlog
Industry & Trends

Documentation is the new SDK

AI agents have made documentation a runtime concern. The contract between your product and the developer ecosystem used to live in your SDK. Increasingly, it lives in your docs.

A developer's IDE with an AI assistant pulling structured context from a documentation site

Ten years ago, when a developer wanted to integrate against a piece of software, they read the SDK. The SDK was the artifact: typed methods, generated clients, official examples maintained by the vendor. The documentation was the explanatory layer wrapped around it — useful, sometimes essential, but a layer.

That has changed. The developer integrating against your product today doesn't open the SDK first. They ask their AI assistant. Claude Code, Cursor, Windsurf, Copilot, the in-house agent the platform team built last quarter — these tools read your documentation, infer the API surface, and produce the integration code in the developer's editor before the developer has scrolled past your homepage.

The contract between your product and the developer ecosystem used to live in your SDK. Increasingly, it lives in your docs. And the implications of that shift are bigger than they first look.

The new integration path

Watch a developer integrate against a modern API today and the workflow is recognisably different from the one a few years ago.

  1. They describe what they want to do, in natural language, to an AI assistant inside their editor.
  2. The assistant retrieves the relevant documentation, parses it, and writes the integration code.
  3. The developer reviews, edits, runs.
  4. If something breaks, the assistant pulls the relevant troubleshooting page and proposes a fix.

The SDK is still in the picture, but it's no longer the artifact the developer reaches for. The documentation is. And the SDK only works as well as the docs that explain it. In many cases, the assistant ignores the SDK entirely and writes raw HTTP calls because the docs explain the protocol better than the SDK explains its own surface.

This is not a hypothetical. It's the path the largest cohort of new integrations is already taking. The teams that have realised it are pouring engineering effort into their documentation. The teams that haven't are watching their integration funnel quietly slow down without understanding why.

What this means for the people writing docs

Three things change once your documentation is the primary integration surface.

Doc velocity becomes product velocity. When your docs lag behind your API, you don't just confuse human readers — you ship wrong code into your customers' codebases via their AI assistant. The assistant retrieves the stale page, generates an integration that targets last quarter's endpoint, and the developer doesn't notice until production. The cost of stale docs has moved from annoyance to broken integration, and there's no way to walk that back without raising the bar on doc velocity to match the bar on code velocity. Docs that ship in the same pull request as the code, reviewed by the same engineers, are no longer a stylistic preference. They're table stakes.

Doc accuracy becomes an SLA. A docs site that's 95% correct is fine for humans, who notice the mismatch and adjust. It's a 5% failure rate for an AI agent, which doesn't notice and doesn't adjust. The number of paths through your product is large; even small accuracy gaps compound into a steady stream of wrongly-written integrations. Treating accuracy as an SLA — with monitoring, with bug bounties, with an on-call rotation — is going to feel obvious in a year or two.

Doc retrievability becomes an architectural concern. If an LLM can't find the right chunk of your documentation, it generates one. The chunk it generates is plausible, well-formatted, and almost always wrong. Making your docs retrievable — through structured headings, semantic URLs, sitemaps, llms.txt, per-page markdown mirrors, MCP servers — is no longer the SEO team's problem. It's the integrations team's problem, because every retrieval failure is a malformed integration in a developer's editor.

Why ownership matters more, not less

A common reaction to this shift is to lean further into proprietary documentation platforms. The pitch is appealing: hand off the AI piece to a vendor, let them handle the retrieval, the embeddings, the chat widget. Ship and forget.

I think that's exactly the wrong move, and the reason is structural. If your documentation is now your runtime contract with the developer ecosystem, then your documentation is critical infrastructure. Critical infrastructure that you don't own — that lives on a platform that controls retention, access, and the ability to export your work — is a single-vendor dependency on the contract between you and your users.

Proprietary documentation platforms made sense when docs were marketing collateral. The blast radius of a vendor change was a few hours of pain and a sitemap migration. In the agent era, the blast radius is every integration written against your product while the migration is in flight. That's a much bigger number, and it's one you cannot model accurately because the integrations happen inside your customers' editors, outside your view.

The alternative is straightforward: own the source of truth (markdown in your own Git repository), own the deployment (your own domain, your own SSL), own the retrieval surface (sitemap, llms.txt, MCP server you can reason about), and own the right to walk away from any tool you use without a migration project. None of that is incompatible with using a managed platform. It just means picking one whose model assumes you'll outlive the relationship.

What to do this quarter

If you're a docs lead, an engineering lead, or a founder who happens to own the docs, the practical agenda fits on a sticky note:

  • Treat every API change as a docs change. Block PR merges on doc updates the way you block them on tests.
  • Move docs into the same Git repository, or an adjacent one with the same review workflow. The further away the docs live from the code, the staler they get.
  • Ship a sitemap, an llms.txt, and per-page markdown mirrors. All three are cheap to generate and they meaningfully reduce hallucinations from agents pointed at your product, because they let an agent fetch the exact page it needs instead of guessing from rendered HTML.
  • Stand up an MCP server in front of your docs. Even a basic one — pages, search, fetch — gives every agent in the ecosystem a clean retrieval surface.
  • Audit your top integration paths from the perspective of an LLM, not a human. Read each page as a chunk: does it stand alone, does it cite the right context, does it carry working code? If not, fix it before the next agent reads it.
  • Pick documentation tooling whose model assumes ownership, not lock-in. A platform that hands you back the source as plain markdown in a repository you control is a platform that respects the new shape of the work.

The broader pattern

This isn't the first time a piece of the developer experience has been promoted from supporting cast to lead role. The README went from optional to essential. The OpenAPI spec went from generated artifact to source of truth. The changelog went from courtesy to contract. Each shift was driven by tools that took the artifact more seriously than the humans who wrote it. Each shift left the teams who anticipated it stronger and the teams who didn't scrambling to retrofit.

Documentation is in the middle of the same arc, and the deciding factor is the AI assistant a developer now opens before anything else. The teams who are writing docs as if their primary reader is a retrieval system aren't being fashionable. They're being early.

Doccupine is built on the assumption that this shift is real and structural, which is why every site we provision ships with a Git-backed source of truth, an MCP server, and an AI assistant ready to wire up to your LLM provider of choice. Whatever platform you pick, those are the things to ask for.

Start your free trial

If you're rethinking your documentation strategy in light of all this, I'd love to compare notes. Drop me a line at [email protected] — every email gets a real reply.

Luan Gjokaj
Written byLuan Gjokaj

On the Doccupine team, building the open-source, AI-ready documentation platform.