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

How to let a coding agent drive a running studio from the terminal with Cozy Clay

Use cclay live commands so a coding agent can read and change a studio session with JSON in and out.

Short answer: Run npx cozyclay and open http://127.0.0.1:5180/app/; then run cclay live status --wait to check that the studio is running and ready for commands; send the agent's JSON edits through the terminal interface described in docs/agent-cli.md. All steps.

  • Content
  • Advanced
  • 30 minutes
  • From the README
  • Any agent

Who it is forA developer who wants a scripted or coding agent to inspect and edit a scene while the studio is open in the browser.

The problemScripting scene edits by hand in the browser is repetitive, and an agent needs a way to check the live state before it acts.

The outcomeA coding agent that reads the status of a running studio and sends JSON commands to change the scene.

What you need first

  • Node.js 22.19 or newer
  • A Chromium browser
  • An AI video model of your choice for the final render

Steps

  1. Run npx cozyclay and open http://127.0.0.1:5180/app/.
  2. Run cclay live status --wait to check that the studio is running and ready for commands.
  3. Send the agent's JSON edits through the terminal interface described in docs/agent-cli.md.
  4. Read the returned JSON to confirm the scene state after each edit.

Prompt for your agent

Using the NomaDamas/CozyClay repo, run `cclay live status --wait` against the open studio and then apply <scene change> through the live terminal interface. Expected output is JSON that shows the updated scene state. Verify that the status reports a ready studio before any edit is sent.

Caveat. The README gives only the status command example, so the exact edit commands must be read from docs/agent-cli.md before scripting them.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for NomaDamas/CozyClay and "Let a coding agent drive a running studio from the terminal"

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