Perry An AI design agent
An AI design agent with a memory, a fixed way of reasoning and the habit of learning from its failures. It asks before it invents and treats the design system as a rule.
- Where
- Escavador, a Brazilian legal-tech platform
- When
- August–October 2026
- My part
- Agent design, rules, evaluation, human review loop
- With
- Product design and engineering; adopted by the design team as a plugin
- ~1/3 to 93%brand score on the same task, same model
- +13%on the design rubric, 75 to 85
- 100%of attempts to bypass the rules blocked
- ~4 in 10AI approvals caught by people before shipping
In short
- Problem
- General AI models ignored the design system. Their output matched the brand only about a third of the time, and the context had to be explained again in every conversation.
- What I did
- Designed an agent with a project memory, a fixed nine-step reasoning cycle with quality gates, and rules learned from each failure, then shipped it to the design team as a plugin.
- Outcome
- Brand match rose from about a third to 93% on the same task and model, and every attempt to bypass the rules was blocked. It costs about a quarter more tokens, and a blind review with people is still to come.
Problem
In mid-2026, using AI for design meant explaining the context again in every conversation. Memory files went missing, and the generated screens all looked alike.
Giving the model more context seemed the obvious fix, but it wasn’t enough. Even with the brand in hand, general models ignored the design system: their output matched the brand only about a third of the time, so every result needed rework.
Solution
Perry is built on three things a general model doesn’t have: a memory, a fixed way of reasoning, and the habit of learning from what went wrong.
It remembers. Every project keeps a graph of what was decided, referenced and built, each item with a status. Only approved work becomes long-term memory, and replaced decisions are kept as history, so Perry can tell why something changed. In four weeks one project’s graph grew about fivefold.
It reasons the same way every time. A request goes through nine steps and eight quality gates: ambiguity stops it to ask, the design system is a rule that fails closed, and an independent critic scores the rendered work before a person approves it.
It learns. Each version answered a failure I had watched happen, from guessing to approving its own weak work, and each answer became a rule the agent now enforces in code. It then reached the team as a plugin, with a shared starter kit and a chat channel for requests from outside design; a designer still marks the work as done.
Architecture
Everything below is one plugin. The orchestrator is the only part that talks to people; memory and hooks sit beside it, and the specialists work behind it in order: lenses frame the work, builders make it, deeper lenses judge it and send it back when it falls short.
Perry, end to end
Briefs, answers questions, approves.
Requests from product and engineering.
Perry · one plugin, installed per designer
- On start load the graph
- On reply send back answers that break the contract
- On write only the orchestrator writes memory
The only part that talks to people. Frames, plans, delegates and reports.
- Short term work that can still be undone
- Long term approved work only
- History replaced decisions, kept
- 1Before buildingFast lenses · light modelFrame the work
Research, content, system, inclusion, measurement
- 2BuildingBuilders · deep modelMake it
Figma, front-end, 3D
- 3After buildingDeep lenses · deep modelJudge it
Craft critique, evaluation, handoff
Judge sends it back to Make: fix and critique again, three rounds at most, then a person decides
Variables and components; strict unless a person authorises more.
Back to the designer, who marks it as done.
How it reasons
The logic is the same for every request: nine steps, eight gates that must pass, and a craft loop that builds, renders, critiques and fixes, three rounds at most before a person decides. At the centre, a rubric of nine dimensions; a zero on any of them blocks delivery.
Every request, the same cycle
- 01
Collect decisions
- 02
Brief
- 03
Model and lenses
- 04
System mode
- 05
References
- 06
Craft loopBuild, render, critique, fix; 3 rounds at most, then a person decides
- 07
Evaluation
- 08
Integration
- 09
Report
- 8 gates on the inner ring must pass. The rubric scores 9 dimensions from 0 to 3; a 0 on any of them blocks delivery. Point at or tap any mark on the drawing to read it.
When it stops
Three questions stand between a request and a delivery, and each one has an exit. When the agent can’t answer one, it stops or hands the decision back; it never guesses past a gap.
Three questions before anything ships
A brief from a designer, or a request from outside design through the chat app.
Perry
Anything material: who it is for, the scope, a decision nobody made.
Recommended option first. With no way to ask, it stops instead of guessing.
Gavel applies strictly unless a person says otherwise.
Extending the design system needs a person; exploring runs only on an explicit command.
Made inside the design system, then rendered so it is judged as people will see it.
An independent critic checks the render against an eight-point floor.
After the third failed round, the decision goes back to a person.
Every answer and every decision is written to memory, so the next request starts from them
The agent never marks its own work as done.
How it remembers
Memory is a graph, not a chat log. Decisions, references, screens, rules and tests link to each other, and each carries a status, so the agent loads what was approved and knows what was replaced. About 45% of a mature graph is history, kept on purpose.
Point at or tap a node to read it; drag one to pull the graph. Lines show how items depend on each other.
- Approved, long-term
- In progress, short-term
- Replaced, kept as history
A fictional feature, drawn small enough to read. A real project’s graph reached 47 items and 88 relations in four weeks.
The rubric
In a controlled benchmark, everything stayed equal except Perry’s context: same prompt, same model, a fictional case. Alone, the model made a calm, competent page for a brand that doesn’t exist; with Perry, it made the product’s own. This is how each version scored.
| Dimension | Alone | Agent |
|---|---|---|
| Brand | 5 / 15 | 14 / 15 |
| Understanding | 17 / 20 | 19 / 20 |
| Information architecture | 12 / 15 | 13 / 15 |
| Responsive and accessible | 10 / 15 | 12 / 15 |
| Craft and calm | 13 / 15 | 12 / 15 |
| States and recovery | 14 / 15 | 11 / 15 |
One run, with synthetic data. The rubric organises evidence; it doesn’t replace a review with people.
Sign-in, without and with Perry
The same brief, with and without the agent: the screen first, then its structure in Figma. Without Perry, every layer carries its own value; with it, every layer is bound to Gavel.
The screen without Perry is an illustration of an unguided result; the one with Perry is in production.
Cost and limits
Quality has a price, and it belongs in the case: Perry uses about a quarter more tokens and a third more time, and in the benchmark it scored lower on craft and on states. A blind review with people is planned but not yet done, so the gains above come from rubrics, not from users.
Along the way
- The agent diagnosed itself.
Asked why its screens all looked alike, it answered: “I didn’t do an intermediate visual critique.” That answer became the build, render and critique loop.
- A meeting that never reached the tests.
A memory audit found that decisions from a recent meeting had never fully reached the test suite. The fix was a memory index that records where each rule came from.
- Rigour first cost twice the time.
In the first benchmark, strictness doubled the time with no matching visual gain. That is why the design system now fails closed instead of being renegotiated on every request.