---
title: "Codex and Copilot: where the design rules actually go"
description: "Both read a file on every request, and both will invent a design if that file says nothing. The filenames, and what belongs inside."
date: 2026-11-12
canonical: https://plagio.dev/blog/codex-copilot-design-rules
source: plagio.dev
---

# Codex and Copilot: where the design rules actually go

*Both read a file on every request, and both will invent a design if that file says nothing. The filenames, and what belongs inside.*

> Written by the plagio team. plagio is an MCP server that opens a public page in a real browser and
> returns its markup, design tokens, hover states and motion, so an agent builds from measurements
> instead of guesses. Connect it with:
>
> ```
> claude mcp add --transport http plagio https://plagio.dev/mcp --header "x-api-key: YOUR_KEY"
> ```
>
> A key is a free week at https://plagio.dev/dashboard. The site check at https://plagio.dev is free and needs no account.

*We make plagio, so read this with that in mind. Everything about other products was checked on 12 November 2026 against the sources at the end.*

Codex and GitHub Copilot get less of the design conversation than Cursor and Claude Code, and the same thing happens in them: the interface arrives looking like the average of the web, because nothing in the repository says otherwise.

## The files

| Tool | File it reads |
| --- | --- |
| Codex | AGENTS.md, in the project or in ~/.codex |
| GitHub Copilot in VS Code | AGENTS.md, or .github/copilot-instructions.md |

Codex's docs describe AGENTS.md as the place for instructions it picks up automatically; VS Code's docs describe custom instructions for Copilot, including the repository-wide file. Both are read without you asking, which is the whole point: a design that depends on you remembering to paste it is not a design system.

## What goes in it

Values and constraints, nothing decorative. Colours as hex. Font families by name. The type scale, the spacing step, the radius, the shadow. Then the short list of things not to do, which for most teams is the generic kit: pill badges, icon tiles, three cards of equal weight, a gradient standing in for a decision.

Keep it under a page. An instruction file long enough to be thorough is long enough to be skimmed.

## The input the file cannot hold

A rules file can only repeat what you already know about your product. When the honest answer is "I want it to feel like that site", the thing to supply is that site's measurements, not a screenshot of it: [the picture does not carry the numbers](https://plagio.dev/blog/why-ai-cant-copy-a-design-from-a-screenshot).

If your tool supports MCP, that reference can be fetched during the request. If it does not, [extract the tokens once](https://plagio.dev/blog/extract-design-tokens-from-any-website) and paste them into the instruction file.

## Honest limits

These paths change with releases, so check your tool's docs if a file is not being picked up, and we have not compared the tools against each other on design quality. The pattern holds regardless: one file of values, read every time, plus a real reference when you have one.

## Where plagio fits

plagio is an MCP server, and we make it. Codex, or Copilot calls it on a public page, it opens that page in a real browser, and it returns the markup, the design tokens, the hover states and the motion. That is the reference step above, done with measurements instead of a description. It does not replace your design file: keep both.

## Questions people ask

**Does Codex read AGENTS.md?**

Yes, its docs describe AGENTS.md in the project, or in ~/.codex for instructions you want everywhere.

**Where do Copilot's instructions go in VS Code?**

AGENTS.md or .github/copilot-instructions.md, both described in the VS Code custom-instructions docs.

**What should an instruction file contain for design?**

Values: hex colours, font names, the type scale, spacing, radius and shadow, plus a short list of defaults to avoid. Keep it under a page.

## Sources

- [AGENTS.md, Codex docs](https://learn.chatgpt.com/docs/agent-configuration/agents-md)
- [Custom instructions, VS Code docs](https://code.visualstudio.com/docs/copilot/customization/custom-instructions)
- [Improving frontend design through skills, Anthropic](https://www.claude.com/blog/improving-frontend-design-through-skills)

---

Canonical HTML version: https://plagio.dev/blog/codex-copilot-design-rules
Every article: https://plagio.dev/blog
