Skip to content

[Feature]: Configure Orca from an AI session — orca settings + state commands, also as MCP tools #42827

Description

@juancristobalmm

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 with claude --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.
  • schema gives each key its type, default, UI path and description, so an agent can map
    "show host headers" to a key.
  • --host / --project scopes where Orca has them. export leaves 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

  1. Every Settings option is in orca settings schema with its UI path.
  2. orca settings set works with Orca open and the UI updates without a restart.
  3. The five cases above need no DB edits.
  4. orca mcp exposes the same commands, read-only by default.
  5. 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 computer on the Settings UI: slow, takes the window, breaks when a label moves.
  • Skills that document internal keys: today's workaround; breaks with each release.

Related: #13079 · #39691 · #16613 · #42018

Activity

  1. added
    enhancement
    on Nov 15, 2026
  2. chirag127 commented on Nov 21, 2026

    @chirag127
    Contributor

    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:

    • Discover setting keys, types, valid values, defaults, scope/host, effective versus inherited values, and any apply/restart requirement.
    • Read, update, reset, export, and inspect/revert supported settings through the same semantic API/CLI path, with clear result/error schemas and matching live UI state.
    • Target the intended user/project/workspace/profile/host. Concurrent changes must be detected or reconciled according to a documented contract rather than silently updating another scope.
    • Provide version-matched skills that discover a setting, select a valid value, apply it, and read it back. Record actual applied/effective values and any remaining prerequisite; command acceptance alone is not proof that the setting took effect.
    • Demonstrate an ordinary supported settings change without routine GUI coordination, plus invalid-value, inherited-value/reset, unavailable-host, and concurrent-update cases. Preserve existing protected secret-entry and genuinely human-controlled settings contracts.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions