Skip to content

feat(studio,mcp,agent): an agent can drive the open Studio (0.5.0) - #304

Merged
russoedu merged 3 commits into
mainfrom
feat/studio-control
Oct 16, 2026
Merged

russoedu merged 3 commits into
mainfrom
feat/studio-control

Conversation

@russoedu

Copy link
Copy Markdown
Collaborator

Part of #293: the agent can work in the Studio the person is looking at.

  • Studio announces itself in ~/.opencraw/studio/<pid>-<port>.json (address and token, owner-only), withdrawn on close.
  • Three new Studio commands: ask-ui (tell the open page to do something), studio-status, run-status. The page opens what it is asked to the way a Studio link does (useUiRequests, sharing useOpenTarget with the link hook).
  • MCP tools studio_status, studio_open_recipe, studio_run_sample find that Studio and use it. studio_run_sample waits for the run and returns the counts and the first records.
  • The OpenCraw agent names these tools (and no longer names studio_pick, which does not exist yet); the Studio manual and the MCP README describe them.
  • Extension 0.5.0.

Checked: typecheck, lint and unit tests for studio, studio-ui, mcp, agent, cli and the extension; the mcp, studio and editor e2e. Also run by hand: a real Studio, a real browser page on it and the MCP server over stdio. The tools opened a recipe in a different folder on the open page and ran a sample, and the three records showed in the Records tab.

Not here: studio_pick (clicking a value stays the person's click), a chat box inside Studio.
The core:e2e "worker mode" test is flaky and fails now and then regardless of this change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TjR6eM2tUwU3NGnKXsmEap

russoedu and others added 3 commits October 16, 2026 23:17
…n it and read a run

Studio announces itself in ~/.opencraw/studio, three commands (ask-ui, studio-status,
run-status) let an outside controller drive it, and the open page opens what it is asked
to the way a link does.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TjR6eM2tUwU3NGnKXsmEap
…ple drive a running studio

The MCP server finds the Studio the person has open and works in it, so they watch the
recipe being built. The agent names the three tools; picking stays the person's click.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TjR6eM2tUwU3NGnKXsmEap
@russoedu
russoedu merged commit 6f05e00 into main Oct 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant