DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to show a live agent status in a React app with Robot Heads

Render a robot head that changes face and motion as the agent moves between states.

Short answer: Run npm install robot-heads in your React project; then 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. All steps.

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

  1. Run npm install robot-heads in your React project.
  2. Import RobotHead from 'Robot Heads' in the component that shows agent status.
  3. Map your agent's status values to the nine states in the README: idle, thinking, searching, listening, speaking, working, happy, error, sleeping.
  4. Pass the current state to RobotHead as shown in the README Quick start, and set a size that fits your layout.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer