Repository navigation
feat(studio,mcp,agent): an agent can drive the open Studio (0.5.0) - #304
Merged
Merged
Conversation
…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
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TjR6eM2tUwU3NGnKXsmEap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #293: the agent can work in the Studio the person is looking at.
~/.opencraw/studio/<pid>-<port>.json(address and token, owner-only), withdrawn on close.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, sharinguseOpenTargetwith the link hook).studio_status,studio_open_recipe,studio_run_samplefind that Studio and use it.studio_run_samplewaits for the run and returns the counts and the first records.studio_pick, which does not exist yet); the Studio manual and the MCP README describe them.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