feat: add poly wren command for AI-assisted editing - #228
Draft
Ruari-Phipps wants to merge 4 commits into
Draft
Conversation
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
…ssistant Adds an interactive chat CLI against the glot SSE developer endpoint: streams runs as live-rendered markdown, follows suspended run chains, switches to assistant-created branches, and pulls applied changes locally. Includes a --json single-shot mode, a hidden replay harness for offline UX iteration on downloaded conversations, plan/report panels, ui_description spinner narration, and mermaid.live diagram links. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The inline on_changes_applied callback triggers _pull_local right when the apply/push tool_execution_end arrives in the event stream, so the local workspace reflects changes while the assistant continues testing/reporting. Previously the pull only ran after the entire turn's event stream completed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ruari-Phipps
force-pushed
the
ruari/assistant-command
branch
from
August 6, 2026 11:51
4db443b to
44d4215
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The feature has been officially named "wren". Renames the command, class, module files, and user-facing strings; the poly assistant command is removed (poly glot remains as a hidden alias). The backend SSE route path is left unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Coverage Report
Changed file coverage
|
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.
Summary
Adds
poly wren— an interactive chat CLI against the Wren SSE developer endpoint. Wren works remotely on a branch; the CLI streams its work live, switches the local project to wren-created branches, and pulls applied changes automatically.Motivation
The platform now exposes a PAT-authenticated SSE endpoint for Wren (
POST /v1/studio-assistant/turn). This brings AI-assisted agent editing into the ADK workflow: describe a change in natural language, watch wren plan/build/test it remotely, and end up with the result pulled into the local workspace.Changes
poly wreninteractive REPL: multiline prompt (Enter sends, Ctrl+J newline), live-rendered markdown replies, spinner narration from toolui_descriptions, header panel, session resume via--session-idhandlers/wren_api.py) follows the full run chain — mid-chain suspended completes, subagent frames, and auto-answered input gates don't end the turn--forceto override); switches the local project when wren creates/switches branches (name + ID shown)✔ Applied N changes…), once more at exit if needed;--no-pulldisablesmermaid.livelinks--json -msingle-shot mode emitting one machine-readable object--replay <conv.json>dev harness: renders downloaded conversation exports through the real renderer for offline UX iterationpoly glotaliasTest strategy
poly wren,poly wren --replay)Checklist
ruff check .andruff format --check .passpytestpasses (827 passed)polyCLI interface (or migration path documented)Screenshots / Logs
🤖 Generated with Claude Code