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

PersonDesigner

Briefs, answers questions, approves.

Outside designChat app

Requests from product and engineering.

Brief, answers and approval

Perry · one plugin, installed per designer

GuardrailsHooks
  • On start load the graph
  • On reply send back answers that break the contract
  • On write only the orchestrator writes memory
guard
OrchestratorPerry

The only part that talks to people. Frames, plans, delegates and reports.

reads, writes
MemoryProject graph
  • Short term work that can still be undone
  • Long term approved work only
  • History replaced decisions, kept
Delegates by risk, in order
  1. 1Before building
    Fast lenses · light modelFrame the work

    Research, content, system, inclusion, measurement

  2. 2Building
    Builders · deep modelMake it

    Figma, front-end, 3D

  3. 3After building
    Deep 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

Builds with the library, delivers for approval
Design systemGavel

Variables and components; strict unless a person authorises more.

DeliveryFigma file or code

Back to the designer, who marks it as done.

Memory and hooks live inside Perry. Specialists never talk to people, and they work in sequence, not at the same time.

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

0123123a person decides1 Collect decisions2 Brief3 Model and lenses4 System mode5 References6 Craft loop7 Evaluation8 Integration9 Report
  1. 01

    Collect decisions

  2. 02

    Brief

  3. 03

    Model and lenses

  4. 04

    System mode

  5. 05

    References

  6. 06

    Craft loopBuild, render, critique, fix; 3 rounds at most, then a person decides

  7. 07

    Evaluation

  8. 08

    Integration

  9. 09

    Report

  10. 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

InRequest

A brief from a designer, or a request from outside design through the chat app.

Into Perry

Perry

Question 1Is anything unclear?

Anything material: who it is for, the scope, a decision nobody made.

Yes
If yes · ExitAsk 1 or 2 questions

Recommended option first. With no way to ask, it stops instead of guessing.

No
Question 2Does it fit the system?

Gavel applies strictly unless a person says otherwise.

No
If no · ExitAsk for authorisation

Extending the design system needs a person; exploring runs only on an explicit command.

Yes
WorkBuild and render

Made inside the design system, then rendered so it is judged as people will see it.

Then
Question 3Does it pass the critic?

An independent critic checks the render against an eight-point floor.

No
If no · LoopFix, three rounds at most

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

Yes
OutA person approves

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.

A project’s memory, as a graph A fictional feature: organising your cases

BriefOrganise your casesReferenceRecordings: deleted by mistakeReferenceGavel: Toast, ButtonDecisionConfirm before deletingDecisionDelete, with UndoDecisionDelete several at onceRuleButtons say what they doScreenCase list v1ScreenCase list v2ScreenBulk selectionTest6 of 6 recovered a caseTestContrast, dark modeTestUndo after bulk delete

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.

Rubric, same prompt and model. Total 75 to 85 out of 100.
DimensionAloneAgent
Brand5 / 1514 / 15
Understanding17 / 2019 / 20
Information architecture12 / 1513 / 15
Responsive and accessible10 / 1512 / 15
Craft and calm13 / 1512 / 15
States and recovery14 / 1511 / 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.

Without Perry · screen

A sign-in that could belong to anyone

The same brief, unguided: an invented gradient, a logo that isn’t the product’s, two fields where one would do, and social buttons nobody asked for.

01 / 04

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.