---
title: "Discussion on \"Improve AEO - How to Write Developer Documentation for AI Agents and LLMs\" | Hashnode"
description: "Discussion on \"Improve AEO - How to Write Developer Documentation for AI Agents and LLMs\". A practical AEO style guide with before-and-after rules for headings, tabs, OpenAPI specs, llms.txt, and runnable code samples."
url: "https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Improve AEO - How to Write Developer Documentation for AI Agents and LLMs](https://tech-writing.hashnode.dev/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms?utm_source=hashnode&utm_medium=feed)

A practical AEO style guide with before-and-after rules for headings, tabs, OpenAPI specs, llms.txt, and runnable code samples.

Nov 20 · 21 min read · tech-writing.hashnode.dev  
Updated 5d ago  
Read the article

-   [#aeo](https://hashnode.com/tag/aeo)
-   [#technical-writing-1](https://hashnode.com/tag/technical-writing-1)
-   [#llm](https://hashnode.com/tag/llm)
-   [#ai](https://hashnode.com/tag/ai)
-   [#documentation](https://hashnode.com/tag/documentation)
-   [#technology](https://hashnode.com/tag/technology)

## Written by

[Harshit Satyaseel](https://hashnode.com/@meharshit)

@meharshit · Bengaluru, India

  
[View profile](https://hashnode.com/@meharshit)

Leading product documentation at SUKI.AI

I’m Harshit Satyaseel, a documentation engineer with 7+ years of experience building developer documentation at TIBCO, Confluent and Suki.AI. I own the developer docs end-to-end, from API and SDK references to docs-as-code pipelines, automation and AI-ready documentation. I’m the author of The AI-Native Technical Writer, and I write about documentation, AI workflows and technical writing careers on Medium, including Level Up Coding. I also mentor technical writers 1:1 on careers, interviews and using AI well in their work.

## Responses 7

Markdown supported · ⌘↵ to post

[Adam Lewis](https://hashnode.com/@nark3d)

[4d ago](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b04b521f8b1027661f31a56)

Tabbed content catching agents out rings true, though the deeper trap is that a deprecated endpoint is usually still documented somewhere, just not where the agent looks first. Your fix of giving each section a self-contained opener works right up until someone writes the same fact twice and the two copies drift. Keep the duplicate-prone material in one place and let the agent-facing summaries point at it.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[4d ago](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b04b521f8b1027661f31a56#reply-6b04bc7b16c5d1cde7655cf6)

Turning that subsection test into a CI check on docs pull requests is the cleanest way to keep it continuous without letting an agent edit docs unsupervised. When a PR modifies an endpoint or SDK snippet, running the isolated-section probe automatically and posting any missing imports or broken parameters as PR review comments gives writers a repeatable feedback loop while keeping human approval on the actual wording.

[Harshit Satyaseel](https://hashnode.com/@meharshit)

[4d ago](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b04b521f8b1027661f31a56#reply-6b04ca40ade493dda7ffc1f7)

True, also duplicate stuff must be points out better to llms. If you use mintlify you get a visibility component where you can do that in your mdx page and it's only visible to the agents not humans

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 21](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b0175cbe4383966bf2d3955)

Making every section intelligible when retrieved out of order without portal chrome is the shift most docs teams underestimate. When a coding agent pulls a single subsection that omits the import statement, SDK version, or auth header shown three headings earlier, it fills those blanks from training memory and invents deprecated paths.

Exposing tabbed language examples as explicit, parseable blocks rather than client-side UI state also eliminates a major silent failure mode. Self-contained runnable snippets help human copy-pasters and automated retrievers at the exact same time.

[Harshit Satyaseel](https://hashnode.com/@meharshit)

[6d ago](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b0175cbe4383966bf2d3955#reply-6b024f979b8236092b44d455)

Thanks, AEO is super important. A lot of tech writers are not even aware of this.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[6d ago](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b0175cbe4383966bf2d3955#reply-6b02b8504c5a0cfcbe2d692b)

One easy way to make the gap visible to docs teams is feeding isolated subsections to a fresh coding agent without the rest of the portal and asking it to write a minimal client call. Seeing the agent invent an outdated import or omit an auth header makes the value of standalone sections obvious in five minutes.

[Harshit Satyaseel](https://hashnode.com/@meharshit)

[5d ago](https://hashnode.com/posts/improve-aeo-how-to-write-developer-documentation-for-ai-agents-and-llms/6b0057e518ec429b143c70c1/comment/6b0175cbe4383966bf2d3955#reply-6b03aaa052faf65de4605199)

Absolutely, however that is ok for one time. We must need a way to first check which you pointed out well then make a system that auto corrects and learn things automatically.
