AGNT · Figma MCP · Autonomous Engineering Case Study

YOCCI

A designer's Figma file became production-grade, hand-coded HTML — researched, rendered, vision-analyzed, and rebuilt pixel by pixel by an AI. No human wrote a single line.

0
Autonomous Runs
0
Tool Calls
0
Minutes of Work
0
Image Fills Triaged
0
SVGs Hand-Coded
0
Lines Written By Humans
Scroll · The Whole Story ↓
Chapter 01 — The Brief

It started with
one casual message.

On June 25, 2026, inside an ordinary AGNT chat, Nathan sent Annie a single line. No spec. No requirements doc. No design tokens. Just a Figma file connected through the Figma MCP server and a vibe.

Nathanhey test the Figma MCP and create something in HTML for me
AnnieOn it. Let me authenticate with Figma, pull the file, and see what we're working with…

What followed was a four-act conversation where every reply from Nathan raised the bar — and Annie's autonomous loop (plan → act → observe → evaluate → improve) answered each one. This page is the complete, unabridged trace of that work — reconstructed from AGNT's execution telemetry.

Chapter 02 — Four Acts

Every tool call.
Every iteration.

The build spanned four orchestrator runs totaling 56 tool executions. Select an act, then expand any step to see the real payloads pulled from AGNT's trace store.

Chapter 03 — The Pipeline

How an AI reads a Figma file.

A Figma document is a deeply-nested JSON tree — this one was 2,731 lines across dozens of frames. Annie never loaded it raw into her context. Instead, the file was cached to disk and spelunked surgically with query tools, while the render API produced pixels for her vision model.

Auth Vault
agnt_auth →
get_valid_token
Figma MCP
set_api_key →
authenticated
REST Cache
get_file depth 4
98 KB · 2,731 lines
query_data
stats · slice · search
zero context bloat
Render API
get_image @2x →
PNG exports
Claude Vision
analyze_image →
8,700-char spec
Hand-Coded
HTML · CSS · SVG
photos base64 only
TRACE · RUN 1F08667D · AUTHENTICATION HANDSHAKE
// Annie retrieves the Figma key from AGNT's encrypted auth vault — no key ever shown to the user
▸ agnt_auth { operation: "get_valid_token", provider_id: "figma" }
✔ { access_token: "figd_••••••••••••••••••••••••••••••" }              219 ms

▸ mcp__mcp-figma__set_api_key { api_key: "figd_••••…" }
✔ "API key set successfully and saved to config file"            3.4 s

▸ mcp__mcp-figma__get_file { fileKey: "KtktcCn6MGe070tr92AbuZ", depth: 4 }
✔ "File data saved to local cache" → file_KtktcCn6MGe070tr92AbuZ.json   5.0 s

// 97,995 bytes of design JSON — parsed via query_data, never dumped into context
▸ query_data { operation: "stats" } → 2,731 lines, keys: document, components, styles…
▸ query_data { operation: "search", query: '"name"' } → 3 top-level frames found
     10:1391 (mobile screens) · 6:2192 (cards) · 9:1426 (playground table)

What the render API gave her —
and what vision made of it.

Figma render — mobile screens
Frame 10:1391 — Mobile Screens
PNG @2x · analyze_image → "luxury e-commerce mobile app called YOCCI"
Figma render — card components
Frame 6:2192 — Card Components
PNG @2x · component-level export for pixel-accurate recreation
Figma render — playground table
Frame 9:1426 — Playground Table
PNG @2x · rebuilt as semantic HTML with SVG progress rings
Chapter 04 — The Vision Triage

Photo, or code?
An AI decides, image by image.

Act IV's core problem: the Figma file contained 27 raw image fills, but most were UI elements that should be code. Annie downloaded every fill and ran a one-sentence vision classification on each — photographs got embedded as base64; everything else was rebuilt in HTML/CSS/SVG. These are her actual, unedited verdicts:

Photo · Embed
"A young male model wearing a dark jacket with embroidered roses and gold patches, photographed outdoors."
fill-14 · 259 KB → hero
Photo · Embed
"A young woman with natural afro hair, smiling brightly while wearing a cozy yellow sweater against a light gray background."
fill-1 · 211 KB → product
Photo · Embed
"A luxury storefront illuminated at night on a quiet city street."
fill-23 · 74 KB → product
Photo · Embed
"A woman in a red sweater — clean studio product photography."
fill-5 · 22 KB → product
Photo · Embed
"A colorful designer boutique interior with patterned displays."
fill-15 · 64 KB → service
Photo · Embed
"A man in a hat and gray shirt — lifestyle portrait."
fill-13 · 43 KB → service
Photo · Embed
"An ornate dragon artwork — used for the AR try-on feature section."
fill-22 · 491 KB → AR panel
API Rejected
"⚠ image exceeds 10 MB maximum: 12,793,952 bytes > 10,485,760" — Annie logged the failure, skipped the asset, and kept the loop moving.
fill-8 · 12.8 MB · graceful degradation
9/27

Of 27 image fills discovered in the Figma file, only 9 survived triage as true photographs worth embedding (1,449 KB total). The other 18 — buttons, icons, gradients, status bars, UI chrome — were rebuilt as code: 24 inline SVGs, pure-CSS phone frames, and a hand-written design-token system. That decision is the entire difference between a screenshot and a living artifact.

Chapter 05 — By The Numbers

Twenty-six minutes,
measured to the millisecond.

0
Tool Executions
MCP, vision, JS, file I/O, query_data
0
Vision Analyses
from 8.7k-char design specs to one-line verdicts
0
Credits Consumed
≈ 1 credit per second of autonomous work
0.2 KB
Final Code Weight
all markup, styles & scripts — photos aside

Tool Calls Per Act

ACT I
23
ACT II
8
ACT III
1
ACT IV
24

Wall-Clock Duration Per Act

ACT I
8m 28s
ACT II
3m 24s
ACT III
0m 53s
ACT IV
13m 23s
2.24MB

The final artifact is a single self-contained file: 26.2 KB of hand-written code carrying 2.21 MB of vision-approved photography. It runs offline, emails as an attachment, and needs no build step, no server, no dependencies — the file is the deliverable.

Chapter 06 — The Artifact

This is not a screenshot.
It's the shipped file, running live.

Below is yocci-coded.html — the actual 2.24 MB artifact Annie shipped on June 25 — embedded byte-for-byte and executing inside this page. Click through its tabs: Mobile Screens, Match Cards, and the Playground Table. Every button, star rating, progress ring, and phone bezel you see is code, not pixels.

yocci-coded.html · 2.24 MB · self-contained · zero dependencies

Decoding embedded artifact…

Byte-for-byte authentic. The original file was base64-embedded into this case study by a build script — Annie never pasted its 2.2 MB through her own context window. The iframe you're looking at decodes and boots the artifact entirely client-side.