Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d1adea8
feat(dsh): verify and recover exact handoff receipts
knqiufan Nov 14, 2026
ec36c88
test(desktop): qualify the receipt API contract
knqiufan Nov 14, 2026
a75a5c2
feat(dsh): add the Claude Code CLI handoff adapter
knqiufan Nov 14, 2026
54d0151
feat(dsh): add the Codex Desktop handoff adapter
knqiufan Nov 14, 2026
413acc3
fix(dsh): declare handoff connection identity tools
knqiufan Nov 14, 2026
0f4e05e
fix(dsh): bind Claude CLI handoff to the qualified terminal and policy
knqiufan Nov 15, 2026
5011a4b
fix(dsh): ship Codex Desktop diagnostics in the default Host
knqiufan Nov 15, 2026
779b08c
Merge commit '5011a4bf' into HEAD
knqiufan Nov 15, 2026
a6d9b18
feat(dsh): add the Claude Desktop Code handoff adapter (#2654)
knqiufan Nov 15, 2026
84363fd
fix(dsh): recover Codex probes and isolate target discovery
knqiufan Nov 16, 2026
4c3b887
fix(dsh): honor Claude CLI project policy during handoff
knqiufan Nov 16, 2026
d87c0e7
Merge Codex adapter review fixes into the Claude handoff stack
knqiufan Nov 16, 2026
294d857
feat(dsh): add the Codex Desktop handoff adapter (#2652)
knqiufan Nov 16, 2026
79ef988
fix(dsh): recognize non-Git workspaces at mount boundaries
knqiufan Nov 17, 2026
1a9813a
Merge the receipts base into the Claude handoff stack
knqiufan Nov 17, 2026
a7d4eeb
feat(dsh): add one-click handoff from assistant replies (#2655)
knqiufan Nov 17, 2026
128e8db
fix(dsh): recover handoff discovery and report unqualified installs
knqiufan Nov 18, 2026
91707c6
Sync Claude handoff with the preflight branch
knqiufan Nov 18, 2026
016d123
Merge commit '3d3d8563' into HEAD
knqiufan Nov 18, 2026
cc53dc1
fix(dsh): qualify Claude with the packaged receiver and saved MCP cre…
knqiufan Nov 18, 2026
840fd7c
fix(dsh): confirm ambiguous handoff goals and omit sensitive shell ev…
knqiufan Nov 23, 2026
7d9fde9
fix(dsh): use the installed Claude Scope resolver
knqiufan Nov 23, 2026
a31f4a5
Sync Claude handoff with the repaired preflight branch
knqiufan Nov 23, 2026
b9ba5f8
Merge commit 'c3ee1ee0214750c023f064424aa7ca3a9a0eebbd' into HEAD
knqiufan Nov 23, 2026
23fd8a3
chore(dsh): add the license header to the handoff UI fixture
knqiufan Nov 23, 2026
b83aa44
Merge commit '4e1706ec10adcaf6418055505271993c6ca710d7' into HEAD
knqiufan Nov 24, 2026
72162d0
fix(dsh): protect shared setup settings and guide disabled Claude users
knqiufan Nov 25, 2026
f21d79f
Merge commit '3bbbf5272367a34fa0c1be1b6fc1a3fb70924e74' into HEAD
knqiufan Nov 25, 2026
6914480
Merge the updated DSH handoff preflight into the Claude CLI adapter
knqiufan Nov 29, 2026
e80dd9b
fix(dsh): screen quoted handoff arguments and honor the generation de…
knqiufan Nov 29, 2026
16acfba
Merge the Kimi capability manifest correction from DSH preflight
knqiufan Nov 29, 2026
807a33e
fix(dsh): detect user-installed Claude Desktop and verify its runtime…
knqiufan Dec 2, 2026
505fb6c
merge: integrate updated DSH handoff preflight into Claude CLI adapter
knqiufan Dec 2, 2026
da2ed59
fix(dsh): decouple receipt reads from inference readiness and narrow …
knqiufan Dec 2, 2026
4431d06
test(dsh): verify persisted receipts during degraded readiness
knqiufan Dec 2, 2026
c79cbf4
merge: sync Claude handoff with repaired DSH preflight
knqiufan Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 84 additions & 41 deletions docs/en/docs/integrations/dsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ Or set the environment variable before starting `dsh web`:
POWERCONTEXT_DSH_OWNER_LOCAL=true dsh web
```

Do not set this for a remote, shared, container, or SSH-forwarded host. The bridge does not add launch, install,
or target routes.
Do not set this for a remote, shared, container, or SSH-forwarded host. The status route only reports the connection;
handoff uses separate owner-local actions and preflight checks.

While the page is visible, the client refreshes every ten seconds. It pauses while hidden, re-verifies immediately
on return, backs off from two to thirty seconds after a failure, and marks a success older than thirty seconds as
Expand All @@ -277,7 +277,7 @@ session and invalidates responses from the previous selection. With no conversat
not create one.

Updating and restarting the plugin preserves the existing profile and connection settings. Uninstalling it removes
the browser entry, the `/powercontext/status`, `/powercontext/dashboard`, and `/powercontext/updates` routes,
the browser entry, the `/powercontext/status`, `/powercontext/dashboard`, `/powercontext/updates`, and handoff routes,
subscriptions, and timers. A headless host or a package without the browser entry keeps the tools and lifecycle hooks.

### Check for PowerContext updates
Expand Down Expand Up @@ -330,44 +330,87 @@ error separately from Browser loading. This plugin neither enables Dashboard nor
The browser entry has been exercised on the official DSH 0.2.2-rc.1 Web and Desktop release; other host releases
need their own container acceptance.

## Cross-agent handoff Host foundation

The plugin owns the authenticated `/powercontext/targets`, `/powercontext/preflights` and
`/powercontext/deliveries` routes described in [RFC 2528](../../rfcs/2528-dsh-plugin-ui-and-agent-handoff.md).
They require the owner's DSH authentication and a local Desktop or explicitly owner-local Web Host
bound to loopback. Shared, proxied, remote, SSH and unverified deployments cannot use these routes.
Handoff availability is separate from the sidebar's Server connection status.

A preflight checks the exact selected reply, effective directory, target runtime and PowerContext
integration, Server identity, connection configuration and Scope. A missing application requires
manual setup. Installing or repairing its PowerContext integration requires explicit consent for
the observed configuration, followed by verification in that destination. If the source reply
changes during installation, choose the original reply explicitly or start a new preflight.
Cancelling stops continuation and preserves installation changes that already took effect.
Preflight checks wait for any shared installation in progress. Preparation and launch must retry
their checks after it settles.

When the preflight store reaches capacity, a new preflight can reclaim failed or cancelled records
that have no delivery reference, and unused ready records at least 30 days old. Pending and
unknown work, and preflights still referenced by a delivery, are kept. Once a preflight is
reclaimed, start a new check; a replay no longer returns the old preflight.

Launch requires an existing complete delivery and checks its saved binding and package again. The Host checks the draft and directory for likely credentials before building the native link.
A `secret_rejected` response means it did not attempt to open the target. The Host persists the
attempt before calling the fixed macOS opener. `opened` means the OS accepted
the request. The receiving draft, user send and PowerContext acknowledgement are separate events.
An interrupted or ambiguous attempt appears as `unknown`. Check the destination before explicitly
retrying with a new request ID that names the previous attempt. A retry reuses the same saved package
and receipt identity. The Host never reopens automatically after a restart.

The Host uses PowerContext's existing Handoff service. An inspected current-work input or exact
Handoff Revision goes through the verified connection; the complete saved package can then be
read or exported by the owning session. Without inspected input or an exact Revision, this Host
returns `needs_input`. Automatic drafting needs a trusted session evidence reader and a configured
generation path.

The capability catalog only offers native preflight for registered, qualified adapters. Codex Desktop,
Claude Desktop Code, and Claude Code CLI require individual adapters and actual host acceptance.
## Hand off current work to another agent

The toolbar below the latest assistant reply includes a handoff icon with the tooltip **Hand off to another agent**.
Select it to open the target menu on its right. Choosing an available agent starts preflight and, once it passes,
prepares the handoff and opens a new session. Progress and any required confirmations stay in the same menu.
The source conversation is preserved. Review and send the draft in the destination. Click outside or press Escape
to close the menu.

Open **Installation checks** to check the listed agents automatically. Each row shows the installed version or
why the agent could not be detected as soon as its check finishes. An installed version that has not been
validated for handoff is marked accordingly. If the handoff options fail to load, close and reopen the menu to retry.

### Availability and current status

On macOS, the plugin enables preflight by default for **Codex Desktop** build
`26.1106.51428 (26605)` with embedded CLI `0.167.0-alpha.4.1` and **Claude Code CLI** `2.1.323`.
Preflight checks the receiver configuration each time. A different version, mismatched Server or Scope, or
unverified package access stops automatic launch. **Claude Desktop (Code)** is available for installation checks;
one-click handoff requires a way to verify its actual new session.

For Claude Code CLI, use the default local Claude profile and ordinary local permissions in Terminal.app.
If the link is not registered or no supported terminal is recorded, open Claude Code interactively in a trusted
folder from a supported terminal and run `/help`, then check again. If PowerContext is missing in the target,
automatic setup requires the local `powercontext` command; otherwise install the receiving integration yourself.
Use a receiving plugin and Server that expose the handoff receiver hook and connection identity tool.

Native handoff currently requires macOS, whether using a verified **owner-local** DSH Desktop or an explicitly
owner-local DSH Web Host bound to loopback. Shared or remote hosts, SSH, forwarded proxies, and hosts whose location cannot be
verified are not supported. Connection status and handoff eligibility are checked separately. When native handoff is
unavailable, consult the [manual Codex handoff guide](../workflows/handoff-with-codex.md) and use the continuation
capabilities available in your agent.

### Hand off to a supported target

1. Select the handoff icon below the reply and choose an available target from the menu on its right. Preflight
checks the selected reply, working directory, target application and its PowerContext integration, Server, and
Scope. Install a missing target application yourself.
2. If the panel offers to install or repair PowerContext in the target, review the prompt and explicitly accept or
decline. Follow the instructions and check again afterward. Cancellation does not undo an installation that has
already completed. If a new reply appeared in the meantime, reselect the reply or explicitly continue with the
original.
3. Once preflight passes, PowerContext prepares the handoff from the selected reply and its bounded context.
When generation is disabled, it can transfer the active objective, reply and available observations for review.
If later messages leave the objective unclear or required context is missing or unsafe, the menu asks you to supply it.
4. The prefilled draft contains a short request and the package path. Check the working directory, edit the request or
add instructions, keep the package path on its own line, and send the draft yourself. For example, add “Run the tests
first and leave the code unchanged.” The receiving PowerContext plugin must support this workflow: it checks the
delivery and workspace after submission. The agent continues and acknowledges through its configured PowerContext
connection. The target uses its own sign-in and model settings. Export a saved package from **Delivery details**.
If the draft or working directory appears to contain a credential, the launch stops with `secret_rejected`.

`~/.powercontext-dsh-handoff/` is the DSH plugin's local delivery directory. It holds the complete native PowerContext
Handoff or exact revision plus delivery and recovery information. PowerContext still handles continuation and
acknowledgement, and an ordinary delivery does not commit a milestone.

### Understand status and recovery

- **Opened** means the operating system accepted the open request. It does not mean the draft appeared, the prompt
was sent, or the receiver accepted the handoff.
- **Awaiting receipt** means no matching acknowledgement has been read. After checking the handoff, the receiver can
accept it, request clarification, or decline. A read failure, missing permission, or unavailable service is not a
decline. Acceptance does not mean the task is complete. A receiver self-report has no authenticated attribution;
an authenticated identity does not establish which application window received the handoff.
- After five minutes without confirmation, refresh manually. A saved confirmation that has not been checked again is
marked as historical.
- Use **Change target** to pick a different agent. This stops the current request if it is still running. Saved
deliveries and target sessions that have already opened are preserved.
- Use **Handoff history** to inspect saved handoffs for this conversation. You can refresh, export an
available package, pin it, or explicitly delete it. Pinned and unconfirmed packages are not automatically removed
under the confirmed-package retention period; an unpinned confirmed package expires after seven days by default.
- If preparation or opening has an unknown outcome, check the handoff history and destination first. The system does
not automatically prepare or open again after restart. Explicitly choose a retry if another open attempt is
needed; it reuses the saved package. Edit the draft to change what the receiver should do next. Create a new handoff
to update the historical facts in the package.

New prefilled prompts and generated handoff notes use the plugin language. Original replies, cited evidence, and
previously saved packages are preserved.

When preflight storage reaches capacity, failed or cancelled records without delivery references and long-unused ready
records can be reclaimed. Pending, unknown, and still-referenced records are retained. After a record is reclaimed,
check the target again. See [RFC 2528](../../rfcs/2528-dsh-plugin-ui-and-agent-handoff.md) for the technical design.

## Diagnose the running configuration

Expand Down
Loading
Loading