Guidelines
Write what your agent should know that the design system can't tell it, and see how agents read it.
Guidelines tell your agent what the code can’t, such as who you design for and decisions already made. There are three kinds, and an agent reads them in this order:
| Kind | File | Applies to |
|---|---|---|
| Workspace guidelines | DESIGN.md in the content folder |
Every file in the workspace. |
| Your guidelines | people/<you>/guidelines.md |
Only your own agents. |
| File spec | Specs placed on the canvas outside any section | One file. Where it differs from the workspace guidelines, the file spec wins. A spec placed in a section adds to it for that section. |
Where to edit them
- Workspace guidelines: open Guidelines in the sidebar.
createdraftsDESIGN.mdfrom your design system’s tokens and components for your agent to finish with you. - Your guidelines: open Your guidelines, under your name in the sidebar. Anyone can read them, because they’re committed, but only you can save them.
- File spec: edit a spec on the canvas, or open it full screen.
- Decisions: write them in the spec they apply to, as
> [!DECISION]callouts. Agents record decisions with thedecidetool, and you can add one with /.
Each editor saves as you type, and says Not saved only when a save fails. Type / for headings, lists, tables, callouts and code. In a file spec, / also adds the file’s frames and your design system’s components. Dex rewrites only what you change, so the diff is your edit.
Every block is plain markdown:
| Block | Markdown |
|---|---|
| Checklist, table, code | GitHub’s: - [ ], pipes and fences |
| Note, warning, decision | > [!NOTE], > [!WARNING] and Dex’s > [!DECISION] |
| A frame of the canvas |  |
| A component |  |
Add design tokens
A DESIGN.md can start with YAML front matter in Google’s DESIGN.md format, with colors, typography, rounded, spacing and components:
---
name: Harbor
colors:
primary: "#0F2A3D"
rounded:
sm: 4px
---
Tokens, above the editor, shows them. Edit tokens in the file, not in Dex. Dex keeps the front matter exactly as written.
How agents get them
- Claude Code: before each message, the hook
createadds passes on what changed in the guidelines and the open file’s spec - Other agents: call the
brieftool, which says where each guideline file is
What to write
Write what the code can’t tell an agent, briefly:
- Who you design for, and what they’re trying to do
- Your quality bar, such as loading, empty and error states, real content, and mobile widths
- Decisions already made
Use your own guidelines for how you work: the kind of critique you want, what to ask before building, and the words you prefer.