> 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.

# DESIGN.md for Codex: keep your startup website consistent

Codex does not open DESIGN.md on its own. Add one line to AGENTS.md that points to it, test it on one page, and copy a complete DESIGN.md template.

## Use DESIGN.md to stop each coding session redesigning your website

Put the design decisions Codex cannot recover from the code in one DESIGN.md file. Then point Codex to it from AGENTS.md. That is the short answer.

You need this sooner than you think. A pre-launch website can collect three button styles before it has three customers. One session improves the homepage hero. Another adds pricing. A third makes the mobile menu work. Every change looks defensible in isolation, but the website starts to feel like it was built by three different companies.

DESIGN.md gives those sessions the same brief. It should say who the website is for, what each page needs to help them decide, which parts already exist, and how you will judge the rendered result. It is useful even if your design system is nothing more than one font, six colours, a button component and a layout you want to keep.

This guide is for founders and small teams using coding agents on a live or pre-launch website. By the end, you will have a file the agent can actually use, the instruction that loads it, and a first task small enough to judge honestly.

## Put judgement in Markdown and mechanics in code

DESIGN.md is guidance, not enforcement. It can explain that the main call to action should be obvious without turning the page into a billboard. It cannot stop an agent from adding a seventh accent colour. Your tokens, shared components, tests and browser review do that work.

Vercel reached the same boundary while building its own public design.md workflow. A direct port of the design rules still produced inconsistent pages, so the team paired the document with a stylesheet and an evaluation loop. In its published six-page comparison, the fuller system produced 57% fewer known failures. That result is useful direction, not a law: the sample was small, the checks covered known failures, and every tested page still had at least one blocking issue.

For a startup, the split is simple. Keep exact values in code. Use DESIGN.md for the decisions behind them: what the accent colour is allowed to signal, when a compact button is appropriate, why a proof section sits before pricing, or what must happen when a form fails. Finish in the browser, because no Markdown file can see a bad line break at 390 pixels.

## Inspect the website before you write the rules

Do not start with a blank document and describe the website you hope you have. Start with the repository. Find the file that loads the fonts, the CSS variables or theme tokens, the shared buttons and inputs, the layout components, the public assets, and one page you already trust.

Put those paths in DESIGN.md. “Reuse `src/components/ui/button.tsx`” settles an edit. “Keep buttons consistent” leaves the hard part to the next session. The downloadable example names `src/app/globals.css` and `src/components/ui/` because that fictional project uses those paths. Replace them with files that exist in yours.

A small startup website does not need an exhaustive inventory. Record the few things that should not drift: the loaded fonts, semantic colours, page container, spacing rhythm, shared controls, approved product images, and the route or screenshot that best represents the intended finish. If the code and the document disagree, tell the agent to report the conflict instead of quietly inventing a third answer.

- Name the actual token, component, asset and reference paths.
- State who the page is for and what they should be able to decide.
- Cover interaction states and narrow screens as well as the ideal desktop frame.
- Separate facts you can prove from claims the startup cannot support yet.

## Connect DESIGN.md to Codex with one AGENTS.md rule

[Codex automatically discovers AGENTS.md](/learning/tools-and-protocols/how-coding-agents-load-design-context), not every Markdown file in your repository. A root-level DESIGN.md can sit there unread unless you load it deliberately.

Keep the detailed design reference in DESIGN.md and add the instruction below to the AGENTS.md that governs your website. A root AGENTS.md is usually enough for a small repository. In a monorepo, put the rule closer to the website if that is where the relevant instructions live. Start a fresh Codex session after changing the file, then ask Codex which instruction sources it loaded.

Do not paste the entire design reference into AGENTS.md. The pointer belongs with the operating rules; the design decisions deserve their own readable file.

## Load the same file in Claude Code, Gemini CLI and Muse

The design decisions can stay the same when the instruction file changes. In Claude Code, add `@DESIGN.md` to the repository CLAUDE.md. Claude Code can also work with AGENTS.md, but when both files exist it reads CLAUDE.md by default, so an explicit import removes doubt.

Gemini CLI uses GEMINI.md for project context and supports `@file.md` imports. Add `@./DESIGN.md`, then run `/memory show` to check that the content is present.

Muse is used as a product name by more than one tool, and I could not find one authoritative instruction-file contract that applies to all of them. Do not assume auto-discovery. Tell the tool to read DESIGN.md and the paths inside it before editing, then ask it to summarise the constraints it will follow. If your version of Muse has its own project-instruction documentation, use that as the authority.

## Write rules that settle a real edit

“Make it modern” is not a rule. Neither is “use good spacing.” Codex still has to invent the answer, and the next session may invent a different one.

Imagine a pre-launch research product called Signalnest. Its founder wants a pricing page. A useful DESIGN.md does not ask for a clean, premium feel. It says that the page is for a product lead comparing the private beta with manual interviews; the primary action is to request access; the existing button lives in `src/components/ui/`; prices are not public yet; and the product screenshot must come from the approved assets folder. Those instructions affect the page.

