Skip to content

Run the writing assistant on the user's own agent CLIs - #112

Closed
GuilhermeAmado wants to merge 1 commit into
timoncool:mainfrom
GuilhermeAmado:feat/agent-cli-assistant
Closed

GuilhermeAmado wants to merge 1 commit into
timoncool:mainfrom
GuilhermeAmado:feat/agent-cli-assistant

Conversation

@GuilhermeAmado

Copy link
Copy Markdown
Contributor

Adds a \cli\ assistant provider: Claude Code, Codex, opencode, Antigravity's agy and Muse Code answer drafts headless, one run each, on the user's own account with that CLI.

  • Detection with install state (PATH + Windows registry PATH, PATHEXT order, npm/muse shim resolution), --version\ probes with timeout and cache, default model from each CLI's config, --help\ feature probe for old agy releases.
  • One-shot runs: hidden window, scratch workdir, stdin/prompt-file/argv per CLI, capped output, kill on close, classified failures (not signed in / no credit / rate limited) with machine tags the UI translates.
  • Settings UI: per-CLI status with version/path/install hints/docs, model + executable override, test-with-a-short-draft button; five locales; detected CLIs join the capabilities envelope; \�ssistant_set\ covers the new provider.
  • Windows: registry PATH lookup and job adoption (\�dopt_handle) for tokio-spawned CLIs.

Verified: \cargo test -p music-server\ (364 pass; 1 pre-existing hardware-dependent failure also fails on clean tree), \ sc --noEmit\ clean, vitest 83/83.

Provider cli (claude, codex, opencode, agy, muse): PATH/registry detection with install state, headless one-shot runs with cancellation, classified failures.

Settings panel with test draft in five locales; detected CLIs join the capabilities envelope; assistant_set covers the new provider.

Windows: registry PATH lookup and job adoption for tokio-spawned CLIs.
@timoncool

Copy link
Copy Markdown
Owner

Thank you, GuilhermeAmado: this is careful work, and it is in. Your commit is merged as it is into our working branch next-3-5-6, and this PR will show as merged when that branch reaches main with the next release. The same assistant goes into MiniMax Music3 Studio and ACE-Step Studio in that release too.

What we added on top:

  • an MCP tool assistant_cli_agents for the new route, since every route of the studio is now held to a tool by a test;
  • Antigravity runs only with --sandbox: without it a headless agy -p takes the tool permissions the user saved for their own sessions, and the lyrics travel inside the prompt;
  • the test button drafts with the CLI the panel shows as chosen (it said "choose an installed CLI" when none had been picked explicitly);
  • the sign-in and install hints and the classified failures are shown in the interface language, on the create page as well;
  • the OpenRouter key field no longer shows under Agent (CLI).

@timoncool

Copy link
Copy Markdown
Owner

Thank you! This went into 3.7.0, in all three studios (YuE2 Studio, MiniMax Music3 Studio, ACE-Step Studio): https://github.com/timoncool/YuE2-Studio/releases/tag/v3.7.0

@timoncool timoncool closed this Oct 20, 2026
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.

2 participants