Who it is forA front-end developer building a chat or agent dashboard who needs users to see whether the agent is idle, thinking, searching, or speaking.
The problemPlain text status labels are easy to miss, and building custom animated feedback for each agent state takes time.
The outcomeA React component that displays a 3D robot head whose screen, motion, and antenna light match the agent's current state.
What you need first
- A React project on React 18 or newer, since React is a peer dependency
- Node.js with npm, or pnpm if you plan to work on the library source
- A way to map your agent's status values to the nine states the library supports
Steps
- Run
npm install robot-headsin your React project. - Import RobotHead from 'Robot Heads' in the component that shows agent status.
- Map your agent's status values to the nine states in the README: idle, thinking, searching, listening, speaking, working, happy, error, sleeping.
- Pass the current state to RobotHead as shown in the README Quick start, and set a size that fits your layout.
- Run your app and change the agent status to confirm each state renders.
Prompt for your agent
In the React project at <project path>, run `npm install robot-heads` and render a RobotHead whose state follows the agent's status, mapping each status to one of the nine README states. Expected output: a component file that type-checks against React 18 or newer. Verify the prop names against the installed package types before finishing, because the README props block is not fully legible.
Caveat. The props section of the README did not come through cleanly, so confirm exact prop names in the installed package before wiring the state.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for fayazara/robot-heads and "Show a live agent status in a React app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer