Skip to content
Source
Sign inSign up
fuko/rive-preview-player

Make "Send to agent" wake the coding agent #7

Mergedfukomerged 3 commits intomain fromfeat/wait-feedback-climerged by fuko View on GitHub

Showing 8 changed files with 229 additions and 2 deletions (loading 6).

x
0 of 8 viewed, 8 left
11 additions and 2 deletionsbin/rive-video-preview.mjsModified
View file
@@ -11,6 +11,8 @@
​
usage:
rive-video-preview [project-dir | file.riv] [options]
+ rive-video-preview wait-feedback [project-dir | file.riv] [--timeout <time>] [--no-mark-read]
+ wait for "Send to agent", print the feedback, exit
rive-video-preview mcp [project-dir] run the MCP server (stdio) for coding agents
​
The project dir defaults to the current directory. It builds the project with
@@ -38,8 +40,11 @@
​
feedback for agents:
Screenshots and notes are kept in <project>/.rive-preview/. "Send to agent" writes a
- bundle to .rive-preview/feedback/<time>/ (feedback.md + PNGs) which the MCP server
- serves through get_feedback / wait_for_feedback. Register it with, e.g.:
+ bundle to .rive-preview/feedback/<time>/ (feedback.md + PNGs). To be woken by it, an
+ agent runs \`rive-video-preview wait-feedback .\` as a background command: it exits
+ with the feedback as soon as the user sends it (see wait-feedback --help). The
+ player shows the user whether an agent is listening. The MCP server serves the
+ same bundles through get_feedback / wait_for_feedback. Register it with, e.g.:
claude mcp add rive-preview -- rive-video-preview mcp
`;
​