Who it is forA developer building a list of agents or bots, such as a sidebar of chat assistants, where each row needs a small avatar.
The problemA full-size robot with an antenna wastes space in a small avatar slot, and list layouts can clip animations.
The outcomeCompact robot avatars in each row that fill their box, with a clear accessible label for screen readers.
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 the project. - Render RobotHead in each list row with antenna={false} and a small size.
- Pass your own aria-label if the default state label does not describe the bot.
- Check that the row container does not use overflow: hidden around the avatar, since hops would be cut off.
- Scroll the list and confirm the avatars sit flush with the text in each row.
Prompt for your agent
In the React project at <project path>, install robot-heads and render a list of agent avatars using RobotHead with antenna={false} and a small size. Expected output: a list component where each avatar keeps its state and has an aria-label. Verify that no parent element in the list uses overflow: hidden around the avatar.
Caveat. The README notes that antenna={false} only drops the stem and light, so the bot still needs the default knob on top and the square or circle shape will look best at small sizes.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for fayazara/robot-heads and "Use small robot avatars in a chat or user list"
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