Docs for AI agents: what they need to read and write, and how to set a team up

An AI agent needs docs as plain text it can read, rules for where to find them, a way to write that a person can review, and comments it can answer. Keep docs as markdown in a repo, write one AGENTS.md that points to them, and give agents read access first.

Start free

What an agent needs to read

An agent such as Claude Code, Codex, Claude or ChatGPT reads text. It does best with plain markdown: headings, lists and tables, with no content locked in screenshots, slide decks or pages that need a login it cannot do.

It also needs to know where to look. An agent that opens a repo reads the instruction file there first, usually AGENTS.md or CLAUDE.md, so that file should say where the plans, specs and decisions live and which ones are current. Each doc should say, near the top, what it is for and when it was last true.

What an agent needs to write

Writing is where teams get nervous, and they are right to. An agent that edits a shared doc should leave a trail: which agent, on whose behalf, and what changed. It should be easy to see the change and undo it.

The safest default is that an agent's edits arrive as suggestions a person accepts, and that the files that steer every agent, such as AGENTS.md, always work that way. Start agents on read-only access and turn writing on one doc area at a time.

What an agent needs to ask and answer

Docs go stale because nobody is sure whose job it is to fix them. If an agent can read a comment on a doc, answer it, and mark the thread resolved, a question like this section is out of date becomes a small task instead of a meeting.

Tasks work the same way. A task with an owner and a due date can belong to a person or an agent, and either can finish it.

How to set a team up

1. Keep docs as markdown files in your repo. Do not copy them into a second system that drifts.

2. Write one AGENTS.md at the top of the repo that lists where plans, specs and decisions live and what an agent must never do. If you use Claude Code, have CLAUDE.md import it, so there is one copy.

3. Give the people who do not use git a way to read and comment on the same files. Almanac does this: docs stay plain markdown in GitHub, with a folder tree, sharing by email or link, live editing, comments and history on top.

4. Connect agents at https://almanac.io/mcp from Claude Code, Codex, Gemini CLI, Claude or ChatGPT. Each acts as the person who signed in and sees only what that person can see.

5. Start with Can read. Move to suggested edits once you trust what the agent reads, and look at the history, which names the agent, before widening access.

What to avoid

Do not give an agent more access than the person it works for has. Do not let two copies of the same rule live in two places, because the agent will find the old one. Do not write docs that only make sense with a meeting's worth of context, because the agent was not in the meeting.

Almanac is not a public docs site builder. If your goal is docs for customers, a publishing tool is a different job.

Questions people ask

What format should docs be in for AI agents?

Plain markdown is the safest. Agents read text well, and markdown keeps headings, lists and tables without extra markup.

Should an AI agent be allowed to edit shared docs?

Yes, with care. Start read-only, then let it suggest edits a person accepts, with a history that names the agent.

Do I need both AGENTS.md and CLAUDE.md?

Not as two copies. Keep the rules in AGENTS.md and have CLAUDE.md import it, so every agent reads the same text.

Can people who do not use git work on the same docs?

Yes. In Almanac they read, comment and edit the same markdown files that live in your GitHub repo.

Related

Start free