Guidelines
Guidelines hold what your agent should know that the design system cannot tell it. Edit them in Dex; your agent gets the change with your next message.
There are three kinds, and an agent reads them in this order:
| Kind | File | For |
|---|---|---|
| Workspace guidelines | DESIGN.md in the content folder |
Every file in the workspace. |
| Your guidelines | people/<you>/guidelines.md |
Only your own agents, on top of the workspace guidelines. |
| File spec | A spec placed on the canvas outside any section | One file. It adds to the workspace guidelines and wins where the two differ. Several are read left to right, top to bottom. Each section can have a spec of its own too, placed in it, which adds to the file spec for work in that section. |
The folder is called files/, and the agent tool that reads a file is still prototype: only the words in the interface changed.
Where to edit them
- Workspace guidelines: Guidelines in the sidebar.
createdraftsDESIGN.mdfrom your design system (tokens from your styles, and your components) for your agent to finish with you, or starts it empty (--design-md none). - Your guidelines: Your guidelines, under your name in the sidebar. The file is kept under your name, which Dex takes from your GitHub account or git user. Dex refuses to save into someone else’s
people/<them>/guidelines.md, though anyone can read it, since it is committed. - File spec: place a spec on the canvas outside any section and edit it there, or open it full screen; Escape goes back to the canvas. Decisions live in the spec they bind, as
> [!DECISION]callouts: agents record them there withdecide, and anyone can write one with /. Older files may still have aDECISIONS.md; Dex no longer reads it. - Context: supporting files in
context/are listed under the workspace guidelines when there are any, and open in a dialog. - The design system’s own guide, when
createlinked one (--design-md ./DESIGN.md, kept asdesignSystem.guide): agents get it with your guidelines. Edit it where it lives.
Each editor saves markdown as you type, and says so only when a save fails (Not saved). Type / for headings, lists, checklists, tables, callouts (note, warning, decision), code and a divider; in a file spec, also the file’s frames and your design system’s components, shown live. Markdown shortcuts work too (## , - , **bold**). Only what you change is rewritten: the rest of the file is saved exactly as it was, so its diff is your edit.
Each block is plain markdown any reader shows:
| Block | Markdown |
|---|---|
| Checklist, table, code | GitHub’s own: - [ ], pipes, fences |
| Note, warning, decision | GitHub’s alerts: > [!NOTE], > [!WARNING], and Dex’s > [!DECISION] |
| A frame of the canvas | , by the frame’s uid, so moving or renaming it keeps it |
| A component | , its props after ? |
/instructions, /settings/instructions and /settings/guidelines, where Dex kept them before, now open /guidelines.
Design tokens in front matter
A DESIGN.md can start with YAML front matter in Google’s DESIGN.md format: name, description, then colors, typography, rounded, spacing and components.
---
name: Harbor
colors:
primary: "#0F2A3D"
rounded:
sm: 4px
---
## Overview
The editor shows the prose only. Above it, Tokens lists what the front matter holds: colours as swatches, type styles, radii, spacing and component names. They are read-only in Dex: change them in the file. Saving in Dex and live sync keep the front matter exactly as written, byte for byte, even when it is not valid YAML.
How agents get them
brieftells an agent where each of them is: the workspace guidelines and your own in full while they are short, and the context files, the open file’s spec and its sections’ specs by their paths, to read when the work needs them. An agent need not call it before it starts.- Claude Code: before each message, the hook
createadds passes on what changed: the workspace guidelines, your guidelines, a linked design system guide, the open file and its file spec, and the waiting thread count.npx dex doctorchecks the hook. - Other agents: read the files, or call
brieffor where they are.
What to write
What the code cannot tell an agent, briefly:
- Who you design for and what they are trying to do.
- The bar, such as loading, empty and error states on the canvas, real content, mobile width.
- Decisions already made.
Your guidelines are for how you work: the kind of critique you want, what to ask before building, the words you prefer.