Introduction
Agent Parts is a free set of interface parts for AI agents. Each part is one small moment between a person and an agent. For example, the agent asks a question, shows what it is doing, or waits for a yes before it sends a refund.
There are 38 parts today. Each one comes with all its states, its code, and a prompt you can give to a coding agent.

Why I built it
I wrote an article about how people check an AI agent’s work. Its main point: people say yes to almost everything an agent asks, and they rarely read it first. So an agent should ask less often. And when it does ask, the question should be quick to read and easy to answer.
I built the patterns from that article as real parts. Then I added the other pieces an agent screen needs.
What is in it
The parts sit on six shelves.
- Chat5
- The prompt box, suggestions to start from, a question from the agent when your request is not clear, the answer as it streams in, and the buttons under it.
- Working4
- What you see while the agent works: a thinking line, a plan that ticks off, each tool it calls, and progress on a run that takes minutes.
- Answers6
- Answers you can check: every claim linked to its source, a number with the math behind it, a chart, and a mark on each field the agent was not sure about.
- Checks11
- The places where a person reviews or approves: approvals sorted by risk, a dry run before the real one, an undo window, the list of what changed, and an inbox of what waits for you.
- Workflows6
- Runs with many steps: the state of each step, a step that failed, a timeline of the run, a handoff to another agent or to a person, and a stop that leaves nothing half done.
- Control5
- How much the agent may do alone: an autonomy dial, permissions for each tool, a confidence threshold, and the sources it may read.
- Data1
Flows are whole screens built from several parts. The first is Onboarding that fills itself. It shows the setup of a planning tool, from the first time you open it to the first time you come back.
On a part’s page
Every part has its own page. The part at the top is live: press its buttons, drag what can be dragged. Under it are the part’s states, and Replay plays it again from the start.
The next tabs hold the code: one React file, one CSS file and, for some parts, an icons file. A part imports React and lucide-react (for a few line icons). It brings no design system with it and it does not call a model, so you pass in your own data as props.
The Prompt tab describes the part in plain words, with every state and how it moves. Paste it into your coding agent and it can build the part in your own stack. The Copy prompt button at the top right copies it in one click.
The last tab, Install, has one line that adds the part to your project.

Using a part
There are three ways to put a part in your project. Run the line on its Install tab. Or copy the prompt and let your coding agent write it. Or copy every code tab by hand. The Installation page explains each one.
A part needs only React and lucide-react. It expects the usual CSS reset (border-box sizing, no default margins, buttons that take the page’s font), which Tailwind’s preflight or any modern reset gives.
The accent colours of a part are variables at the top of its CSS. Change them there and every tint follows.
Rules the parts share
- Small actions run on their own. Only the risky one stops and waits for you.
- Approve and Decline are always the same size and colour, so the layout never pushes you toward yes.
- Amber is kept for the things that wait for a person.
- A button is never greyed out. Once its work starts it turns into the next thing you can do, such as Stop.
- A card says each fact once.
- Whatever you drag stays under the pointer, and nothing bounces when it lands.