A

Amp

DESIGN.md for Amp

Use DESIGN.md with Amp threads and remote agents to preserve product taste across fast, collaborative coding sessions.

Dima BravenDima Braven5 min read

See it in practice

Related DESIGN.md references

Browse all →

Amp works best with repository context

Amp coding agent homepage
Amp’s threads, CLI, and subagents all benefit from design context that lives with the repository.

Amp is a coding agent built around threads, repository context, and remote agent workflows. A design file gives those sessions durable context that would otherwise be lost when a thread ends or another engineer picks up the work.

  • Read DESIGN.md before planning UI
  • Reference existing components before inventing new ones
  • Keep corrections in the file for the next thread

Use AGENTS.md and DESIGN.md together

AGENTS.md can tell Amp how to operate in the repository; DESIGN.md tells it how the output should look. This separation keeps prompts short and lets the same visual rules work with other agents.

AGENTS.md
For user-facing changes, read DESIGN.md first.
Run the project lint, typecheck, and tests before handoff.

A strong Amp thread opener

Open with the product goal, the target route, and the design contract. Ask Amp to cite the existing pattern it will reuse and to list the states it will verify. That turns a fast thread into a reviewable implementation plan.

thread opener
Read DESIGN.md and inspect the existing page pattern.
Implement the smallest coherent change.
Verify focus, loading, empty, error, mobile, and reduced-motion behavior.

Make the next thread better

If Amp repeatedly chooses the wrong spacing, color, or component variant, update DESIGN.md with a concrete rule and an example. A repository-level correction compounds across threads, teammates, and remote agents.

Share visual context across threads

Amp is organized around threads that can be saved and shared, and its workflow includes subagents, the Oracle, a CLI, and a web UI for thread sharing. Those surfaces make collaboration faster, but a shared thread is not the same thing as a shared design system. A teammate may continue the work from a different thread, or a subagent may focus on a narrow implementation detail without seeing the decisions that came before. DESIGN.md gives every participant the same baseline before the conversation branches.

Use the first thread to establish the design contract and the implementation plan. A follow-up thread can then reference the route, the relevant components, and DESIGN.md rather than restating every visual decision. When a visual review finds a correction, put the durable rule in the file and link to the changed section in the handoff. The next thread benefits immediately, and the rule remains useful even if the task moves from the CLI to an editor integration or a remote session.

Amp workflowWithout DESIGN.mdWith DESIGN.md
Shared threadThe next person infers taste from conversation history.The repository keeps the visual contract visible.
Subagent passA focused agent optimizes its slice and breaks the larger rhythm.Every slice uses the same tokens and component states.
CLI or IDEThe same task gets different UI depending on the entry point.The source of truth travels with the codebase.
Review handoffFeedback is repeated in each future thread.A correction becomes a reusable design rule.
thread opener
Read DESIGN.md before editing.
Inspect the closest existing component and name the pattern you will reuse.
Keep the change within the existing visual system.
Report responsive, loading, empty, error, focus, and reduced-motion checks.

Use thread handoffs as design memory

A useful Amp handoff contains more than “implemented.” Name the route, the components reused, the design rules that mattered, and the states checked. If a subagent or Oracle helped with a decision, record the conclusion in plain language rather than assuming the next thread can recover it from hidden context. This makes the visual reasoning portable between the CLI, editor integrations, and shared web threads.

Keep one thread focused on one coherent task. A thread that first changes CSS, then rewrites an unrelated API, and finally returns to a form is difficult to review because its context becomes noisy. For a UI task, ask Amp to inspect localhost when possible and compare the new screen with a nearby established surface. The review should look at hierarchy and interaction, not only whether the route compiles.

DESIGN.md should remain the durable layer. Threads are excellent for exploration and collaboration; the repository is where a product decision becomes repeatable. When a correction is likely to matter again, update the rule and include the file path in the handoff. The next agent can then start from a better baseline instead of repeating the same visual mistake.

  • Route and user outcome
  • Existing pattern and tokens reused
  • States verified in the browser
  • Open questions and proposed DESIGN.md updates

That discipline is especially useful when a team shares threads. A later contributor can continue from the implementation and the design contract, while a future agent can use the same files without depending on a private conversation. Threads stay fast; the repository steadily becomes more precise.

For visual work, include one sentence about what should not change. For example: preserve the existing button hierarchy, keep the table density, or do not introduce a new accent color. Negative constraints are often more valuable than another adjective because they stop a fast agent from filling an ambiguous gap with a familiar default.

A strong Amp handoff also names the next safe step: open the route, compare it with the reference screen, or update one rule before starting another thread. This gives collaborators a concrete way to continue without reopening every prior decision.

The payoff compounds: each thread can stay focused, while the repository becomes a clearer guide for the next agent, teammate, and review. DESIGN.md is the durable shared context; the thread is the fast workspace for applying it.

Use DESIGN.md with a real product reference

Browse curated DESIGN.md examples from product teams, design systems, developer tools, SaaS dashboards, and AI-native apps. Use them as references before your agent builds the next screen.

Related guides

Frequently asked questions

Why use DESIGN.md with Amp?

It preserves visual context across threads and collaborators instead of relying on one chat history.

What belongs in the first Amp prompt?

The target route, the relevant existing component pattern, the instruction to read DESIGN.md, and the states to verify.

How should repeated mistakes be fixed?

Turn them into explicit, example-backed rules in DESIGN.md so future threads inherit the correction.