Skip to content

About

Re-imagine GitHub website in agentic era with Generative UI, built on A2UI + Primer

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

a2ui-github

Generative UI for GitHub. An LLM agent that answers questions about GitHub not with text, but by painting live UI onto a full-screen canvas — built on the A2UI protocol and GitHub's own Primer design system.

Ask "show me the open pull requests that need review" and the agent composes a PR list from a validated catalog of Primer components and streams it onto the canvas. Everything it paints is interactive: open a PR from that list and the next surface swaps in — one continuous session, steered by language.

The canvas shell painting live GitHub data: a prompt paints the PR list, a follow-up swaps in the PR detail, and the timeline steps back and returns to live

Why a canvas instead of a chat transcript — the paradigm this demo argues — is laid out in THESIS.md.

How it works

   prompt / interaction
          │
          ▼               A2A (streaming)
  client (canvas shell) ◄──────────────► agent (Gemini via ADK)
          │                                      │
   renders through                        reads GitHub via the
  primer-a2ui-adapter                   official MCP server (read-only)

The agent generates against the catalog's JSON-Schema contract and every surface is validated before it reaches the stage; the client renders the same contract's React implementations.

The packages

Package Role
primer-a2ui-adapter/ The A2UI catalog + React adapter for Primer: 146 component entries and 19 client-side functions, parity-tested against the catalog document.
client/ The web app: the canvas shell (default page), a conventional chat client, and two no-LLM dev pages. The canvas's concepts live in client/src/canvas/.
agent/ Two Python A2A servers: the live LLM agent (Gemini, read-only GitHub MCP) and a deterministic canned-response agent for token-free testing.

Each package README is the manual for that package; this one is the map.

Running it

TypeScript workspaces use Yarn 4 (via corepack); the agent is a separate uv-managed Python project.

corepack enable && yarn install
cd agent && uv sync && cp .env.example .env   # then fill in the two keys

Two terminals:

# 1 — the live agent
cd agent && uv run python -m llm_agent --host localhost --port 10003

# 2 — the client
VITE_A2A_SERVER_URL=http://localhost:10003 yarn workspace client run dev

Open http://localhost:5173 and ask for something. To try it without any API keys, see "Working without the LLM" in client/README.md.

Verifying the repo

yarn build:all      # build every workspace, dependency order
yarn typecheck:all
yarn lint:all
yarn test:all
yarn verify:all     # build + typecheck + lint + format check + test

The agent's suite runs separately: cd agent && uv run pytest.

License

MIT

About

Re-imagine GitHub website in agentic era with Generative UI, built on A2UI + Primer

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages