Files
openmotion/docs/local-agents.md
Tom Huang acb80e4095 feat: add an asset workspace with generation, versions, and editor import (#413)
* feat: add a shared asset workspace with generation and version history

Unify direct model jobs and embedded Codex conversations around shared asset operations exposed through MCP. Add reusable media uploads, pinned references, version browsing, trash undo, and verified project imports.

Refine compact creation controls, persistent task history, solid menus, and stable resizable preview layouts. Integrate asset navigation with main's history and deep links, and align onboarding, tracking, documentation, and distribution.

* test: exercise openmotion_assets in the packaged phase-one e2e

The phase-one profile now exposes openmotion_assets, but the packaged
distribution smoke test still asserted that every public Tool was called
without ever invoking it, so the Distribution regression lane failed.

Import a real audio file into the library, read it back by asset and
version, list it by modality, and import the pinned version into the
project so the new Tool is covered end to end.

Generated-By: looper 0.16.2 (runner=fixer, agent=pi)

* fix: preserve asset request receipts and pending draft edits

Exercise asset library replay in the packaged MCP smoke test and align compact control documentation with verified shared geometry.
2026-11-15 23:24:33 +08:00

5.5 KiB

Local Agents

Settings → Local Agents lists CLI clients independently of model providers. Choose an Agent, open its official download guide when missing, complete sign-in in its own terminal, refresh its models, and select the Agent/model to use. Default Agent & models and the header model selector share the saved default. Media model defaults remain independent of the Agent that edits the project.

The registry contains Codex, Claude Code, Kimi Code, OpenCode, Gemini CLI, Cursor Agent, GitHub Copilot CLI, DeepSeek Harness, Qwen Code, Pi, Hermes, Antigravity, Kiro CLI, Kilo Code, Mistral Vibe, Amp, Devin, Grok Build, CodeBuddy Code, Qoder CLI, Trae CLI, MiMo Code, Aider, AtomCode, DeepSeek TUI, DeepSeek Reasonix, OpenClaude, Cline and IBM Bob. Availability depends on the installed CLI version and platform. Desktop model servers are not Agent clients.

Detection and model selection

Listing Agents checks executable locations without launching every client. Inspecting an installed Agent runs bounded version/help and supported discovery commands. Only Codex, Claude-compatible authentication status and Cursor expose the authentication probes used here; other clients display “Sign-in managed by Agent” unless ACP explicitly reports missing authentication. Installation is not proof of login or model entitlement.

Agent Model discovery
Codex debug models, excluding hidden models; supported reasoning levels
Claude Code, OpenClaude Agent-managed sonnet, opus, haiku aliases, explicitly labeled as aliases
OpenCode, Cursor Agent, Grok Build models catalogue output
Pi --list-models, preserving provider/model identity
Qwen Code Model IDs/names from the local settings model-provider list; credentials are not returned
Kimi Code, Kiro CLI, Kilo Code, Trae CLI ACP initialize and session/new model options in a temporary directory; no prompt or client tool operation
CodeBuddy Code Supported model choices advertised by CLI help
Other clients or unsupported CLI versions Follow the Agent default, or manually enter an exact model ID

Model discovery failures retain an actionable refresh message. An exact manually entered model ID does not assert that the account can use it. The Agent remains the authority for authentication and entitlement. Probe processes are bounded and their raw output is not returned to the browser or stored. An npm Windows .cmd shim is resolved to its JavaScript entry point for shell-free probes; unsupported shims fall back to manual guidance.

Launch and connection

“Use in this project” prepares a quoted command scoped to the current project directory. If the installed CLI advertises --model, the selected model is passed directly. Otherwise the connection instruction includes the model selection for the user to apply in the Agent. Codex reasoning effort is passed through its supported configuration argument. The normal Agent approval controls remain enabled.

The dialog offers Open terminal, Copy command and Copy connection instruction. Opening the terminal is an explicit action; no Agent package is installed automatically. Sign-in uses the official CLI command or its interactive login flow. The connection instruction opens the existing local MCP guide for the chosen host. A launched terminal does not establish successful sign-in, MCP registration, active-chat connectivity or completion of a project edit. These are verified in the Agent. This feature does not introduce an embedded conversational runner.

Preferences are stored privately in agents/preferences.json under the installation data directory, outside the checkout and project exports. They contain only Agent/model IDs, reasoning selection and manual model IDs. They never contain copied Agent credentials. macOS/Linux terminal launch scripts are private and remove themselves when started. The application does not terminate the interactive Agent when the dialog closes.

Verification and sources

Deterministic tests exercise discovery parsers, auth distinctions, default persistence, validation, terminal quoting, npm shim resolution, ACP negotiation and refusal of client operations. UI tests exercise the download/login/model/default/launch flow without starting real external sessions. Real provider calls, native Windows/Linux terminal acceptance and a complete external Agent editing session require separate verification.

The registry and discovery contracts were checked against OpenDesign runtime definitions, Paradev, Orca, Hyperframes and the official URLs in the registry. Kimi's current upstream is Kimi Code. Provider/Agent artwork attribution remains in the design-system notices; clients without sourced artwork use neutral shared icons.

In-app asset conversations

The Assets workspace can execute conversations through an installed Codex app-server using its existing login. Replies, asset tool calls, approvals and generation progress appear in Studio; thread identity is retained for follow-up turns. Other registered clients continue to use external MCP. Detection, model discovery, a successful protocol handshake and a paid Agent/media turn are separate checks. Closing the creator does not automatically cancel a running turn; use Stop, or reopen the saved conversation.