Join the Hanzo beta and get 20% off any paid plan

Beyond Walls of Text: Native Generative UI with A2UI 1.0 on Hanzo UI

Since 2021, Hanzo built one cross-platform UI substrate. Google's A2UI 1.0 standard validates that exact architecture: agents emit declarative JSONL surfaces rendered by your trusted @hanzo/ui catalog—no raw HTML, no eval, and zero-trust action context.

On this page

Modern agents can inspect a repository, query a database, compare cloud deployments, and draft a migration plan. Then they collapse all of that structured state into six paragraphs of markdown and ask you to type back: "option two, Tuesday at three, cap memory at sixteen gigabytes."

Teams tried two workarounds, and both failed in production. Hardcoded forms are safe, but they go stale the moment an agent encounters a workflow nobody anticipated. Letting a model emit raw HTML or JavaScript inside an iframe looks flexible in a demo, then collapses under security review: untrusted scripts, inconsistent styling, broken keyboard navigation, and zero connection to the host application's design system.

An agent should never invent DOM markup or execute arbitrary code just to ask a structured question. It should describe the interface declaratively and hand it to components you already audit and ship.

One substrate since 2021

Since 2021, we built ui.hanzo.ai and gui.hanzo.ai around one architectural rule: one cross-platform substrate (@hanzo/gui), one canonical component library (@hanzo/ui), and one semantic token layer (@hanzo/design).

The original goal was straightforward: write a component once and run it identically across web, desktop, and native mobile without maintaining three parallel UI kits. That discipline paid an unexpected dividend the moment agents started needing interfaces. Because every Card, Tabs, Slider, DateTimeInput, ChoicePicker, TextField, and Button already obeys a strict, platform-agnostic contract, an agent can target that catalog directly—without ever touching raw HTML.

How A2UI 1.0 works on the wire

Google's A2UI 1.0 specification formalizes that exact separation between layout declaration, data state, and executable code. Instead of streaming HTML or calling eval, an agent emits declarative JSONL messages (createSurface, updateComponents, updateDataModel, deleteSurface) referencing components from a trusted catalog (https://hanzo.ai/a2ui/catalog/v1).

Reactive two-way bindings use standard RFC 6901 JSON Pointers—for example { "@path": "/region" } or { "@path": "/canaryPct" }. When a user drags a slider or picks a date, the local surface model updates instantaneously and preserves those edits even while the agent streams additional components into the same surface.

Submission is zero-trust by construction. Every interactive control declares an explicit action.event.context map. When clicked, the renderer validates client-side checks, resolves only the pointers declared in context, rejects unsafe URI schemes (javascript:, vbscript:, file:), and sends a clean a2ui.action event back to the agent. Nothing outside the declared context ever leaves the client.

{"version":"v1.0","createSurface":{"surfaceId":"release-gate","catalogId":"https://hanzo.ai/a2ui/catalog/v1"}}
{"version":"v1.0","updateDataModel":{"surfaceId":"release-gate","value":{"region":"us-west","canaryPct":10,"window":"2026-12-01T18:00Z"}}}
{"version":"v1.0","updateComponents":{"surfaceId":"release-gate","components":[
  {"id":"root","component":"Card","children":["region","canary","window","approve"]},
  {"id":"region","component":"ChoicePicker","label":"Region","value":{"@path":"/region"},"options":["us-west","us-east","eu-central"]},
  {"id":"canary","component":"Slider","label":"Canary traffic %","min":5,"max":100,"value":{"@path":"/canaryPct"}},
  {"id":"window","component":"DateTimeInput","label":"Rollout window","value":{"@path":"/window"}},
  {"id":"approve","component":"Button","label":"Approve rollout","action":{"event":{"name":"rollout.approve","context":{"region":{"@path":"/region"},"canaryPct":{"@path":"/canaryPct"},"window":{"@path":"/window"}}}}}
]}}

Rendering the live surface, inspecting its JSONL, and compiling it deterministically into production @hanzo/ui TSX takes one import:

import { A2UIWorkbench, compileA2UIToJSX } from "@hanzo/ui/a2ui";

export function AgentSurface({
  jsonl,
  sendAction,
}: {
  jsonl: string;
  sendAction: (event: unknown) => void;
}) {
  const tsx = compileA2UIToJSX(jsonl, { componentName: "ReleaseGate" });
  return (
    <A2UIWorkbench
      payload={jsonl}
      onAction={(event) => sendAction(event)}
    />
  );
}

Shipped live today: Hanzo UI, Gen, and Hanzo App

Native A2UI 1.0 is live across our open-source packages and hosted workspace today:

  • @hanzo/ui/a2ui (@hanzo/ui@8.35.0+): Splits pure TypeScript protocol parsing and RFC 6901 pointer resolution (protocol.ts, usable on servers, RSC, CLIs, and Node) from interactive React leaves (<A2UISurface /> and <A2UIWorkbench />). Built-in compileA2UIToJSX compiles any validated A2UI surface deterministically into readable, type-checked @hanzo/ui TSX—no extra LLM round-trip required.
  • hanzoai/gen: Ships the native render_ui MCP tool in Rust. Every payload is validated against the Hanzo catalog before it reaches a client, returning structured error messages on malformed schemas so models self-correct immediately, and routing incoming a2ui.action events straight back into the active agent loop.
  • hanzo.app: Renders A2UI 1.0 surfaces natively across /chat, Deep Research, and /dev. Every surface opens in <A2UIWorkbench /> so you can inspect the live JSONL stream, edit bindings in real time, view the compiled @hanzo/ui TSX, and Save, Load, or Run the interface inside your workspace—turning an ephemeral agent panel into production software you own.
LayerPackage / SurfaceResponsibility
Substrate@hanzo/guiCross-platform layout and token engine across web, desktop, and native mobile
Catalog & Renderer@hanzo/ui/a2uiTrusted A2UI 1.0 catalog, <A2UIWorkbench />, and deterministic TSX compiler
Agent Harnesshanzoai/genNative render_ui MCP tool with schema validation and a2ui.action loop
Workspacehanzo.appLive surfaces across /chat, Deep Research, and /dev with Save, Load, and Run

From chat to the Open Personal, Business, and Creative OS

Chat is only the first surface. Under HIP-0504 (Unified Design System) and HIP-1415 (Generative UI & A2UI 1.0 Protocol), this same @hanzo/ui and A2UI 1.0 contract extends natively across Hanzo's Personal OS, Business OS, and open beta Creative and Audio Suite—spanning Studio, Image, Film, Effects, Clips, Sound, and DJ (specified across HIP-1406 through HIP-1413).

Whether an agent is helping you configure an approval gate in Business OS, inspect a model evaluation in Deep Research, or build a custom parameter rack for audio and video production, it targets one open catalog with one security model. Interfaces stop being frozen artifacts shipped quarterly and become inspectable, compilable, user-owned surfaces generated on demand.

Read the companion essay on why open models, local hardware, and an open Personal & Business OS matter underneath these interfaces: Unfettered Intelligence: Local Hardware, Decentralized Compute, and the Open Personal & Business OS.

Try it now

Comments

Sign in with your Hanzo ID to comment.

Loading comments…

Read more