ApprovalUI

Clickable HTML approval pages for UI fixes in terminal agents

View the Project on GitHub floomhq/approvalui

Architecture

ApprovalUI is intentionally tiny. It has one job: turn a structured JSON spec into a self-contained HTML page that a human can review in a browser.

Data flow

agent writes fixes.json
        │
        ▼
  ┌─────────────┐
  │  approvalui  │  ← Python CLI
  │   (render)   │
  └─────────────┘
        │
        ▼
  approval.html  ← single file, no server
        │
        ▼
 human reviews in browser
        │
        ▼
 generated review text → pasted back into agent

Why HTML and not a TUI or chat?

Terminal agents read text. Humans read pixels. UI bugs are spatial, so the feedback medium should be spatial too.

A browser page gives you:

What the page contains

The generated HTML bundles everything it needs:

There are no external dependencies, no server, and no build step.

Extending it

Because the output is a single file, you can:

See advanced.md for examples.