All personal projects

Interface

Interface

Generative UI for a coding agent, from interactive replies to versioned artifacts

Commits
67
PRs
2
Lines of code
37,434

Repository snapshot

The idea

Give a coding agent a set of tool measurements and ask where time is going. In Interface, the answer can be a graph whose edges change when I switch between call count, median latency, and error rate. I can open the measurements behind a claim, then save the answer as an artifact I can return to.

I built Interface to demonstrate generative UI in the middle of real work. IF1, the coding agent, can choose how to present an answer and compose several pieces into a view specific to the question. The coding workspace uses TUFFUI and shadcn-style components, with CopilotKit carrying the agent’s UI calls. UI SDK is part of the component-authoring toolkit I’m evaluating as I add to what IF1 can assemble.

In use

What makes it useful

An answer can be a control

IF1 uses show_ui to put a chart, table, evidence panel, or question directly in the conversation. It can blend different cards into a story and decide which details should open on demand. An interactive question sends my selection back as the next turn, so the answer itself gives me a way to steer the work.

Give a good answer a second life

A card can be saved with one click. IF1 can also author a whole document with prose and interactive charts or tables, then reopen it by name to revise a section. Each revision is a complete snapshot. I can inspect an older version, restore it as a new revision, or export the document’s source.

Review the work beside the conversation

The TUFFUI coding-agent view brings Git diffs, shell output, checkpoints, and a live preview into the same workspace. I can keep selected hunks, discard changes, or restore a checkpoint. A workspace lock lets one harness turn edit at a time, even across chats, so the diff belongs to the turn I am reviewing.

Under the surface

Open a layer. Explore the decisions inside.

A shared contract for generated views

The Hono API streams show_ui calls through CopilotKit’s AG-UI protocol. React validates the typed payload and renders the registered components. A coding agent can also implement or adapt a React component, define its schema, and register it as a new show_ui card. The tool graph was added this way from TUFFUI. The same card can appear in a reply, a composed story, or a saved document.

Built with

  • TypeScript
  • Bun
  • Hono
  • React
  • CopilotKit
  • AG-UI
  • TUFFUI
  • shadcn-style components
  • UI SDK
  • Convex
  • Honcho
  • Codex
  • Claude Code
  • Gemini

The throughline

The same agent can explain a finding with a view made for that question, keep the evidence in a versioned artifact, and show the exact changes it made in response.