PoC: Embedded Claude Code terminal in the Agentic UI - #4397
Draft
sejas wants to merge 1 commit into
Draft
Conversation
…eview refresh Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Related issues
How AI was used in this PR
AI-assisted throughout: architecture exploration of the local server/agentic UI, implementation, and browser-based verification of every flow described below. Reviewed and directed by @sejas.
Proposed Changes
Lets Studio Code users run agent work on their own Claude Pro/Max subscription instead of the WPcom AI proxy, using the only Anthropic-sanctioned path that keeps full subscription limits: the official
claudeCLI running interactively in a terminal (Anthropic's announced billing change moves ACP/Agent-SDK/headless usage to a separate capped credit; Zed recommends the same terminal fallback to its users).studio ui): right-click a site → "Open Claude Code terminal". The terminal replaces the chat pane; the live site preview stays alongside.wordpress-studioMCP server pre-configured (--mcp-config, user's own MCP setup untouched), and a file watcher refreshes the site preview as Claude edits the site.Trade-offs called out in the design doc: terminal transcript lives in Claude Code (not Studio's session store),
node-ptyis a native dependency (fine understudio ui; Electron packaging deferred), and the terminal is currently reachable only from the localstudio uiserver.Testing Instructions
Prereqs: Claude Code CLI installed and signed in (
claude), a local site in~/Studio.npm run cli:build:ui && node apps/cli/dist/cli/main.mjs ui --no-open→ http://localhost:8081/mcpin the terminal →wordpress-studiolisted as connected.touch wp-content/test.txtyourself) → the preview panel reloads.Pre-merge Checklist