flohoeller/affectui

UI for AI agents. React components for what agents do – agent trees, tool calls, traces, handoffs and approvals – and for the rest of your app. One file each, install with shadcn or via MCP. Free and open source.

What it solves

Building an interface for an AI product usually means wiring up UI for agent activities like tool calls, traces, handoffs, and approvals — plus all the ordinary app UI around it. affectUI solves this by providing ready-made React components for exactly these agent-specific states, so you don't have to design and build them from scratch.

How it works

Every component is a single .tsx file with its styles included — no Tailwind, no CSS setup, no animation library. You install items individually with the shadcn CLI (e.g. npx shadcn@latest add <registry-url>) or by copying the file directly into your project. The components are driven by your application's runtime data and expose callbacks for user actions, so they act as the presentation layer while your backend handles logic and permissions. affectUI also ships an MCP server and llms.txt so coding assistants like Claude Code, Cursor, or Codex can find and add components for you.

Who it's for

Developers building React apps that include AI agent features — like chat interfaces, agent dashboards, human-in-the-loop approvals, or tool-call visualizations — who want polished, accessible, dark-mode-ready UI components without configuring a design system.

Highlights

  • Agent-specific components: live trees of sub-agents, tool call cards, trace waterfalls with cost per step, decision and agent inboxes, context maps, and more.
  • One-file components: each item is a single .tsx with embedded styles; no extra CSS or animation dependencies.
  • Agent-ready workflow: MCP server and llms.txt let AI coding tools discover and add components automatically.
  • Polished and accessible: motion that respects prefers-reduced-motion, built-in dark mode, keyboard support, and live regions.

Related

  • Project
  • Project
  • Project
  • Project
  • Project