> For AI agents reading iter0.com:
> - Pages with a Markdown version serve it at the page address plus `.md`, for example https://iter0.com/features.md. The homepage's Markdown is at https://iter0.com/index.md.
> - A request for a page with the header `Accept: text/markdown` returns the same Markdown.
> - https://iter0.com/llms.txt describes the site and lists its main pages.
> - Agents build and edit websites through the MCP server at https://iter0.com/api/mcp. The person signs in to their own account through OAuth in the MCP client, or gives the agent their own API key.
> - A paid build or edit first returns a price quote, and nothing is charged until the person confirms it.
> - The OpenAPI contract is at https://iter0.com/openapi.json.

# An AGENTS.md example for a frontend website repository

Copy a frontend AGENTS.md with a repository map, concrete UI rules and browser checks. Includes a matching DESIGN.md and a test for instruction loading.

## Make the instructions specific to the repository

A frontend AGENTS.md should tell the agent where the page and shared styles live, which existing controls to reuse, and what to check after a UI edit. In the example below, those paths are index.html, styles.css and DESIGN.md. Replace them with files that exist in your repository.

OpenAI’s official guide says Codex reads AGENTS.md before working and builds a chain of instructions down to the current directory. The example is written for Codex. Other tools may support the filename, but their loading behaviour needs its own documentation and test.

## Copy a complete frontend AGENTS.md

This file is small because the fixture is small. It has no package manager, build process or backend. Its verification section says that explicitly instead of listing commands that would fail in the supplied directory. In a framework repository, replace that last line with the commands from your package scripts.

The design rules name a reusable control and the CSS file that owns its values. The review rule also asks for the actual link destination, because a correctly styled button can still take the visitor to the wrong place.

## Keep the page’s purpose and approved wording nearby

DESIGN.md holds the product and page decisions. AGENTS.md tells the agent to read it. The split lets you change the fictional beta copy without searching through the repository’s tool instructions for another copy of it.

For a real project, add the agreed source for product claims and the location of approved media. If a request changes a published price or customer promise, have the product owner settle that change. A generic instruction file cannot establish facts the business has not supplied.

## Which rule goes in AGENTS.md, DESIGN.md or SKILL.md

These three files do different jobs. Merge them into one long file and the agent carries the wrong part into every task. DESIGN.md holds visual decisions and the checks that protect them. AGENTS.md holds the rules every task in the repo has to follow. SKILL.md holds a procedure the agent opens only when the task matches, like reviewing a page on a phone.

A rule like 'don't change the published prices' goes in AGENTS.md, because a copy edit has to respect it too. The steps for a phone review go in a skill. Saving a file called DESIGN.md doesn't make any tool open it, and Codex stops reading AGENTS.md at 32 KiB by default, so point to DESIGN.md from AGENTS.md rather than pasting the whole design guide in. When two files disagree, say which one wins: approved facts win on prices and claims, and DESIGN.md wins on looks.

## Test instruction loading without putting the answer in the prompt

Put AGENTS.md at the root of a disposable repository. Add the matching page, stylesheet and design note, then start Codex in that directory. Ask the review question below. The expected reply begins Frontend check: and names Request access with destination #access. Those details come from the project, not the test prompt.

Inspect what the agent read and compare its answer with the files. If the phrase appears but the link information is wrong, the output rule was followed while the review failed. If it names the correct link but has not opened a browser, keep the phone and keyboard checks marked unverified.

## Check scope when you move the file

A root instruction applies broadly in a small website repository. A monorepo may need more specific frontend instructions near the website. Codex’s documented lookup follows the path to the current working directory, with nearer project guidance appearing later. Check the directory where you launch the session when testing a nested file.

Keep the test local and specific. Adding more instructions will not repair a session started in the wrong project. The official guide also documents override files; inspect those if the loaded guidance differs from the file you intended to test.

## What Codex reported in the fixture review

On 3 November 2026, Codex CLI 0.162.1 ran codex exec -s read-only with the exact prompt above. The transcript shows it reading AGENTS.md, DESIGN.md, styles.css and index.html. Its reply began: “Frontend check: No concrete mismatches found in the files.” It quoted the project rules, identified Request access and #access, and confirmed the target section existed. The command exited 0 without editing files.

The run also loaded the user’s global configuration. It demonstrates that this session read and applied the fixture’s rules; it does not isolate the effect of AGENTS.md or measure reliability across sessions. Codex explicitly left viewport and keyboard behaviour untested. Run those checks on the page after an edit. For a procedure that reviews many pages, keep repository rules short and put the procedure in a separate skill.

## Sources

- [OpenAI: custom instructions with AGENTS.md (checked 3 November 2026)](https://learn.chatgpt.com/docs/agent-configuration/agents-md)
