Repository navigation
orca settings + state commands, also as MCP tools#42827Description
Problem or use case
Tested on Orca 1.4.259, Windows 11.
The orca CLI lets an agent work in Orca (334 commands: worktrees, terminals, agents, browser…), but not
configure it. Settings, sidebar state, project identity and host labels can only be changed in the Settings UI
or by editing profile-state.db (SQLite) with Orca closed.
Real cases:
- Host headers missing: they depend on the Hosts filter (
ui.visibleWorkspaceHostIds), which the CLI can't
read or change (Host sections depend on the Hosts filter, not on Group by #39691). - "Lost" sessions: hidden tabs stay in
workspaceSession.tabsByWorktree. Recovering them means reading the DB
and recreating each tab withclaude --resume <sessionId>. - Broken entries (orphaned tabs, "Error deleting" worktrees): only removable with a script that edits the DB,
with Orca closed. - Project icon, name and colour: UI only.
- Host names: three names, three paths — SSH label (UI only), environment name (edit
orca-environments.json), machine name (orca host name).
Proposed solution
1. orca settings
orca settings schema | list [--changed] | get <key> | set <key> <value> | unset <key>
orca settings search <words> | export | import | history | revert <change-id>
- Writes go through the running runtime: no need to close Orca, and the UI updates at once.
schemagives each key its type, default, UI path and description, so an agent can map
"show host headers" to a key.--host/--projectscopes where Orca has them.exportleaves secrets out.
2. State commands
orca ui get|set sidebar.visibleHosts | sidebar.groupBy
orca project identity set --project <id> [--name] [--icon <png>] [--color]
orca host label set --host ssh:<target-id> --label <text>
orca environment rename --environment <selector> --name <new>
orca session list --hidden | orca session restore --session <id>
orca doctor state [--fix --dry-run]
3. orca mcp
The same commands as MCP tools, generated from orca agent-context so they stay in parity with the CLI
(complements #13079, which covers sessions and workspaces). Read-only tools on by default; write tools need the
user's approval and support dry_run.
Principles: one schema for UI, CLI and MCP · --dry-run, automatic backup, history and revert on every
write · --json and error codes with a next step · public keys stable across versions.
Done when
- Every Settings option is in
orca settings schemawith its UI path. orca settings setworks with Orca open and the UI updates without a restart.- The five cases above need no DB edits.
orca mcpexposes the same commands, read-only by default.- A skill guide (
orca skills get settings) explains the flow to agents.
Alternatives or additional context
- Editing the DB: Orca closed, revisions and hashes by hand, breaks on upgrades, can hide sessions.
orca computeron the Settings UI: slow, takes the window, breaks when a label moves.- Skills that document internal keys: today's workaround; breaks with each release.
Activity
chirag127 commentedon Nov 21, 2026
Use case: configure and verify Orca automatically through supported operations
This request directly supports my need for APIs, CLI commands, and task skills for configuration as well as application interaction. I want an agent to perform an authorized configuration task from start to verified result without clicking through global Settings or editing an internal database.
Useful acceptance checks for the schema and state commands proposed here:
This is part of the broader parity initiative #5700/#5709 and public API contract #14273. Browser/extension setup and app-testing workflows (#46537, #46542, #46544, #46545, #46546, #46547) are concrete consumers, especially when several agents share one Orca desktop. The goal is a complete supported configuration path, building on existing scoped controls.