Cover the decisions people notice when they use it. Name the loaded fonts and sensible line lengths. Explain what background, surface, border, accent and danger colours mean, while leaving their exact values in the token file. Record the focus, loading, validation, error and success states for forms. Say what navigation does on a narrow screen. Require real product media, useful alt text and reduced motion.

Then describe the reading order. A visitor should be able to work out what the product does, whether it is for them, how it works, what evidence is real, and what happens after the main action. That is more useful than telling the agent to build another stack of rounded cards.

- Typography: roles, sizes, measure, heading order and where fonts load.
- Color and spacing: semantic tokens, grid, containers and grouping rules.
- Components: reusable paths plus default, hover, focus, loading, error, empty and success states.
- Composition: the visitor questions, evidence order and primary action.
- Responsive and access: reflow, overflow, keyboard, contrast, alt text and reduced motion.
- Assets and verification: approved locations, forbidden substitutes, viewports and checks.

## Test the file on one page before you trust it

Do not ask an agent to apply DESIGN.md across the whole website. Choose one page with enough variety to expose weak instructions: a headline, a form, product media, proof and a narrow-screen layout. Ask the agent to inspect first, edit second and review the rendered page last.

The prompts below cover a new page, a review and a later update to the document. Each names what the agent must read, what it must not invent and what it needs to return.

You are looking for evidence that the file changed the work. The agent should identify the components it reused, raise conflicts, and show what happened in the browser. If it only paraphrases DESIGN.md, it has not completed the job. If it edits before opening the named files, fix that workflow before you give it more pages.

## Fix the document when the same correction repeats

A polished document can still be useless. The usual warning sign is that it describes taste but never names the product, audience or code. Replace “premium and advanced” with a decision such as “lead with the interview-search job and use one real product screenshot.”

Keep DESIGN.md out of jobs better handled elsewhere. It should not become a second stylesheet full of copied token values. It should not make up customer numbers, testimonials, integrations or security claims. It should not claim a browser review happened when the agent only read source code.

Update the file when a design decision changes or the same correction keeps returning. If three sessions add oversized hero copy, the typography or page-arrangement rule is probably missing. If one comparison table needs a compact exception, record the exception instead of changing the whole site. If agents keep making new buttons, point more clearly to the shared component.

Remove instructions that no longer match the website. Length is not control. A good reference shortens the path between your intent, the code that owns the decision and the browser check that proves it.

- Vague taste words with no visible decision or example.
- Token values duplicated in Markdown with no code owner.
- No setup showing how the chosen agent reads the file.
- Desktop-only rules and ideal states with no failure behavior.
- A long forbidden-style list with no audience, page job or evidence order.
- A source review presented as if it were a browser review.

## Use the complete startup website template

The example below is complete and fictional. Signalnest is a pre-launch customer-research product, not an iter0 customer or a claim about a real company. The file covers evidence limits, code paths, component states, composition, responsive behaviour, accessibility, motion, assets, the agent workflow and the final checks.

Copy it into your repository as DESIGN.md. Replace Signalnest, its audience, its claims and every path with facts from your project. Delete sections that do not affect your website. Add a rule when it settles a real choice or prevents a mistake you have seen more than once. The download contains the same raw Markdown shown here.

## Judge the rendered page, not the agent's summary

The final question is not whether Codex says it followed DESIGN.md. It is whether the intended visitor can understand the product and take the next step without losing trust. Run the relevant code checks, then inspect the page after the last edit.

Use realistic copy at a desktop viewport and a narrow viewport. Read the first screen, then the whole page. Tab through every changed control. Trigger form errors, loading and success. Check heading order, focus, contrast, alt text, overflow and reduced motion. Follow the main link to its destination. If a check cannot run, state the limit instead of calling the page verified.

Google's people-first guidance asks whether someone leaves feeling they learned enough to achieve their goal. That is the right closing test here. You should now be able to create DESIGN.md, connect it to your coding agent, give it one bounded page, and judge the result yourself.

## Sources

- [OpenAI Codex: Configuration reference (checked 6 Nov 2026)](https://learn.chatgpt.com/docs/config-file/config-reference)
- [OpenAI's AGENTS.md guide](https://learn.chatgpt.com/docs/agent-configuration/agents-md)
- [Vercel's design.md](https://vercel.com/design.md)
- [Vercel's design.md agent workflow](https://vercel.com/blog/how-our-agents-build-on-brand-pages-with-design-md)
- [Claude Code project memory and imports](https://code.claude.com/docs/en/memory)
- [Gemini CLI context files](https://geminicli.com/docs/cli/gemini-md/)
- [Google's people-first content guidance](https://developers.google.com/search/docs/fundamentals/creating-helpful-content)
- [WCAG 2.2](https://www.w3.org/TR/WCAG22/)
