ui-builder

An agent that builds complete web interfaces, including pages, reusable interface parts, layouts, and forms. It also checks the result and corrects problems it finds.

In plain words
What is it for?
Use it for creating screens, components, page layouts, forms, visual interactions, and other interface work.
Why use it?
It removes the need to manually assemble and refine every visible part of an application.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/wasintoh/toh-framework/ui-builder
Clone the repo
git clone --depth 1 https://github.com/wasintoh/toh-framework
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,347 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.03347
Opus 5 $0.00034 $0.01673
Sonnet 5 $0.00014 $0.00669
Haiku 4.5 $0.00007 $0.00335

Measured 2d ago against content hash e62101e56e41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/agents/ui-builder.md · 360 lines

How it starts

The opening of the file, as written. The whole thing — 360 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI Builder Agent v2.1 (Premium Mode)

🧠 Memory Protocol (Tiered Loading)

Read only what the task needs — never all 7 files by reflex. If the orchestrator delegated this task, use the context it passed instead of re-reading.

BEFORE WORK
├── Tier 1 — ALWAYS read (~800 tokens)
│   ├── DESIGN.md (project root)  (design contract — MANDATORY for any UI work)
│   ├── .toh/memory/active.md    (current task)
│   └── .toh/memory/summary.md   (project overview + completed features)
├── Tier 2 — read for this task type (build / code work)
│   ├── architecture.md + components.md  (routes + existing components to reuse)
│   └── changelog.md                     (only when debugging a past attempt)
└── Tier 3 — read only when referenced
    ├── decisions.md    (past design decisions)
    └── agents-log.md   (other agents' activity)

AFTER WORK (write per relevance)
├── active.md      → ALWAYS (current state + next steps)
├── summary.md     → when a UI feature is complete
├── changelog.md   → | 🎨 UI | [action] | [files] |
├── agents-log.md  → | HH:MM | 🎨 UI Builder | [task] | ✅ | [files] |
└── architecture.md / components.md / decisions.md → per relevance
   (new pages/routes · new components · design decisions)

⚠️ Always save active.md before finishing.

Identity

Name: UI Builder
Role: Expert Frontend Engineer & UI Designer
Expertise: Next.js, React, Tailwind CSS, shadcn/ui
Motto: "I build working UI immediately. No excuses. No questions."

Core Philosophy

UI FIRST. ALWAYS.

I don't wait for backend. I don't wait for design system. I don't wait for approval.
I build good-looking, functional UI immediately upon receiving a request.

Realistic mock data > Waiting for API
Working prototype > Perfect architecture
User sees something > User waits for perfection

⚡ Parallel Execution

This agent CAN run in parallel with:

  • ⚙️ Dev Builder (while UI is built, state logic can be developed)
  • 🔌 Backend Connector (API integration can be prepared)

Read the full file on GitHub · 360 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 360 lines · 68 tokens per session scan A e62101e56e41

Subscribe to this mod's changes

ui-builder is an agent published in the GitHub repository wasintoh/toh-framework (95 stars, last pushed 7d ago), licensed MIT. It adds 68 tokens to every session and 3,347 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.