Repository navigation
Description
Client-feature interoperability: VS Code and copilot-host
Report navigation: Feature comparison and app findings · Metadata and method inventories · Concrete payload shapes
Source audit on September 24, 2026, organized around the features an AHP client needs to implement. The two host inventories retain their audited revisions; the Copilot desktop app was fast-forwarded before auditing its consumers. Complete _meta and custom-method inventories follow as reference appendices, with concrete payload examples in Appendix E.
| Component | Audited revision | Protocol baseline |
|---|---|---|
| VS Code | eb1f2bba7cfa39fe356f40c116e7614dcb160b3b, September 24, 2026 |
Advertises AHP 0.9.0; generated source pin 365d1dc9. Version |
| copilot-host / copilotd | e3ba12c15aa7e3dc2036464e132dabf85da9a779, September 18, 2026 |
Rust AHP dependencies pinned to rust/v0.9.0. Dependencies |
| Copilot desktop app / github-app (client) | 9a05a3ee1e0a97ab216514ef14e416ec827ec01e, September 24, 2026 |
After the requested pull: Rust AHP rust/v0.9.0. Dependencies |
The audited worktrees were clean. This is a source audit of these revisions, not a claim about published app builds or a runtime interoperability test. Findings from the app's pre-pull AHP 0.7.0 checkout are superseded and are not used below.
Scope and notation
The primary comparison asks: for the same client feature, what information and operations does each host expose, and can a client use both without host-specific interpretation? Metadata, configuration, native AHP fields, and custom methods belong in the same feature comparison. Differences in where a contract lives are part of the alignment problem, not grounds for excluding it.
The main tables separate shared features, VS Code-specific contracts, and copilotd-specific contracts. "Specific" means no counterpart was established in the audited host contracts, not that the other product cannot offer the feature. The Copilot desktop app is a consumer: its support for a copilotd extension does not make that extension a shared VS Code-host feature.
The reference inventories enumerate statically named AHP _meta conventions and custom JSON-RPC methods implemented or explicitly understood by the two hosts and their in-tree AHP clients. They include request metadata, response/capability metadata, state/action metadata, and client-authored attachment metadata that traverses AHP, distinguishing current producers from compatibility readers and internal-only uses.
- A key such as
vscode.chat.surfacemeans a single flat key:_meta["vscode.chat.surface"], not a nested object. - A metadata identity is carrier type + key + value shape + update semantics. In the inventories, a carrier column or explicitly scoped table names the type whose
_metaowns the key. Nested fields retain their owning type, for exampleUsageInfo._meta["copilot.usageDetail"].cacheExpiresAt; that is not aSessionStatemetadata entry. The carrier crosswalk below highlights the important differences. - Nested payload fields are described under their owning key rather than counted as separate extensions. The exceptional nested
copilot.tooLargeshape is explicitly identified. - Related keys are grouped in some rows, but their literal names are all listed.
- Protocol-recommended
_metaconventions are included alongside other metadata conventions. Upstream guidance is noted as provenance, not evidence of cross-client alignment: matching names still require compatible payloads, routing, lifecycle semantics, and consumer support. _metais open-ended: arbitrary metadata supplied by external clients, providers, tools, and MCP servers can be preserved. There cannot be a finite inventory of every possible third-party key; these tables enumerate the repository-defined conventions.- Model-facing tool names, VS Code commands, internal IPC service methods, Copilot SDK RPCs, and tunneled MCP methods are not custom AHP methods. Standard AHP commands/actions remain standard even when their payloads contain host-specific configuration.
- Provider-specific configuration keys, changeset operation IDs, confirmation-option IDs, URI schemes, and transport/encryption formats are included where relevant to a client feature. They are not exhaustively inventoried in the
_meta/RPC appendices. - Appendix E supplies dummy values for the inventoried metadata keys and request/result shapes for the custom methods. Examples illustrate shapes, not required/default values or a promise that unrelated entries are emitted together.
Executive findings
Read the main comparison in three groups: shared features in 1.1, VS Code-specific contracts in 1.2, and copilotd-specific contracts in 1.3. Shared features include partial matches; host-specific means no counterpart found in the audited host contract.
- The custom RPC surfaces are mostly unrelated. VS Code has 25 custom wire method names: 20 client-to-host requests, one host-to-client request, and four host-to-client notifications. copilot-host has 14 custom client-to-host requests. There are no identical custom method names across those inventories.
- copilot-host has 30 flat
copilot.*metadata keys in its central registry, plus three unnamespaced permission keys and one nested oversized-file convention outside that registry. It also emitsuiandptyTerminal. Both belong in the same inventory and alignment comparison; AHP's guidance for them does not establish that clients handle them consistently. - VS Code's metadata is much broader and less uniformly namespaced. It spans host capabilities, session/workspace provenance, model-picker presentation, usage, tool rendering, attachments, feedback, and changeset workflows.
- The clearest contract-alignment work is permissions/approvals, model category, usage/billing, model-call diagnostics, prompt-cache expiry, rich errors, internal-message visibility, and Git context. Several have different shapes, scopes, or aggregation semantics, so a key rename alone is insufficient.
- Some interoperability already exists. VS Code explicitly reads copilot-host's
copilot.modelPickerCategory,copilot.projectManagement, and raw permission metadata. That is not the same as the VS Code host producing those extensions. - Shared names do not establish alignment. For MCP Apps, both hosts use
ui, but their metadata views and routing assumptions differ. For PTY output, copilot-host usesptyTerminal, whereas the audited VS Code host uses terminal channels/content and rendering hints. These remain cross-client alignment items even though AHP recommends or illustrates the conventions. - The Copilot app provides concrete consumer evidence, including remaining gaps at AHP 0.9.0. It consumes model category, model-bound text, plan/todo hints, project management, and approval configuration. Its context-usage adapter still looks for
copilot.session.usageInforather thancopilot.usageInfo. PTY output and MCP Apps also expose carrier/event-shape differences between host output and the app's tool-row adapter. See section 2.
1. Client-feature alignment
Start with the group that matches the question:
- 1.1 Shared features: functionality found on both sides, with direct or partial contract matches.
- 1.2 VS Code-specific contracts: no equivalent copilotd contract established.
- 1.3 copilotd-specific contracts: no equivalent VS Code host contract established.
These are source-level findings, not end-to-end conformance results. Shared does not mean wire-compatible. Partial matches are labeled in the table rather than treating different workflows as aliases. The per-host inventories and examples remain unchanged in Appendices A-E.
Contract differences require agreement on names, shapes, ownership, or semantics. Implementation defects concern a host not supplying usable behavior through an already-shared contract. Both are relevant to the client feature, but they require different fixes. Linked issue statuses were checked on September 24, 2026; an issue's claims are identified as reports rather than treated as conformance-test results.
1.1 Shared features
Permissions and approval modes
| Feature | VS Code | copilotd | Alignment |
|---|---|---|---|
| Permission kind and subject | ToolCallState._meta.toolKind; native ChatToolCallReadyAction.invocationMessage / .toolInput. |
ChatToolCallReadyAction._meta.permissionRequest / .promptRequest / .requestId, retained on ToolCallState._meta. |
Different keys/shapes. VS Code bridges the raw SDK payloads. Unnamespaced keys and metadata replacement are tracked in github/copilot-host#982 (open). VS reader, copilotd writer |
| File subject and preview | ChatToolCallReadyAction.invocationMessage can include file links; .edits carries native previews. |
ChatToolCallReadyAction.invocationMessage reportedly says "Edit file"; .edits is empty. Filename/diff/content are in ChatToolCallReadyAction._meta.promptRequest. |
Native-field gap. Clients must inspect SDK metadata for useful file details. github/copilot-host#981 (open). |
| Approval mode | SessionState.config.values.autoApprove: default, assisted, autoApprove. |
SessionState.config.values.approvalMode: manual, assisted, allow-all; sibling effectiveApprovalMode and availableApprovalModes are host-owned. |
Different vocabulary/state model. Config support landed, but the VS Code-compatible shape was declined. github/copilot-host#989 (closed). VS keys, copilotd contract |
| Deny option | ChatToolCallReadyAction.options -> ChatToolCallConfirmedAction.selectedOptionId. |
Same native fields; host-defined option IDs now include deny. |
Implementation defect, fixed in inspected source. Previously offered approvals only. github/copilot-host#983 (closed). Writer |
Two semantic cautions:
ToolCallState._meta.permissionRequest.kindusesshell;ToolCallState._meta.promptRequest.kindusescommandsfor the corresponding request.- Under copilotd's
SessionState.config.values, absenteffectiveApprovalModemeans displayapprovalMode;unknownis not a grant. VS Code'sdefaultand copilotd'smanualare not proven aliases. The legacyextensions/setSessionApproveAllRPC feeds the same config path. Contract
Models, usage, and errors
| Feature | VS Code | copilotd | Alignment |
|---|---|---|---|
| Model category | SessionModelInfo._meta.category |
SessionModelInfo._meta["copilot.modelPickerCategory"] |
Same carrier, different key. VS Code already reads both; category takes precedence. Reader |
| Cost and token totals | UsageInfo._meta.cost / .copilotUsage / .directCopilotUsage / .turnTokenTotals / .directTurnTokenTotals. |
UsageInfo._meta["copilot.usageDetail"].cost / .copilotUsage; native UsageInfo token counts. |
Different aggregation. Copilot detail describes the latest call; VS Code also reports scoped/turn/session totals. Native counts describe cumulative turn use in copilotd versus latest model context in VS Code. VS contract, producer, copilotd semantics |
| Context-window breakdown | UsageInfo._meta.contextAttribution; Codex also supplies .modelContextWindow / .reasoningOutputTokens. |
SessionState._meta["copilot.usageInfo"]; call detail in UsageInfo._meta["copilot.usageDetail"]. |
Different carrier and breakdown. SessionState._meta["copilot.context"] is Git/cwd context, not token attribution. VS usage, Codex fields, copilotd session metadata |
| Model-call diagnostics | UsageInfo._meta["vscode.modelCall"] |
UsageInfo._meta["copilot.usageDetail"] |
Same carrier, different capsule. Shared request IDs/timing; VS Code adds schema/event identity and durationMs, copilotd uses duration and includes endpoint/finish/reasoning details. VS shape, copilotd shape |
| Prompt-cache expiry | SessionState._meta["vscode.promptCache"]: {modelId, cacheExpiresAt} |
UsageInfo._meta["copilot.usageDetail"].cacheExpiresAt, plus UsageInfo.model |
Session state versus call detail. Optional-field lifetime needs alignment. VS state, copilotd detail |
| Rich errors | ErrorInfo._meta.chatError.fetchError |
ErrorInfo._meta["copilot.errorDetail"]; retriable failures separately in SessionState._meta["copilot.modelCallFailure"] |
Different schemas. Request IDs and error codes overlap; actionable URLs/auto-switch hints differ. Retriable failure snapshots do not end a turn. VS shape, mapping, copilotd shape, failure semantics |
Conversations, commands, plans, and queues
| Feature | VS Code | copilotd | Alignment |
|---|---|---|---|
| Internal request visibility | Message._meta["vscode.chat.requestHiddenFromTranscript"]; broader Message._meta["vscode.chat.hiddenFromTranscript"] also exists. |
Message._meta["copilot.visibility"]: "internal" |
Request-only hiding matches best. The broader flag would suppress responses too. VS semantics, copilotd semantics |
| Message provenance | Message.origin plus Message._meta["vscode.chat.delegation"], ["vscode.chat.agentMerge"], ["vscode.chat.systemInitiatedLabel"], and ["vscode.chat.workspaceContinuation"]. |
Message.origin plus Message._meta["copilot.source"]. |
Different shapes. Structured source references and feature flags versus an open SDK provenance tag. VS delegation, copilotd provenance |
| Model-bound prompt | Attachment variants/snapshots and provider prompt construction; no equivalent whole-message key identified. | Message._meta["copilot.modelText"] |
Partial match: display/model separation. A whole-message override is not an attachment snapshot. copilotd contract, VS snapshots |
| Slash commands | Completion SimpleMessageAttachment._meta.command / .argumentHint / .action.applyConfig. |
Message._meta["copilot.command"], currently compact. |
Completion versus sent message. Acceptance/config changes and command execution are different stages. VS completion, copilotd command |
| Plan workflow | ChatInputRequest._meta.purpose: "planReview" plus extra ChatInputRequest.planReview. |
SessionState._meta["copilot.planHint"] / ["copilot.todosHint"]; extensions/getPlan. |
Partial match: review request versus plan/todo content API. Remote plan editing is listed separately as copilotd-specific. VS review, copilotd API |
| Queued and steering messages | Native ChatState queue and pending-message actions. |
Same native AHP queue; additional runtime-queue inspection is listed in 1.3. | Shared native feature, distinct extra queue. Runtime entries are already accepted; copying them into the AHP send queue could duplicate work. Queue distinction |
| Rich attachments | Feature-specific _meta on MessageAttachment variants; concrete carriers in Appendix A.6/E.5. |
MessageResourceAttachment._meta["copilot.attachmentDetail"] or SimpleMessageAttachment._meta["copilot.attachmentDetail"]. |
Different schemas. Mapping depends on attachment kind/content, not just capsule name. VS snapshot, copilotd contract |
Tools, MCP Apps, terminals, and subagents
| Feature | VS Code | copilotd | Alignment |
|---|---|---|---|
| MCP identity | ToolCallState._meta.mcpServerName / .mcpToolName |
ToolDefinition._meta["copilot.toolOrigin"]: MCP names, kind, loading status. |
Invocation versus definition. Same identities, different scope. VS metadata, copilotd metadata |
| Tool search and loading | ToolCallState._meta.toolSearchCandidates. |
ToolDefinition._meta["copilot.toolDefer"] and ToolDefinition._meta["copilot.toolOrigin"].deferLoading. |
Partial match. Search candidates versus preload preference/status. Chat-scope restrictions are listed separately in 1.3. VS metadata, copilotd metadata |
| MCP App association | ToolCallState._meta.ui: resourceUri, optional channel. |
ChatToolCallStartAction._meta.ui -> ToolCallState._meta.ui: resourceUri, optional visibility. |
Shared key, differing payload/routing. AHP guidance does not establish client alignment. VS view, copilotd writer, AHP guidance |
| PTY tool output | Native terminal channels/content; ToolCallState._meta.toolKind / .language. |
ChatToolCallDeltaAction._meta.ptyTerminal: {input, output} |
Different representation. Check chunk accumulation and interaction with native terminal content. No VS Code producer of the Copilot key found. VS hints, copilotd convention, AHP example |
| Non-PTY tool progress/output | ToolCallState._meta.progressMessage / .toolKind; tool-result content. |
ChatToolCallDeltaAction._meta["copilot.toolOutputDelta"]. |
Partial match. Progress descriptions and output chunks differ; tool-specific result metrics are listed separately in 1.3. VS contract, copilotd deltas |
| Subagents | Native child chats; ToolCallState._meta.subagentDescription / .subagentAgentName / .subagentChatUri. |
Native worker chats; the broader runtime task-list API is listed in 1.3. | Shared feature, different enrichment. VS Code's invocation hints do not represent the whole Copilot runtime task model. VS metadata, Copilot task boundary |
Repositories, changes, and resources
| Feature | VS Code | copilotd | Alignment |
|---|---|---|---|
| Git context | SessionState._meta.git / .gitData / .githubData, plus folder/scope keys; selected summary projections. |
SessionState._meta["copilot.context"]; native working directories/project. |
Different payloads. VS Code adds ahead/behind, dirty/base/upstream/PR state and multi-folder scopes. VS Git, folder identities, copilotd context |
| Change counts | Native changeset added/removed counts. | Same native fields. | Reported defect. Balanced edits showed +0/-0. github/copilot-host#951 was closed as a duplicate of open github/copilot-host#860, not as fixed. |
| Changeset resource access | resourceResolve / resourceRead. |
Same operations over host-published content URIs. | Reported defect. Resolve rejects content that read accepts, breaking stat-before-read clients. github/copilot-host#949 (open). |
1.2 VS Code-specific contracts
No equivalent copilotd host contract was established for these features. This classifies the audited wire extensions, not everything the Copilot product can do. Generic AHP support for a resource does not establish the same product semantics.
| Feature | VS Code contract | Scope / source |
|---|---|---|
| Model prices, promotions, and notices | SessionModelInfo._meta: cost fields, multiplierNumeric, promo, discountPercent, warning/info text, source/group/BYOK identifiers. |
Copilot category metadata is not billing. Pricing, notices, source/group, BYOK |
| Account quota | UsageInfo._meta.quotaSnapshots. |
Account entitlement, usage, overage, and reset snapshots; not context-window occupancy. Contract |
| Host diagnostics and lifecycle | RootState._meta.hostBuild; client telemetry in InitializeParams._meta / ReconnectParams._meta; diagnostics/log/state-file, timing, upgrade, and shutdown RPCs. |
Debugging and host control, not host rename or compaction-checkpoint reads. Build, client metadata, RPCs, upgrade |
| Dev Containers and workspace trust | InitializeResult._meta["vscode.devContainers"]; Dev Container RPCs/notifications; reverse vscode/requestWorkspaceTrust. |
Container launch/relay and client trust interaction. Contract |
| Detached worktree lifecycle | Detached-worktree create/claim/archive/delete/reconcile RPCs; SessionState._meta["vscode.devContainerWorktree"]. |
External worktree handles, especially for Dev Containers. Not a project catalog or clone ID. Lifecycle, metadata |
| Session creation and migration provenance | SessionState._meta / SessionSummary._meta: spawn depth, creator reference, multi-root/folder scope, external/adoptable/adopted/migration-boundary fields; import RPC. |
Session ownership/adoption beyond a message's producer tag. Session keys, creation, migration, RPC |
| Quick, ephemeral, and inline chat surfaces | SessionSummary._meta.workspaceless; CreateSessionParams._meta["vscode.chat.ephemeralSession"] / ["vscode.chat.surface"], retained in initial state. |
Workspace-less and specialized editor/terminal chat behavior. Quick Chat, ephemeral, surface |
| Automation scheduling | InitializeResult._meta["vscode.autonomousAutomations"]; AutomationState._meta["vscode.scheduleCursors"]. |
Scheduled runs, not the runtime's current autopilot objective. Capability, scheduler |
| Fusion and host notices | ToolCallState._meta.fusionPhase; SystemNotificationResponsePart._meta.kind and related notice fields. |
Presentation/lifecycle notices beyond ordinary tool progress. Tool metadata, notices |
| Agent feedback and review comments | Annotation._meta["vscode.agentFeedback"]; AnnotationEntry._meta["vscode.agentFeedback"]; attachment feedback metadata. |
Thread lifecycle, authorship, PR context, and selected-comment delivery. Annotations, attachments |
| Session artifacts/references | SessionSummary._meta["agentHost/sessionArtifacts"]; vscode/removeSessionArtifact. |
Recorded deliverables/references, not arbitrary resource deletion. Metadata, RPC |
| Review state and checkout/PR workflows | Native ChangesetFile.reviewed, legacy ChangesetFile._meta.reviewed; InvokeChangesetOperationParams._meta.treeish / .preCheckoutAction / ["vscode.pullRequest"]; session GitHub/SCM provenance. |
Reviewed status and operation arguments are not oversized-content availability flags. Review fallback, checkout, PR, SCM state |
| Provider customization and setup UI | RootState._meta["vscode.agentCustomizationSettings"]; AgentCustomization._meta.userInvocable; ClientPluginCustomization._meta.mcpDefaultCwds; account/setup in RootState.config.values with old _meta readers. |
Provider settings/launch context and UI descriptors. Current output is distinct from compatibility readers. Settings, agents, plugins, account, setup |
1.3 copilotd-specific contracts
No equivalent VS Code host contract was established for these features. VS Code or the Copilot app may consume these copilotd extensions without their own host emitting an equivalent contract.
| Feature | copilotd contract | Scope / source |
|---|---|---|
| Connection sealing, passivity, and liveness | InitializeResult._meta / ReconnectResult._meta: copilot.passive, copilot.encryptionRequired, copilot.authChallenge, copilot.keepAliveTimeoutMs; RootState._meta["copilot.encryptionKeys"]. |
Connection-level policy and public keys. Passive is not an approval mode. Handshake, keys |
| Host name and default model | extensions/renameHost, extensions/setDefaultModel; RootState.config.values.copilot.hostName / .defaultModel. |
Host-wide mutation APIs, not per-session selection or build diagnostics. Rename, default model |
| Project catalog and cloning | Project list/add/clone/remove RPCs; RootState._meta["copilot.projectManagement"]; RootState.config.values.copilot.projects. |
Pinned directories/clones and optional managed cleanup. VS Code's client already reads this catalog; no equivalent VS Code host catalog API was found. APIs, VS reader |
| Remote plan editing | extensions/updatePlan, extensions/deletePlan. |
Plan-file mutation, not the shared plan-review workflow. The inspected Copilot app deliberately keeps its remote review path read-only. Host APIs, app behavior |
| Compaction checkpoint catalog | SessionState._meta["copilot.checkpoints"]; extensions/readCheckpoint. |
Conversation-compaction summaries, not file-edit checkpoints or session event files. Contract |
| Runtime queue inspection | SessionState._meta["copilot.pendingMessages"] / ["copilot.pendingMessagesHint"]; extensions/readPendingMessages. |
Runtime's already-accepted messages/steering, separate from the shared native AHP send queue. Semantics, read API |
| Background task catalog | SessionState._meta["copilot.backgroundTasksHint"]; extensions/getBackgroundTasks. |
Agent/shell/client task lifecycle and content, broader than the shared subagent-chat feature. API |
| Autopilot objective and truncation state | SessionState._meta["copilot.autopilotObjective"] / ["copilot.truncation"]. |
Runtime objective lifecycle and history-truncation snapshots; not scheduled automations. Objective, truncation |
| Client-tool chat scope | ToolDefinition._meta["copilot.toolAvailability"]. |
Restricts a tool to user-driven chats versus all session chats; a search candidate corpus does not express this. Contract |
| Tool-specific metrics | ToolCallState._meta["copilot.toolTelemetry"], supplied by ChatToolCallCompleteAction. |
Open SDK result metrics, not progress text or output chunks. Contract |
| Oversized changeset content | Nested ChangesetFile._meta.copilot.tooLarge. |
Snapshot-retention limit affects diff/revert availability. Not a review marker. Serializer |
| Forced terminal disposal | extensions/forceDisposeTerminal. |
Audited operator override requiring reason and explicit force, beyond shared normal terminal disposal. Contract |
1.4 Shared-feature carrier crosswalk
These are full property paths, not just matching strings. The same _meta key on two types is two separate access paths; carrying metadata on an action does not automatically imply a client reads it from persisted state.
| Feature | VS Code host path | copilotd host path | Copilot app read path / significant difference |
|---|---|---|---|
| Model category | SessionModelInfo._meta.category |
SessionModelInfo._meta["copilot.modelPickerCategory"] |
Reads the Copilot key from SessionModelInfo. Same carrier, different key. |
| Model-bound prompt | Feature-specific MessageAttachment variants and provider prompt construction; no equivalent whole-message metadata key identified |
Message._meta["copilot.modelText"] |
Now reads/writes that Message key. Historical Message._meta["github.copilot.app.displayPrompt"] reverses the display/model arrangement. |
| Prompt-cache expiry | SessionState._meta["vscode.promptCache"] |
UsageInfo._meta["copilot.usageDetail"].cacheExpiresAt |
No dedicated rich-usage unpacking found. Session snapshot versus call detail within a turn's usage. |
| Context-window breakdown | UsageInfo._meta.contextAttribution |
SessionState._meta["copilot.usageInfo"] |
Reads SessionState._meta["copilot.session.usageInfo"], also checks UsageInfo._meta["copilot.session.usageInfo"]. Both key and carrier expectations need alignment. |
| Cost and token totals | UsageInfo._meta.copilotUsage / .directCopilotUsage |
UsageInfo._meta["copilot.usageDetail"].copilotUsage |
Same carrier but nesting and aggregation differ. The app's SDK-style event reader expects relevant diagnostic fields at the top level after translation. |
| Model-call diagnostics | UsageInfo._meta["vscode.modelCall"] |
UsageInfo._meta["copilot.usageDetail"] |
Same carrier, different capsule. Merely serializing _meta does not project it into app event apiCallId, etc. |
| Rich errors | ErrorInfo._meta.chatError |
ErrorInfo._meta["copilot.errorDetail"] |
Same carrier, different shape. No dedicated Copilot detail projection found. |
| Permission kind and subject | ToolCallState._meta.toolKind; native ChatToolCallReadyAction.invocationMessage / .toolInput |
ChatToolCallReadyAction._meta.permissionRequest / .promptRequest / .requestId, retained on ToolCallState._meta |
App instead reads native ChatToolCallReadyAction fields and reconstructs its local permission union. VS Code's foreign-host reader inspects ToolCallState._meta. |
| MCP identity | ToolCallState._meta.mcpServerName / .mcpToolName |
ToolDefinition._meta["copilot.toolOrigin"].mcpServerName / .mcpToolName |
Invocation versus available-tool definition. Neither automatically becomes app event toolDescription. |
| MCP App association | ToolCallState._meta.ui via tool actions |
ChatToolCallStartAction._meta.ui, retained on ToolCallState and carried into completion as needed |
App parser reads SDK-style toolDescription._meta.ui, not directly AHP action _meta.ui. Similar value, different containing object. |
| PTY tool output | Native terminal state/content plus ToolCallState._meta.toolKind / .language |
ChatToolCallDeltaAction._meta.ptyTerminal |
App projects _meta.ptyTerminal on ChatToolCallContentChangedAction and completion actions. Same key, different action/event support. |
| Plan workflow | ChatInputRequest._meta.purpose plus extra ChatInputRequest.planReview describes review UI |
SessionState._meta["copilot.planHint"] / ["copilot.todosHint"], updated by SessionMetaChangedAction |
Reads session metadata hints to invalidate/fetch content. Partial match: review request versus session-level change hint. |
| Git context | SessionState._meta.git / .gitData; selected fields also on SessionSummary._meta |
SessionState._meta["copilot.context"] |
Different payload and projection. Reading session list summaries is not equivalent to subscribing to full session state. |
Sources: the owning contracts in Appendices A-B, with app read/write call sites in section 2 and examples in Appendix E.
1.5 Existing bridges and priority alignment work
VS Code explicitly bridges model category and permission presentation, and consumes project-management capability/catalog state from copilotd. The first two are shared-feature adapters; the third is consumption of a copilotd-specific host API. Client support does not establish host parity.
Start shared-feature alignment with permission rendering and approval configuration, then model/usage/error presentation, transcript visibility, Git context, MCP Apps, and streamed tool output. The audited VS Code client has no equivalent readers for UsageInfo._meta["copilot.usageDetail"], ErrorInfo._meta["copilot.errorDetail"], Message._meta["copilot.visibility"], or SessionState._meta["copilot.context"].
For host-specific contracts, separately decide whether another host/client needs the feature before proposing a shared shape. Keep issue-reported defects attached to their affected shared feature without treating every defect as a competing metadata convention.
2. What the Copilot desktop app actually consumes
The app has a Rust AHP adapter that converts remote host actions into SDK-style session events for the existing React stores/renderers. A key appearing in serialized event data does not establish that the UI reads it: the adapter must project it into the shape the store consumes. The following traces are from the post-pull revision above. They concern the AHP remote path, not the app's separate local-CLI path.
| Client feature | Actual reader/writer and behavior | Alignment consequence |
|---|---|---|
| Model picker categories | The Rust adapter reads SessionModelInfo._meta["copilot.modelPickerCategory"] into app modelPickerCategory. The frontend groups recognized lightweight, versatile, and powerful categories into tiers. It does not recover VS Code's pricing fields here. Adapter, grouping |
Confirmed consumer. Category is not decorative transport data: it determines picker grouping. VS Code's flat category requires an alias/translation for this reader. |
| Display text versus model input | Outbound messages use Message.text as display text and copilot.modelText for expanded context. On receipt, the translator maps model text to SDK-style transformedContent. github.copilot.app.displayPrompt remains a legacy fallback. Writer, reader |
Confirmed alignment for copilot.modelText after the pull. Preserve the direction of the split; the legacy form puts display text in metadata and model text in the main message, the opposite arrangement. |
| Message provenance | Outbound messages stamp github.copilot.app.source; the inbound helper reads that same key into event source. It does not read the audited host's copilot.source or copilot.visibility in this helper. Writer, reader |
Different names/semantics still matter. An app-specific provenance round-trip is not proof that host-generated source/visibility is rendered correctly. |
| Context-window usage | Session metadata translation, and an additional check on UsageInfo._meta, look for copilot.session.usageInfo. That object becomes session.usage_info; the frontend requires tokenLimit and currentTokens and uses system/conversation/tool-definition token buckets for the context display. Translator, usage action, frontend |
Concrete key mismatch. The audited host emits copilot.usageInfo. The intended value is a context-window snapshot, not merely a cost total. The examples below use the host's real conformance vector, rather than its overly generic open-schema example. |
| Model-call usage and diagnostics | ChatUsage flattens the native usage object into an assistant.usage event but leaves its _meta nested. The conversation store reads call IDs, finish/filter flags, and counts from top-level event fields. No copilot.usageDetail or vscode.modelCall unpacking was found in this path. Adapter, store |
Transport preservation is not consumption. Native token counts can work while richer metadata does not reach the existing per-call diagnostic/accounting fields. |
| Permission prompt rendering | ChatToolCallReady becomes tool.confirmation_requested, with parsed/normalized tool arguments. The frontend passes tool name, arguments/input, invocation text, and options to ahpToolToPermissionRequest; it reconstructs shell/file/MCP prompts from these, not from _meta.promptRequest or _meta.toolKind. Adapter, store, normalizer |
Different client strategy for the same feature. VS Code has a raw-permission-metadata bridge; the app uses tool-name/argument heuristics. This reinforces the need for an agreed permission subject/kind contract. The app now preserves host option IDs/kinds instead of inventing a persistent scope. |
| Approval selection and policy state | The app reads approvalMode, effectiveApprovalMode, and availableApprovalModes, keeps requested/effective state separate, and dispatches SessionConfigChanged with approvalMode when supported. extensions/setSessionApproveAll is a legacy fallback. Reader, writer |
Confirmed consumer of the newer Copilot configuration contract. The pre-pull observation that the app only used the boolean RPC is obsolete. This still does not make VS Code's autoApprove vocabulary equivalent. |
| Plan/todo refresh and review | copilot.planHint and copilot.todosHint are deduplicated by eventId because unrelated full-map replacements can repeat a hint. A new identity emits session.plan_changed; remote plan/todo reads use extensions/getPlan. Reconnect invalidates hint deduplication so reads can retry. Remote plan editing explicitly returns NotSupported in the app approval workflow. Hint reader, read/reconnect/edit behavior |
Confirmed consumer and an important semantic requirement. The hints invalidate cached content; they do not contain the plan. A host supporting updatePlan does not imply this client's review workflow supports editing. |
| Runtime mode observation | The metadata translator also recognizes string copilot.sessionMode, deduplicates it, and emits an internal observed-mode event. The app explicitly does not treat this observation as authoritative next-send configuration. Reader, handling |
Client-only expectation relative to this host inventory. The audited host has native mode configuration, not a registered copilot.sessionMode producer. Record it as an additional compatibility reader, not an extra host-emitted key. |
| PTY tool-row output | _meta.ptyTerminal.output is read for tool completion and ChatToolCallContentChanged, becoming result.content. The frontend replaces the displayed tool result with that string. ChatToolCallDelta is forwarded without that projection. Reader, action branches, store |
Same key, different event/accumulation contract. The audited host emits PTY chunks on deltas. This path does not demonstrate those chunks reach the tool row; simply adding the missing projection would also need append-versus-replace semantics. This finding does not imply the separate native terminal view cannot render terminal-channel data. |
| MCP Apps | The shared frontend parser accepts toolDescription._meta.ui (plus legacy ui/resourceUri) and uses resourceUri to identify an App; it reads visibility/CSP/permissions too. The AHP tool-action adapter serializes action _meta.ui as action metadata, without placing it in toolDescription in the traced branches. Parser, store call site, AHP adapter |
Carrier mismatch in the traced tool-row path. Presence of an MCP UI parser in the app is not proof that an AHP tool-call _meta.ui reaches it or that remote resource routing is wired. |
| Remote project management | The app reads copilot.projectManagement.available, consumes config.values.copilot.projects, and wraps all four project RPCs. The direct probe logs absent/false capability rather than hiding every UI path; Mission Control's catalog also carries availability. Probe, catalog, RPC wrappers |
Confirmed consumers. Availability and a live catalog are separate facts; an empty/missing catalog must not be conflated with unsupported management. |
| Authentication sealing | The environments library reads copilot.authChallenge, copilot.encryptionRequired, and advertised copilot.encryptionKeys. It creates a fresh challenge/nonce/time binding and can compare advertised keys with trusted out-of-band keys; the comparison is not permission to trust keys supplied by an untrusted relay. Reader and binding |
Confirmed consumer with operational consequences. These shapes control how authentication is sealed, rather than UI-only hints. |
No dedicated readers found in the inspected production AHP paths: copilot.errorDetail, copilot.toolOutputDelta, copilot.toolTelemetry, copilot.toolOrigin, copilot.toolDefer, copilot.toolAvailability, copilot.attachmentDetail, copilot.checkpoints, copilot.backgroundTasksHint, copilot.pendingMessages*, copilot.autopilotObjective, copilot.modelCallFailure, copilot.truncation, copilot.context, copilot.passive, and copilot.keepAliveTimeoutMs. This is a bounded source-search result, not proof that every feature is absent from the app: local SDK events, native AHP state, transport logic, and other product paths may support related functionality without reading these exact keys.
Additional app-defined/compatibility metadata shapes
These extend the client-side inventory; they must not be attributed to either audited host as current producer contracts.
{
"messageMeta": {
"github.copilot.app.source": "example-app-origin",
"github.copilot.app.displayPrompt": "Explain this file"
},
"legacySessionMeta": {
"copilot.session.usageInfo": {
"tokenLimit": 128000,
"currentTokens": 3000,
"systemTokens": 500,
"conversationTokens": 2100,
"toolDefinitionsTokens": 400
},
"copilot.sessionMode": "plan"
}
}messageMeta and legacySessionMeta above are example labels, not wire keys. github.copilot.app.displayPrompt is a fallback reader in the new app; new outbound model/display splits use copilot.modelText. The copilot.session.usageInfo mismatch remains in the pulled source. Message reader, session metadata reader
The complete inventories and payload examples continue in the linked comments above. The report is split only to fit GitHub's body-size limits.
(Written by Copilot)
Activity
roblourens commentedon Sep 24, 2026
Report part 2: metadata and custom-method inventories
Report navigation: Feature comparison and app findings · Metadata and method inventories · Concrete payload shapes
Appendix A. VS Code:
_metaextensionsA.1 Handshake, host capabilities, and root state
vscode.clientConnectionKindinitialize/reconnectrequest; client to hostvscode.telemetryLevelinitialize/reconnectrequest; client to hostvscode.clientMachineId,vscode.clientDevDeviceIdinitialize/reconnectrequest; client to hostvscode.getAgentHostSessionStateFile.chatInitializeResult; host to clientvscode.detachedWorktreesInitializeResult; host to clientvscode.removeSessionArtifactInitializeResult; host to clientvscode.importSessionInitializeResult; host to clientvscode.devContainersInitializeResult; host to clientvscode.agentHostTimingInitializeResult; host to clientvscode.autonomousAutomationsInitializeResult; host to clientvscodeUpgradeMethodUnsupportedProtocolVersionerror'sdata._meta; host to client_vscodeUpgrademethod when a managing VS Code CLI can upgrade/restart the host. This also works when normal initialization cannot complete.hostBuildRootStatevscode.agentCustomizationSettingsRootStatevscode.scheduleCursorsAutomationStateThe presence of a capability does not imply every provider or deployment enables every operation. Host-control RPCs have a separate deployment gate, described in the method section.
A.2 Session, workspace, and lifecycle metadata
Carrier scope for every row in this table:
SessionState._metaand/or its host-selectedSessionSummary._metaprojection; this is notChatState._meta. Summary projection is not an unconditional copy of full-state metadata, so clients must not infer summary availability from a full-state reader.githubis specificallyCreateSessionParams._metainput/legacy data.vscode.chat.ephemeralSessionandvscode.chat.surfacealso enter throughCreateSessionParams._meta. Appendix E names these same carriers alongside the example values.gitgitDatagithubDataworkingDirectoryKeys,workingDirectoryScopeIdsgithubgithubData. Current code explicitly does not publish it as the current session-state representation.vscode.sourceControlvscode.promptCachemultiRootvscode.externalvscode.folderPickeragentHost/sessionSpawnDepthcreate_sessiontool.agentHost/createdBySessionagentHost/sessionArtifactsworkspacelesshasWorkspaceTransitionsehcliAdoptable,ehcliAdopted,ehcliLastMigratedTurnvscode.devContainerWorktreevscode.chat.ephemeralSessionvscode.chat.surfaceA.3 Model catalog, usage, and errors
multiplierNumericSessionModelInfoinputCost,cacheCost,cacheWriteCost,outputCostSessionModelInfolongContextInputCost,longContextCacheCost,longContextCacheWriteCost,longContextOutputCostSessionModelInfopriceCategory,categorySessionModelInfodiscountPercent,promoSessionModelInfowarningText,infoText,rowWarningSessionModelInfobyokModelIdentifierSessionModelInfomodelSourceId,modelGroupIdSessionModelInfocost,copilotUsageUsageInfocopilotUsageincludes scoped/turntotalNanoAiuand optional authoritativesessionTotalNanoAiu. Important: do not assume every value is the same aggregation as copilot-host's last-call payload.directCopilotUsageUsageInfoturnTokenTotals,directTurnTokenTotalsUsageInfoquotaSnapshotsUsageInfoautoModeResolvedUsageInfocontextAttributionUsageInfovscode.modelCallUsageInforeasoningOutputTokens,modelContextWindowUsageInfo, Codex producerchatErrorErrorInfoA.4 Tool-call metadata
Carrier scope for every row in this table:
ToolCallState._meta, populated through_metaon tool-call lifecycle actions such asChatToolCallStartAction,ChatToolCallReadyAction, andChatToolCallCompleteAction. These are notToolDefinition._metakeys. An action-only stream extension such as copilotd'sChatToolCallDeltaAction._meta.ptyTerminalis listed separately.toolKindterminal,subagent,fusionPhase,search, orread. Avoids having clients infer the renderer from a raw tool name.languagesubagentDescription,subagentAgentName,subagentChatUrimcpServerName,mcpToolNameuiresourceUriand an optional routingchannel.agentHost.sandboxBypassautoApproveBySettingautoApproveRuleResolvabletoolSearchCandidatesprogressMessagefusionPhaseA.5 Messages and system-notification response parts
vscode.chat.hiddenFromTranscriptMessagevscode.chat.requestHiddenFromTranscriptMessagevscode.chat.systemInitiatedLabelMessagevscode.chat.delegationMessagevscode.chat.agentMergeMessagevscode.chat.workspaceContinuationMessagekind,severity,workspaceKind,workspaceName,fusionStatusSystemNotificationResponsePart._metaA.6 Attachments, completions, customizations, feedback, and operation requests
command,isSkill,description,argumentHint,actionapplyConfigaction when accepting a completion.uri,name,displayName,description_metakeys, not an enclosing skill object.vscode.agentHost.snapshotAttachmentvscode.agentHost.elementAttachmentbrowserViewagentFeedbackvscode.agentHost.sessionReferencevscode.chat.attachment.kind,vscode.chat.attachment.language,vscode.chat.attachment.fileName,vscode.chat.attachment.pastedLinesvscode.chat.attachment.textArtifact,vscode.chat.attachment.fileSnapshotvscode.chat.transcriptContextsessionsInputGitHubContextuserInvocableAgentCustomizationmcpDefaultCwdsClientPluginCustomizationnullmeans the primary working directory.purposeChatInputRequestextra_metabagaskUser,elicitation, orplanReviewfor UI/telemetry. The pinned AHP interface does not declare_metaon this type; VS Code adds it as an extra JSON field.vscode.agentFeedbackAnnotationandAnnotationEntrytreeish,preCheckoutActioninvokeChangesetOperationrequeststashorcommitaction. These extend the standard operation RPC's metadata, not its method name.vscode.pullRequestA.7 Compatibility readers and internal-only uses
These should not be mistaken for additional current VS Code host output contracts.
copilot.modelPickerCategorycategory;categorywins when both exist.copilot.projectManagementRootState.config.values.copilot.projectsfor remote/cloud project management.promptRequest,permissionRequestreviewedChangesetFile.reviewedfield; the client still falls back to_meta.reviewed.vscode.codexAccount_metareader for Codex account status. Current publication is under root configuration values, which take precedence. Sign-in/out request keys also belong to configuration, not_meta.vscode.agentSdkSetup.status.<agent>_metareader for per-agent SDK setup status. Current publication uses root transient configuration values. Download/reload request keys are configuration entries, not_metaextensions.automation,automationRunAgentService.createSession_metaarguments identifying the definition/run. The audited initial-summary builder selects known metadata rather than copying these arbitrary entries, so these should not be advertised as published AHP state keys.Appendix B. copilot-host:
_metaextensionsThe portable metadata specification and Rust key registry define the 30 flat namespaced keys. Runtime implementation adds the raw permission keys and nested oversized-file marker below.
B.1 Messages, attachments, and model information
copilot.modelTextMessage; host-produced and host-consumedMessage.text. Preserves the display/model split.copilot.commandMessage; client to host, also interpretable by clients{name: "compact", focus?: string}. Avoids reparsing display text; text matching remains a fallback.copilot.sourceMessage; host to clientMessage.origin.kindremains authoritative for broad authorship.copilot.visibilityMessage; host to client"internal": suppress the primary message bubble for runtime context while retaining the turn and its responses.copilot.attachmentDetailcopilot.modelPickerCategorySessionModelInfo; host to clientlightweight,versatile, orpowerful. Does not carry model pricing.B.2 Session state
Carrier scope for every row in this table:
SessionState._meta, updated throughSessionMetaChangedAction._meta. These are not properties ofUsageInfoorChatState, even when their contents describe usage or queued messages.copilot.usageInfoUsageInfoand itscopilot.usageDetail.copilot.autopilotObjectivecopilot.backgroundTasksHintextensions/getBackgroundTasks.copilot.planHintextensions/getPlan.copilot.todosHintextensions/getPlan.copilot.pendingMessagesHintcopilot.pendingMessages.copilot.pendingMessagesextensions/readPendingMessages. This is not the host-owned AHP queued-message command list.copilot.modelCallFailurecopilot.checkpointsextensions/readCheckpoint, not embedded in every state update.copilot.truncationcopilot.contextB.3 Usage, errors, and tools
copilot.usageDetailUsageInfo; host to clientcopilot.errorDetailErrorInfo; host to clientcopilot.toolTelemetryToolCallState, delivered by tool-complete actioncopilot.toolOutputDeltachat/toolCallDeltaactioncontentfield remains empty because it represents partial arguments, not tool output. PTY tools instead useptyTerminal.uiresourceUriand optionalvisibilityentries. Protocol guidance: explicitly described in AHP's MCP guide and type comments. Cross-client alignment of the payload and resource routing still needs verification.ptyTerminal{input, output}for PTY tool output, including escape sequences. Protocol guidance: an example in AHP's_metatype comment, which does not specify streaming accumulation or lifecycle semantics. Track those semantics and consumer support like any other metadata convention.copilot.toolOriginToolDefinition; host to clientcopilot.toolDeferToolDefinition; client to host"auto"permits deferral/tool search;"never"keeps the tool preloaded.copilot.toolAvailabilityToolDefinition; client to host"session"allows use in all chats;"userChats"excludes tool-spawned subagent chats.requestIdcopilot.*registry.permissionRequestpromptRequestB.4 Root, connection policy, and changeset files
copilot.encryptionKeysRootStatecopilot.projectManagementRootState{available: boolean}capability for dynamic project listing/add/clone/remove. The live project list is in root configuration, not this_metaentry.copilot.passiveInitializeResultand extra_metaonReconnectResultcopilot.encryptionRequiredcopilot.keepAliveTimeoutMscopilot.authChallengecopilotobject withtooLarge: trueChangesetFile_meta: {copilot: {tooLarge: true}}, not_meta: {"copilot.tooLarge": true}. It is an actual exception to the repository's documented flat-key naming rule.The four handshake keys are connection-local facts. They are not session metadata and are not interchangeable with session approval settings.
Appendix C. VS Code: custom AHP methods
20 client-to-host requests, one reverse request, four notifications. The central extension command/notification maps plus the separately handled upgrade method define the inventory. These are implementation support, not a guarantee of availability on every deployment.
C.1 Client-to-host requests
shutdowngetNetworkDiagnosticsInfogetManagedSettingsDiagnosticsdiagnosticsFetchvscode/getAgentHostSessionStateFilevscode/collectAgentHostDebugLogsvscode/readAgentHostDebugLogsChunkvscode/createAgentHostDetachedWorktreevscode/claimAgentHostDetachedWorktreevscode/setAgentHostDetachedWorktreeArchivedvscode/deleteAgentHostDetachedWorktreevscode/reconcileAgentHostDetachedWorktreesvscode/removeSessionArtifactvscode/importSessionvscode/reportAgentHostFirstResponsevscode/devContainers/isDockerAvailablevscode/devContainers/connectvscode/devContainers/disconnectvscode/devContainers/relaySend_vscodeUpgradeMost host-control requests are gated by
allowExtensionMethods. The dispatcher handles import, artifact removal, and first-response diagnostics before that gate; Dev Container handling also depends on service availability. The upgrade request has its own pre-initialization path. See the dispatcher.C.2 Host-to-client request
vscode/requestWorkspaceTrust{trusted: boolean}.C.3 Host-to-client notifications
vscode/devContainers/relayMessagevscode/devContainers/relayClosevscode/devContainers/closeConnectionvscode/devContainers/outputAppendix D. copilot-host: custom AHP methods
14 client-to-host requests. All are dispatched by the AHP backend dispatcher. I found no additional custom host-to-client request or notification names on this AHP surface. Standard action notifications carry the metadata-driven updates.
extensions/setSessionApproveAlltruerequestsallow-all;falserequestsmanual. Routes through the same session-config change path as newer clients. Success acknowledges acceptance/queuing, not that runtime policy has already approved the mode change.extensions/forceDisposeTerminalforce: true.extensions/getPlancopilot.planHintorcopilot.todosHint.extensions/updatePlanextensions/deletePlanextensions/getBackgroundTasksextensions/readCheckpointcopilot.checkpoints.extensions/readPendingMessagescopilot.pendingMessages.extensions/listProjectsextensions/addProjectextensions/removeProjectextensions/cloneProjectextensions/renameHostextensions/setDefaultModelThese methods are subject to authentication/session-access checks and, where relevant, passive-connection restrictions and operator configuration. Their existence does not imply every connected client may invoke them.
(Written by Copilot)
roblourens commentedon Sep 25, 2026
Report part 3: payload shapes
Feature comparison and app findings · Metadata and method inventories
Appendix E. Concrete payload shapes
Each block names the containing type before showing its
_metafragment. Only the metadata is shown unless a native field is needed to explain it; these fragments are not complete AHP messages. Strings, IDs, counts, paths, and timestamps are synthetic. Examples demonstrate structure, not required fields, defaults, enabled features, or combinations that necessarily occur together. Omitted optional fields and validation details remain in the linked source contracts.For TypeScript signatures below,
?means optional,URIis a serialized URI string, andJsonValuemeans a JSON-compatible value.voiddenotes no application-level result payload, not a literal JSON value. Payloads passed through from an SDK are open/versioned by that SDK; the examples deliberately do not pretend to define a closed schema.E.1 VS Code: handshake and root/automation carriers
Carrier:
InitializeParams._meta/ReconnectParams._meta(client-produced). The connection kind and identity fields are conditional; telemetry values areoff,crash,error, orall. Contract{ "_meta": { "vscode.clientConnectionKind": "direct_websocket", "vscode.telemetryLevel": "all", "vscode.clientMachineId": "example-machine-id", "vscode.clientDevDeviceId": "example-device-id" } }The IDs above illustrate their string shape only; actual clients omit identity when consent does not allow it.
Carrier:
InitializeResult._meta(host-produced presence flags; unsupported flags are omitted). Contract{ "_meta": { "vscode.getAgentHostSessionStateFile.chat": true, "vscode.detachedWorktrees": true, "vscode.removeSessionArtifact": true, "vscode.importSession": true, "vscode.devContainers": true, "vscode.agentHostTiming": true, "vscode.autonomousAutomations": true } }Carrier:
UnsupportedProtocolVersionErrorData._meta, i.e. the JSON-RPC error'sdata._meta, not the error envelope itself. Contract{ "supportedVersions": ["^0.9.0"], "_meta": { "vscodeUpgradeMethod": "_vscodeUpgrade" } }Carrier:
RootState._meta. Setting descriptorpropertiesare registered in the native configuration schema, not duplicated inside this metadata descriptor. Build, customization settings{ "_meta": { "hostBuild": { "version": "1.0.0", "commit": "example-build", "date": "2026-09-24T00:00:00Z", "quality": "insider" }, "vscode.agentCustomizationSettings": [{ "provider": "example-provider", "title": "Provider Settings", "description": "Configure the provider", "settings": [{ "key": "example.setting", "group": "General", "kind": "multiline", "saveLabel": "Save" }], "configurationFile": { "resource": "file:///example/provider.json", "title": "Configuration", "description": "Provider configuration file", "openLabel": "Open", "documentationUrl": "https://example.com/docs", "documentationLabel": "Documentation" } }] } }Carrier:
AutomationState._meta. The schedule cursor is keyed by trigger ID. Writer{ "_meta": { "vscode.scheduleCursors": { "trigger-1": "2026-09-25T09:00:00Z" } } }E.2 VS Code: session-state, summary, and creation-request carriers
Carrier:
SessionState._meta, with host-selected fields projected ontoSessionSummary._meta.gitand eachgitDataentry shareISessionGitState; eachgithubDataentry usesISessionGitHubState. Folder/scope keys below are opaque example keys, not a prescription for clients to compute them. Session keys, Git payload, GitHub/folder keys, artifacts{ "_meta": { "git": { "branchName": "feature", "baseBranchName": "main", "upstreamBranchName": "origin/feature", "isDetachedHead": false, "hasGitRemote": true, "hasGitHubRemote": true, "incomingChanges": 1, "outgoingChanges": 2, "uncommittedChanges": 3, "hasBaseBranchChanges": true, "githubOwner": "example", "githubHeadOwner": "example", "githubRepo": "repo" }, "gitData": { "scope-1": { "branchName": "feature", "uncommittedChanges": 3 } }, "githubData": { "folder-1": { "owner": "example", "repo": "repo", "pullRequestUrls": ["https://github.com/example/repo/pull/1"], "initialPullRequestUrls": [], "associatedPullRequestUrls": ["https://github.com/example/repo/pull/1"], "pullRequestState": "open", "pullRequestStateUrl": "https://github.com/example/repo/pull/1", "pullRequestBranchName": "feature" } }, "workingDirectoryKeys": { "file:///example/repo": "folder-1" }, "workingDirectoryScopeIds": { "opaque-directory-set-key": "scope-1" }, "vscode.sourceControl": { "merge": { "commit": "example-commit" }, "latestOutcome": "merge" }, "vscode.promptCache": { "modelId": "example-model", "cacheExpiresAt": "2026-09-24T18:00:00Z" }, "multiRoot": { "workspaceFile": "file:///example/project.code-workspace" }, "vscode.external": false, "vscode.folderPicker": { "hidden": true, "primary": "file:///example/repo" }, "agentHost/sessionSpawnDepth": 1, "agentHost/createdBySession": { "session": "copilot:/parent", "chat": "ahp-chat:/parent-chat", "turnId": "turn-1" }, "agentHost/sessionArtifacts": [{ "id": "artifact-1", "type": "file", "label": "Report", "isArtifact": true, "uri": "file:///example/report.md" }], "workspaceless": true, "hasWorkspaceTransitions": true, "ehcliAdoptable": true, "ehcliAdopted": true, "ehcliLastMigratedTurn": "turn-0", "vscode.devContainerWorktree": { "version": 1, "handle": "00000000-0000-4000-8000-000000000001" } } }This is a catalog of sample entries, not a coherent single-session snapshot: for example, adoptable/adopted and workspace-less/workspace-bound states should not be inferred to coexist.
workingDirectoryScopeIdsis a string-to-string map whose exact lookup-key encoding is host-owned. Session artifact variants may uselinkorcommitHashinstead ofuri.Carrier:
CreateSessionParams._metafor initial input.githubseeds folder state that is subsequently represented bygithubData; it is not the current published state key. The ephemeral/surface keys are retained in initial session metadata. Input projection, surface union{ "_meta": { "github": { "owner": "example", "repo": "repo", "pullRequestUrls": [] }, "multiRoot": { "workspaceFile": "file:///example/project.code-workspace" }, "vscode.chat.ephemeralSession": true, "vscode.chat.surface": { "surface": "editorInline", "languageId": "typescript", "targetUri": "file:///example/main.ts" } } }The alternative value at
CreateSessionParams._meta["vscode.chat.surface"], also read fromSessionState._meta, is{ "surface": "terminal", "shellType": "bash", "osName": "Linux" }. This is a discriminated union, not one object with every editor and shell field.E.3 VS Code: model, usage, and error carriers
Carrier:
SessionModelInfo._meta(also represented internally byIAgentModelInfo._meta). Pricing, notices, source/group, BYOK{ "_meta": { "multiplierNumeric": 1.5, "inputCost": 1, "cacheCost": 0.1, "cacheWriteCost": 1.25, "outputCost": 5, "longContextInputCost": 2, "longContextCacheCost": 0.2, "longContextCacheWriteCost": 2.5, "longContextOutputCost": 7.5, "priceCategory": "medium", "category": "versatile", "discountPercent": 10, "promo": { "id": "example-promotion", "discountPercent": 10, "endsAt": "2026-10-01T00:00:00Z", "message": "Example promotion", "showBanner": true }, "warningText": { "data_retention": "Example retention notice" }, "infoText": { "info": "Example information" }, "rowWarning": "Example warning", "byokModelIdentifier": "example-client-model", "modelSourceId": "example-account-source", "modelGroupId": "example-provider" } }Carrier:
UsageInfo._meta, carried inChatUsageAction.usageand the active/completed turn's usage. The following capsule fields are not properties onSessionState._meta. Usage contract, model-call capsule, Codex additions{ "inputTokens": 3000, "outputTokens": 100, "cacheReadTokens": 2000, "model": "example-model", "_meta": { "cost": 1, "copilotUsage": { "totalNanoAiu": 1000000, "sessionTotalNanoAiu": 3000000 }, "directCopilotUsage": { "totalNanoAiu": 800000 }, "turnTokenTotals": [{ "model": "example-model", "inputTokens": 5000, "cachedTokens": 2000, "outputTokens": 200 }], "directTurnTokenTotals": [{ "model": "example-model", "inputTokens": 4000, "cachedTokens": 1500, "outputTokens": 150 }], "quotaSnapshots": { "premium_models": { "isUnlimitedEntitlement": false, "entitlementRequests": 100, "usedRequests": 20, "remainingPercentage": 80, "overage": 0, "overageAllowedWithExhaustedQuota": false, "resetDate": "2026-10-01T00:00:00Z", "tokenBasedBilling": true, "overageEntitlement": 10 } }, "autoModeResolved": { "chosenModel": "example-model", "reasoningBucket": "high", "categoryScores": { "example-category": 0.9 }, "predictedLabel": "example-category", "confidence": 0.9, "candidateModels": ["example-model"] }, "contextAttribution": { "totalTokens": 3000, "entries": [{ "kind": "file", "id": "context-1", "label": "main.ts", "tokens": 500 }], "compactions": { "count": 1 } }, "vscode.modelCall": { "schemaVersion": 1, "sdkSessionId": "session-1", "eventId": "event-1", "apiCallId": "call-1", "providerCallId": "provider-request-1", "serviceRequestId": "service-request-1", "agentId": "agent-1", "model": "example-model", "turnId": "turn-1", "durationMs": 1200, "timeToFirstTokenMs": 250, "outputTtftMs": 300, "inputTokens": 3000, "outputTokens": 100, "cacheReadTokens": 2000 }, "reasoningOutputTokens": 50, "modelContextWindow": 128000 } }This combines examples from different providers to show all shapes; do not expect a single provider to emit all of them. Note especially
cachedTokensinside VS Code's whole-turn totals versus nativecacheReadTokensonUsageInfo.Carrier:
ErrorInfo._meta. Contract{ "errorType": "rate_limit", "message": "Example rate limit", "_meta": { "chatError": { "fetchError": { "type": "rateLimited", "reason": "Example rate limit", "requestId": "provider-request-1", "serverRequestId": "service-request-1", "category": "example-category", "retryAfter": 60, "isAuto": false, "capiError": { "code": "rate_limit", "message": "Example rate limit" } }, "copilotPlan": "example-plan", "isUsageBasedBilling": true, "quotaResetDate": "2026-10-01T00:00:00Z" } } }E.4 VS Code: tool-call, message, and notification carriers
Carrier:
ToolCallState._metaand the tool lifecycle actions that populate it, notToolDefinition._meta. This collects independent optional examples, not one semantically consistent tool call. Contract{ "_meta": { "toolKind": "subagent", "language": "bash", "subagentDescription": "Find relevant files", "subagentAgentName": "explore", "subagentChatUri": "ahp-chat:/child", "mcpServerName": "example-server", "mcpToolName": "example-tool", "ui": { "resourceUri": "ui://example/view", "channel": "mcp://example/channel" }, "agentHost.sandboxBypass": true, "autoApproveBySetting": true, "autoApproveRuleResolvable": true, "toolSearchCandidates": [{ "name": "example-tool", "description": "Example tool" }], "progressMessage": "Reading files", "fusionPhase": { "fusionId": "fusion-1", "phaseId": "phase-1", "model": "example-model", "status": "running", "startedAt": 1000, "duration": 500 } } }toolKindalternatives areterminal,subagent,fusionPhase,search, andread. Fusion phase status alternatives arerunning,succeeded,failed, andcancelled.Carrier:
Message._meta. The hidden-request and hidden-whole-transcript flags have different semantics; showing both here is for inventory coverage, not a recommended combination. Visibility, delegation, Agent Merge, continuation{ "_meta": { "vscode.chat.hiddenFromTranscript": true, "vscode.chat.requestHiddenFromTranscript": true, "vscode.chat.systemInitiatedLabel": "Automated follow-up", "vscode.chat.delegation": { "sourceSession": "copilot:/parent", "sourceChat": "ahp-chat:/parent", "sourceTurnId": "turn-1" }, "vscode.chat.agentMerge": true, "vscode.chat.workspaceContinuation": true } }The alternative
Message._meta["vscode.chat.delegation"]value is{ "sourceThreadId": "thread-1" }for provider thread-based delegation.Carrier:
SystemNotificationResponsePart._meta, not the initiatingMessage._meta. Contract{ "_meta": { "kind": "workspaceTransition", "workspaceKind": "worktree", "workspaceName": "example-repo" } }Other example fragments on that same carrier:
{ "kind": "worktreeCreationFailure", "severity": "warning" }and{ "kind": "fusionProgress", "fusionStatus": "completed" }. The source enum lists the additional approval-review, Agent Merge, and response-round notification kinds.E.5 VS Code: attachment, customization, annotation, and operation carriers
Each row shows a value fragment inside the named carrier's
_meta, not the entire parent object. Completion contract, attachment keys_metafragmentSimpleMessageAttachmentin a command completion{ "command": "example", "isSkill": true, "description": "Example command", "argumentHint": "<target>", "action": { "applyConfig": { "mode": "plan" } } }SimpleMessageAttachmentin a skill completion{ "uri": "file:///example/SKILL.md", "name": "example", "displayName": "Example Skill", "description": "Example skill" }MessageResourceAttachment{ "vscode.agentHost.snapshotAttachment": { "isSnapshot": true, "contentType": "text/plain" } }MessageAttachmentvariants containing the paired element/image context{ "vscode.agentHost.elementAttachment": { "correlationId": "element-1" } }SimpleMessageAttachmentfor a browser page{ "browserView": { "browserId": "page-1", "browserUri": "vscode-browser://page-1" } }SimpleMessageAttachmentorMessageAnnotationsAttachment{ "agentFeedback": { "sessionResource": "copilot:/session-1", "feedbackItems": [{ "id": "comment-1", "text": "Handle this case", "resourceUri": "file:///example/main.ts", "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 0, "character": 5 } }, "replies": ["Example reply"] }] } }SimpleMessageAttachment/ associated trajectory attachment{ "vscode.agentHost.sessionReference": { "sessionResource": "copilot:/session-1", "sessionID": "session-1" } }MessageAttachmentvariants for pasted/snapshotted text{ "vscode.chat.attachment.kind": "paste", "vscode.chat.attachment.language": "typescript", "vscode.chat.attachment.fileName": "main.ts", "vscode.chat.attachment.pastedLines": "1-5", "vscode.chat.attachment.textArtifact": true, "vscode.chat.attachment.fileSnapshot": true }MessageAttachment{ "vscode.chat.transcriptContext": { "uri": "file:///example/context.txt", "iconId": "file", "tooltip": "Example context", "fullName": "Prepared Context", "readyMessage": "Context ready" } }MessageAttachment{ "sessionsInputGitHubContext": true }AgentCustomization{ "userInvocable": false }ClientPluginCustomization{ "mcpDefaultCwds": { "server-a": "file:///example/repo", "server-b": null } }ChatInputRequest(extra, locally added_meta, not declared by pinned AHP){ "purpose": "planReview" }(askUserandelicitationare the other values)Annotation{ "vscode.agentFeedback": { "kind": "prReview", "state": "accepted", "sessionResource": "copilot:/session-1", "codeSelection": "example()", "diffHunks": "@@ example @@", "sourcePRReviewCommentId": "review-1", "sourcePullRequest": { "owner": "example", "repo": "repo", "number": 1 }, "pendingAgentReveal": true } }AnnotationEntry{ "vscode.agentFeedback": { "author": "agent" } }(user,prReviewer, andunknownare also accepted)InvokeChangesetOperationParamsfor checkout{ "treeish": "feature", "preCheckoutAction": "stash" }(commitis the other pre-action)InvokeChangesetOperationParamsfor PR creation{ "vscode.pullRequest": { "title": "Example change", "description": "Example description", "draft": true, "agentMerge": false, "autoMergeMethod": "SQUASH", "expectedContext": { "workingDirectory": "file:///example/repo", "repository": "example/repo", "branchName": "feature", "baseBranchName": "main" } } }The PR capsule also supports context-validation
{ "validateOnly": true, "expectedContext": { ... } }, chat options without title/description, and optionalagentMergeOptions: { addressReviews: boolean; fixCI: boolean; resolveConflicts: boolean; mergePullRequest: "always" | "ifUnchanged" | "never" }. These are variants ofInvokeChangesetOperationParams._meta["vscode.pullRequest"], not new custom method names. PR contractE.6 Compatibility and internal carriers
SessionModelInfo._meta{ "copilot.modelPickerCategory": "powerful" }: VS Code foreign-host reader.RootState._meta{ "copilot.projectManagement": { "available": true } }: VS Code foreign-host reader.ChangesetFile._meta{ "reviewed": true }: legacy fallback; current nativeChangesetFile.reviewedis outside_meta.RootState._meta{ "vscode.codexAccount": { "status": "signedIn", "email": "[email protected]", "planType": "example-plan", "requiresOpenaiAuth": true, "rateLimit": { "usedPercent": 25, "windowDurationMins": 60, "resetsAt": 1800000000 } } }: legacy location. Current writer usesRootState.config.values["vscode.codexAccount"].RootState._meta{ "vscode.agentSdkSetup.status.claude": { "agent": "claude", "download": "ready", "setupDocsUrl": "https://example.com/setup" } }: an instance ofvscode.agentSdkSetup.status.<agent>, legacy location. Current writer usesRootState.config.values["vscode.agentSdkSetup.status.claude"].IAgentCreateSessionConfig._meta, not published arbitrary session metadata{ "automation": "ahp-automation:/definition-1", "automationRun": "ahp-automation-run:/run-1" }: scheduler call arguments, not a verified AHP state contract.Raw permission fragments belong to
ToolCallState._meta, populated byChatToolCallReadyAction._meta; see E.9. Root account/setup migration details and all compatibility statuses are sourced in Appendix A.7.E.7 copilotd: message, attachment, and model carriers
Carrier:
Message._meta. These illustrate independent entries, not a recommendation to combine an internal skill message and compact command. Contract{ "text": "Explain this file", "_meta": { "copilot.modelText": "Workspace context: example-repo. Explain this file.", "copilot.command": { "name": "compact", "focus": "Keep the design decisions" }, "copilot.source": "skill-example", "copilot.visibility": "internal" } }Carrier:
MessageResourceAttachment._metafor selections,SimpleMessageAttachment._metafor GitHub references; the capsule retains an SDK discriminator and fields. Example selection capsule: Contract{ "_meta": { "copilot.attachmentDetail": { "type": "selection", "filePath": "/example/main.ts", "displayName": "main.ts", "text": "example()", "selection": { "start": { "line": 0, "character": 0 }, "end": { "line": 0, "character": 9 } } } } }Other SDK attachment variants have different fields; do not apply this selection shape to every attachment. Carrier:
SessionModelInfo._metauses the scalar{ "copilot.modelPickerCategory": "powerful" }.E.8 copilotd: session-state carrier
Carrier for every key in the following block:
SessionState._meta, updated viaSessionMetaChangedAction._meta. The host preserves the other entries when emitting full-map replacements. These are notUsageInfokeys. Registry, queue, checkpoint/context{ "_meta": { "copilot.usageInfo": { "currentTokens": 3000, "tokenLimit": 128000, "messagesLength": 12, "isInitial": true, "systemTokens": 500, "conversationTokens": 2100, "toolDefinitionsTokens": 400 }, "copilot.autopilotObjective": { "operation": "update", "objectiveId": 1, "status": "active" }, "copilot.backgroundTasksHint": { "eventId": "event-1" }, "copilot.planHint": { "operation": "update", "eventId": "event-2" }, "copilot.todosHint": { "eventId": "event-3" }, "copilot.pendingMessagesHint": { "eventId": "event-4" }, "copilot.pendingMessages": { "read": true, "items": [{ "id": "queue-item-1", "messageId": "message-1", "kind": "message", "agentMode": "interactive" }], "steeringCount": 1, "inFlightSteeringCount": 0, "omittedItems": 2, "eventId": "event-4" }, "copilot.modelCallFailure": { "source": "top_level", "errorMessage": "Example upstream failure", "statusCode": 503, "model": "example-model", "durationMs": 1200 }, "copilot.checkpoints": [{ "checkpointNumber": 1, "title": "Design checkpoint", "filename": "checkpoint-1.md", "phase": "complete", "success": true, "tokensRemoved": 800, "messagesRemoved": 12 }], "copilot.truncation": { "performedBy": "BasicTruncator", "tokenLimit": 8000, "preTruncationMessagesLength": 13, "postTruncationMessagesLength": 10, "preTruncationTokensInMessages": 6000, "postTruncationTokensInMessages": 4000, "messagesRemovedDuringTruncation": 3, "tokensRemovedDuringTruncation": 2000 }, "copilot.context": { "cwd": "/example/repo", "branch": "feature", "gitRoot": "/example/repo", "repository": "example/repo" } } }copilot.pendingMessages: { "read": false }is the supported-but-unread placeholder; it does not mean empty. An empty read is{ "read": true, "items": [], "steeringCount": 0 }.copilot.checkpoints: []advertises support with no entries.copilot.autopilotObjectiveoperation values arecreate/update/delete/unknown; status values areactive/paused/cap_reached/completed/unknown. The model-failure, truncation, context, and usage-info capsules are SDK passthrough shapes, not permanently closed interfaces. The usage-info example matches the host conformance vector.E.9 copilotd: usage, error, definition, state, and action carriers
Carrier:
UsageInfo._meta, withinChatUsageAction.usage/ turn usage. This is the last call's detail, not the session-state usage snapshot above. Contract{ "inputTokens": 3000, "outputTokens": 100, "cacheReadTokens": 2000, "model": "example-model", "_meta": { "copilot.usageDetail": { "cost": 1, "cacheWriteTokens": 500, "cacheExpiresAt": "2026-09-24T18:00:00Z", "reasoningTokens": 50, "reasoningEffort": "high", "finishReason": "stop", "initiator": "sub-agent", "apiEndpoint": "/chat/completions", "apiCallId": "call-1", "providerCallId": "provider-request-1", "serviceRequestId": "service-request-1", "contentFilterTriggered": false, "duration": 1200, "interTokenLatencyMs": 15, "timeToFirstTokenMs": 250, "copilotUsage": { "totalNanoAiu": 1000000 } } } }Carrier:
ErrorInfo._meta. Contract{ "errorType": "rate_limit", "message": "Example rate limit", "_meta": { "copilot.errorDetail": { "errorCode": "user_weekly_rate_limited", "statusCode": 429, "url": "https://example.com/usage", "providerCallId": "provider-request-1", "serviceRequestId": "service-request-1", "eligibleForAutoSwitch": true } } }Carrier:
ToolDefinition._meta.copilot.toolOriginis host-produced on server tools;copilot.toolDeferandcopilot.toolAvailabilityare client-produced preferences on registered tools. The combined example documents all shapes, not a mandatory bidirectional echo. Contract{ "_meta": { "copilot.toolOrigin": { "kind": "mcp", "namespacedName": "example-server-example-tool", "mcpServerName": "example-server", "mcpToolName": "example-tool", "deferLoading": true }, "copilot.toolDefer": "auto", "copilot.toolAvailability": "userChats" } }kindisbuiltinormcp; deferral isautoornever; availability issessionoruserChats._metafragmentChatToolCallCompleteAction._meta-> completedToolCallState._meta{ "copilot.toolTelemetry": { "matchCount": 42, "filesScanned": 118, "truncated": false } }ChatToolCallStartAction._meta->ToolCallState._meta{ "ui": { "resourceUri": "ui://example/view", "visibility": ["model", "app"] } }channelis shown in this host's producer.ChatToolCallDeltaAction._meta{ "copilot.toolOutputDelta": "Example output chunk\n" }contentis reserved for arguments and stays empty for these output chunks.ChatToolCallDeltaAction._meta{ "ptyTerminal": { "input": "", "output": "Example PTY chunk\r\n" } }ChatToolCallReadyAction._meta->ToolCallState._meta{ "requestId": "permission-1", "permissionRequest": { "kind": "shell", "fullCommandText": "echo example" }, "promptRequest": { "kind": "commands", "fullCommandText": "echo example" } }ChatToolCallReadyAction._meta->ToolCallState._meta{ "requestId": "permission-2", "promptRequest": { "kind": "write", "intention": "Edit file", "fileName": "/example/main.ts", "diff": "@@ example @@", "newFileContents": "example()" } }Sources: telemetry, UI writer, delta contract, raw permission echo.
E.10 copilotd: root, handshake, and changeset carriers
Carrier:
RootState._meta. The public key below is synthetic base64 shape data, not a usable authentication target. Contract{ "_meta": { "copilot.encryptionKeys": [{ "keyId": "example-key-id", "use": "auth-token", "algorithm": "x25519-sealedbox", "publicKey": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" }], "copilot.projectManagement": { "available": true } } }Carrier:
InitializeResult._metaand extraReconnectResult._meta(connection-local, not root/session state). These keys are conditional on the connection policy. Contract{ "_meta": { "copilot.passive": true, "copilot.encryptionRequired": ["auth-token", "mcp-auth-token"], "copilot.keepAliveTimeoutMs": 90000, "copilot.authChallenge": { "challenge": "00112233445566778899aabbccddeeff", "responseMaxAgeSeconds": 300, "required": true } } }Carrier:
ChangesetFile._meta(nested exception). Exact writer{ "_meta": { "copilot": { "tooLarge": true } } }E.11 Configuration shapes used by the feature comparison
These are not metadata; the containing type is part of the difference.
SessionState.config.values(selected provider's schema is authoritative){ "autoApprove": "assisted", "mode": "plan" }SessionState.config.values{ "approvalMode": "allow-all", "effectiveApprovalMode": "manual", "availableApprovalModes": ["manual", "assisted", "allow-all"] }RootState.config.values{ "copilot": { "hostName": "Example Host", "defaultModel": { "id": "example-model", "config": { "reasoningEffort": "high" } }, "projects": [{ "id": "project-1", "name": "repo", "path": "/example/repo", "origin": "pinned", "git": true, "status": "ready", "bootPinned": false }] } }The approval example intentionally shows a saved preference different from the effective value. Client writes go through
SessionConfigChangedAction.config(or creation config), not by mutating state; the effective/available properties are host-owned. Approval contract, project contractE.12 Custom-method request/result shapes
The method name identifies the request type; the table shows params -> application result, not
_meta. Standard JSON-RPC envelope fields (jsonrpc,id,method,params) are omitted. This is an illustrative type synopsis: complex diagnostic/SDK results are explicitly labeled projections.VS Code client-to-host requests
shutdownvoidgetNetworkDiagnosticsInfo{ version: string; os: string; arch: string; account?: string; proxySettings: Record<string, string>; proxyEnv: Record<string, string>; endpoints: object[] }(endpoint details in source)getManagedSettingsDiagnosticsArray<{ provider: string; snapshot?: object; error?: string }>(provider-native snapshot projection, not an arbitrary universal schema)diagnosticsFetch{ url: string }->{ url: string; proxyUrl?: string; dnsIpv4?: { address?: string; durationMs?: number; error?: string }; dnsIpv6?: { address?: string; durationMs?: number; error?: string }; statusCode?: number; statusMessage?: string; body?: string; durationMs?: number; error?: string }vscode/getAgentHostSessionStateFile{ session: URI; chat?: URI }->{ resource?: URI }vscode/collectAgentHostDebugLogs{ session?: URI; chat?: URI; kind: "archive" | "directory" }->{ kind: "archive" | "directory"; resource: URI; providerLogsIncluded: boolean; size: number; uncompressedSize: number; entries: Array<{ path: string; size: number }> }vscode/readAgentHostDebugLogsChunk{ resource: URI; position: number }->{ data: string; eof: boolean }(datais base64)vscode/createAgentHostDetachedWorktree{ session: URI; prompt: string }->{ handle: string; resource: URI }vscode/claimAgentHostDetachedWorktree{ handle: string }->voidvscode/setAgentHostDetachedWorktreeArchived{ handle: string; archived: boolean }->voidvscode/deleteAgentHostDetachedWorktree{ handle: string }->voidvscode/reconcileAgentHostDetachedWorktrees{ scope: string; activeHandles: string[] }->voidvscode/removeSessionArtifact{ session: URI; artifactId: string }->voidvscode/importSession{ session: URI }->voidvscode/reportAgentHostFirstResponse{ requestId: string; provider: string; agentSessionId?: string; chatId?: string; outcome: "success" | "cancelled" | "error" | "notDispatched"; sessionTurnKind: "first" | "later" | "unknown"; invocationKind: "newTurn" | "existingTurn" | "subagent" | "unknown"; trustInteractionRequired: boolean; totalElapsedMs: number; hasResponseText: boolean; firstResponseTextMs?: number; rootToolCallsBeforeFirstText?: number; rendererRootInvocationOrdinal?: number }->voidvscode/devContainers/isDockerAvailablebooleanvscode/devContainers/connect{ connectionId: string; workspaceFolder: string; name: string }->{ connectionId: string; address: string; name: string; remoteWorkspaceFolder: string; hostWorkspaceFolder?: string }vscode/devContainers/disconnect{ connectionId: string }->voidvscode/devContainers/relaySend{ connectionId: string; data: string }->void_vscodeUpgrade{ ok: boolean; upgradeNeeded?: boolean; upgradeStarted?: boolean; runningCommit?: string | null; latestCommit?: string; restartDelayMs?: number; error?: string }Sources: extension map, diagnostic result contracts, first-response validator, upgrade contract.
VS Code reverse request and notifications
vscode/requestWorkspaceTrust{ workspace: string; trustedParent?: string }-> result{ trusted: boolean }vscode/devContainers/relayMessage{ connectionId: string; data: string }; no responsevscode/devContainers/relayClose{ connectionId: string }; no responsevscode/devContainers/closeConnection{ connectionId: string }; no responsevscode/devContainers/output{ connectionId: string; data: string }; no responseSource: request and notification maps.
copilotd client-to-host requests
extensions/setSessionApproveAll{ channel: URI; enabled: boolean }->{}extensions/forceDisposeTerminal{ channel: URI; reason: string; force: true }->{}extensions/getPlan{ channel: URI }->{ plan: { content: string | null; exists: boolean; path: string | null }; todos: Array<{ id: string | null; title: string | null; status: string | null; description: string | null }>; dependencies: Array<{ todoId: string; dependsOn: string }> }extensions/updatePlan{ channel: URI; content: string }->{}extensions/deletePlan{ channel: URI }->{}extensions/getBackgroundTasks{ channel: URI }->{ tasks: Array<{ type: string; [sdkField: string]: JsonValue }> }; SDK task objects remain open, not a host-owned closed unionextensions/readCheckpoint{ channel: URI; checkpointNumber: number }->{ content: string | null }extensions/readPendingMessages{ channel: URI }->{ items: Array<{ id: string; messageId?: string; kind: string; agentMode: string; displayText: string; displayTextTruncated?: boolean }>; steeringMessages: Array<{ text: string; textTruncated?: boolean }>; omittedItems?: number; omittedSteeringMessages?: number; inFlightSteeringCount?: number }extensions/listProjects{}->{ projects: ProjectEntry[] }extensions/addProject{ path: string }->{ project: ProjectEntry }extensions/removeProject{ id: string; deleteWorktrees?: boolean; deleteClone?: boolean; force?: boolean }->{ removed: boolean; worktreesDeleted?: number; worktreesSkipped?: number; cloneDeleted?: boolean }extensions/cloneProject{ url: string; branch?: string; depth?: number; targetRoot?: string }->{ project: ProjectEntry }(provisional; progress arrives via root configuration)extensions/renameHost{ name: string }->{ name: string }extensions/setDefaultModel{ id?: string | null; config?: Record<string, JsonValue> }->{ defaultModel: { id: string; config?: Record<string, JsonValue> } | null }ProjectEntryexample:{ "id": "project-1", "name": "repo", "path": "/example/repo", "origin": "cloned", "git": true, "status": "cloning", "progress": 25, "bootPinned": false }. Optional fields includeerror,remoteUrl, anddefaultBranch; statuses areready/cloning/failed, origins arepinned/cloned. These objects are RPC results orRootState.config.values.copilot.projects[], not_metavalues.Sources: dispatcher and empty results, approval, force disposal, plan, tasks, checkpoint, pending content, projects, host name, default model.
tl;dr
The main tables now separate shared features, VS Code-specific contracts, and copilotd-specific contracts. Shared-feature alignment starts with permissions/approvals, usage/errors, transcript presentation, Git context, MCP Apps, and tool output. VS Code-only contracts include Dev Container/workspace-trust integration, detached-worktree handles, feedback/artifacts, and diagnostics; copilotd-only contracts include connection sealing policy, project management, runtime task/queue inspection, and compaction catalogs. Partial matches are explicit, and "specific" means no audited host counterpart, not product-wide absence. The per-host inventories, app consumer evidence, and payload examples remain available.
(Written by Copilot)
[-]Inventory and align AHP metadata and custom methods across VS Code and copilot-host[/-][+]Client-feature interoperability across VS Code, copilotd, and Copilot app[/+]