ADR: Claude Desktop Surface

Claude provider identity, shared deployment receipts and runtime evidence boundaries

ADR: Claude Desktop is a surface of the Claude provider

Status: Accepted for AIWG provider identity (#2628).

First time using AIWG? Begin with Install, Connect, and Verify.

The Claude Desktop Code tab uses the existing `claude` provider. It does not add an entry to `PROVIDER_IDS` or a second deployment adapter.

Evidence and scope

The recorded assessment (`$AIWG_ROOT/docs/planning/claude-desktop-provider/assessment-and-issue-plan.md`, not published on the docs site) describes a Code-tab session on grissom on 2026-09-21, using bundled Claude Code 2.1.275 and Desktop 2.2553.1. Its entrypoint was `claude-desktop`; it used the Claude Code project paths, `CLAUDE.md`, and `.mcp.json`. That observation supports shared deployment identity. It does not verify every Desktop release, OS, remote environment, tool, or capability. Those remain unverified here.

Decision

Declare four related surfaces under `claude`: deployable `claude-code-cli` and `claude-desktop` (`same-provider`); nondeployable `claude-desktop-chat` (`companion-standard`, MCP/MCPB only); and nondeployable `claude-code-web` (`future-provider`). Desktop's `desktop` and `cc-desktop` aliases describe the surface; deployment continues to select `--provider claude`.

Both deployable surfaces use the existing adapter, paths and ownership records. An additional provider id would double-write `.claude` and `CLAUDE.md`, and split `installed.<bundle>.deployedTo` in the project config. Separate receipts for the same files would undermine idempotency and drift verification in `src/cli/services/deployment-verification.ts`.

`ProviderResolution.surface` reports session evidence separately from provider identity and the legacy `claude-code` capability matrix key. Its detector is an explicit function of the supplied environment. Recorded entrypoints `cli` and `claude-desktop` identify their surfaces; a Desktop app version also supports `desktop`. Conflicting or unknown entrypoints yield `null`. A host session id is opaque linkage metadata and never establishes CLI, Desktop or remote mode. No environment evidence means `null`, including configured/deployed Claude projects and process ancestry alone. The reserved `web`, `ssh`, `wsl` and `cloud` values have no verified marker mapping in this change.

Consequences and reconsideration

Shared deployment output remains independent of surface; an offline CLI deployment regression compares shared file bytes and checks the single `claude` receipt key. Issue #2630 adds positively gated Desktop-only launch and scheduled-task writers through this same adapter. Explicit opt-in uses `AIWG_CLAUDE_SURFACE=desktop`; the provider selector and shared artifact receipts remain `claude`. Telemetry stores normalized provider identity and surface separately. Existing capability rows remain provider-wide declarations, not verified Desktop tool availability. Per-surface capability qualification belongs to #2629.

Reconsider the identity decision if reproducible evidence establishes an independent Desktop deployment contract, isolated native paths or incompatible ownership/receipt semantics that a surface cannot express. Add runtime mappings only after recording reliable, nonconflicting markers from that environment. Chat/Cowork and Web need their own deployment qualification before any writer is enabled. This ADR does not verify MCP installation, Desktop scheduled-task delivery, remote modes, or Desktop-only artifacts.