DSH Stride (寻行)
English | 中文
DSH Stride connects DeepSeek Harness to your authorized Chrome tabs. You can chat from the browser sidebar, read the selected page and ask DSH to interact with it. Stride is an independent community branch of dsh-browser.
1.0.0 covers ordinary chat in Chrome and DSH Web, installation pairing, authorized tab groups, and page reading and interaction. Managed /browser tasks are in preview. Firefox has a separate source build, and Desktop integration remains unverified.
The Host component is @eilyeee/dsh-browser-stride; its source remains in packages/browser/bridge-browser/. The extension is a separate component.
Requirements
- Node.js 24.15 or later in the supported Node 24 line; the exact supported range is in
package.json. - Chrome 116+ and DeepSeek Harness
0.2.2-rc.5using thewebprofile. - For source builds, use the pnpm version specified by
packageManagerinpackage.json.
Install from a release
Download the matching Host tarball, Chrome ZIP, installer, version file and checksums. Follow the included README to install the Host, load the Chrome extension and check the two versions. Keep the original Host data and extension directory when updating. GitHub Releases
Run from source
After checking out this repository:
pnpm install --frozen-lockfile
pnpm run build
./scripts/install.sh # Windows: .\scripts\install.ps1
pnpm start
The installer modifies the local web DSH profile, builds the plugin and Chrome extension, and attempts to open Chrome's extension page. It may remove the legacy bridge package from that profile; review the script before running it. Firefox requires a separate build and temporary installation; see the extension README. Desktop may use a different profile, so installation into web is not proof of Desktop integration. The installer must be run from a complete Stride checkout; it does not download an upstream project.
Connect Chrome to DSH
After starting the Host, click Connect to local DSH in the extension settings. Keep the panel open, then compare and confirm the matching verification code in the signed-in DSH web UI under Settings → General → Browser pairing. The extension saves its installation credential and reconnects automatically thereafter. Requests expire after five minutes; rejection, cancellation or a Host restart requires a new request. Requests grant no authority by themselves: an authenticated Host owner must confirm, and only the requesting extension can claim the credential. Credentials stay out of pages, URLs and logs. Connecting replaces the current browser connection; page actions still follow extension approval settings.
To authorize a page, open it and click the DSH Stride toolbar icon. Only that tab receives temporary page access; same-site sibling tabs need their own click. Chrome controls only authorized pages in the blue DSH 控制 group; unpin a page before authorizing it. Select a group page in the side panel; switching your own tabs does not change the target or prompt for following. Dragging a tab into the group does not authorize it; dragging it out or choosing Stop controlling this page stops Stride control. Cross-site navigation, extension reloads and browser restarts require authorization again. DSH pairing remains separate.
On Chrome, enable Automatically control pages opened by DSH in extension settings and save to let ordinary DSH chat open and bind new pages without a toolbar click. Chrome requests debugger and tab-metadata permissions at installation or upgrade; Stride uses debugger control for newly created tabs while this opt-in is enabled. Explicit screenshots can also attach a visual connection to an already authorized group page; its existing origin restrictions still apply. This is an application restriction, not browser-enforced per-tab isolation. Existing tabs still need separate authorization. Automatic control covers the main HTTP(S) document and follows navigation within that tab. Page sharing and action confirmations retain their settings. Stop control, leaving the group, disabling the setting or disconnecting the debugger revokes control. Worker/browser restarts and extension reloads do not restore automatic page grants. On Chrome, queued /browser tasks can also use the explicit Open a new page and start control described below. Firefox retains the selected-page flow.
To disconnect, choose Unpair DSH in extension settings. This removes the local credential, stops automatic reconnects even after a browser restart, and revokes this installation on the Host when reachable. If DSH is offline or cannot confirm revocation, the extension reports local removal only. Open pages and conversations stay intact. Pair again explicitly to reconnect.
Manual pairing remains available: run pnpm run pair:browser in another terminal and enter the one-time code in extension settings. It expires after five minutes and is exchanged for an installation credential. The address is discovered automatically. For a nondefault port set ws://127.0.0.1:PORT/ext/bridge in the extension and add -- issue --url http://127.0.0.1:PORT to the manual command. Run pnpm run pair:browser -- list to see installations or pnpm run pair:browser -- revoke INSTALLATION_ID to revoke and disconnect one, including its outstanding pairing requests. Add the same --url when needed.
When a conversation supplies a page URL, Stride prefers an already authorized matching page and preserves its state. Ask explicitly for a separate tab when you need an independent copy. Different documents are not merged merely because they share a website; see page selection.
Updating
For the current source installation, pull into the original checkout, install locked dependencies using the required Node/pnpm versions, and run pnpm build. Restart the Host and click Reload at chrome://extensions/. Reloading clears page authorization: return to the existing target tab and click the DSH Stride toolbar icon again. Refreshing the page does not restore its grant, and no duplicate tab is needed. Keeping the original extension installation, browser profile and Host data preserves pairing. Changing the extension installation identity or clearing data requires pairing again. Reload Firefox's temporary add-on as well. Build the Bridge and extension from the same checkout; incompatible peers identify which component needs updating.
For the package-name migration, run the installer once after pulling and building (./scripts/install.sh, or .\scripts\install.ps1 on Windows). It registers @eilyeee/dsh-browser-stride, then removes the transitional @eilyeee/dsh-stride-browser-bridge and legacy @yuxianglin/dsh-bridge-browser and @deepseek-ai/dsh-bridge-browser registrations. Keep the existing DSH home and extension installation to preserve pairing and task records.
For release packages, download the new version and follow the included README to update the Host plugin and Chrome extension separately. To build those files locally, run pnpm run release:prepare. It writes to .stride-private/releases/<version>/, using the root package version.
Connected settings show installed Host, DSH, extension and wire versions. Different package versions prompt a coordinated update; older Hosts may omit version metadata. A compatible wire does not establish feature parity. Wait for active work to finish, retain the original DSH home/profile, restart the Host and reload the extension. Reauthorize existing pages afterwards; pairing and task notes remain available.
Task materials and acceptance
Save a goal, project directory, relevant material links and individual acceptance criteria in the panel's Task materials and acceptance section. Material roles default to Model to determine and follow the task and observed content; users can correct them. The browser_task_notes helper reads and records notes and criterion reports. Model writes cannot replace user-edited notes, and version checks reject stale updates. Notes persist in the Host's profile-specific storage, follow the original conversation and are removed when it is deleted.
Saving before the first message retains the conversation in history without starting the model. Older saved notes whose conversation was never retained also appear in the extension history: explicitly selecting one restores an idle conversation in the default workspace, without inventing earlier messages or using the notes’ project path as a workspace. Unsaved drafts remain in memory while the same panel reconnects or switches settings and conversations; they are separated by Host and conversation and never submitted automatically. Closing or reloading the whole panel can discard unsaved drafts. Save to retain them durably.
Unavailable task-note storage does not block ordinary chat or prevent the browser bridge from starting. The panel shows a storage error rather than empty notes, and the model must obtain any missing requirements from the current conversation. Restore the storage, restart the Host and read back the notes before relying on them. Conversation deletion is blocked while task-note storage is unavailable to avoid leaving saved notes behind. This fallback does not resume browser writes or change their authorization.
Add materials from the control group copies a chosen authorized page’s title and URL into the draft. Save the notes to share this material with the model; its role starts as Model to determine. Duplicate document URLs and links containing recognized credential parameters are excluded. Importing a link does not select a page or start the model. For saved materials already in the control group, Use existing page selects that exact authorized document without opening or reloading a tab. Multiple copies remain separate choices. Closed, navigated or revoked pages require a fresh selection; a saved link alone grants no access. Links without a controlled match open an ordinary new tab requiring toolbar authorization.
Recording a project directory does not move an existing conversation. New chat in this project explicitly creates a separate Session in the saved directory and copies its materials and criteria. Page targets and grants must be checked separately; saved URLs grant no browser access.
Each criterion shows implementation progress, model-observed evidence, uncertainty and next steps. Users can confirm reviewed evidence and download a Markdown record retaining its provenance. Changed requirements, materials or reports invalidate affected confirmations. These notes do not change managed-run verdicts, automatically resume tasks or replay saves.
pnpm run test:smoke-session checks page-free chat, saved notes before the first message, in-memory drafts, restart continuity and storage-failure isolation with a temporary Host, isolated Chrome and a local deterministic adapter. STRIDE_REAL_MODEL=1 opts into the existing default model on synthetic pages; private model inputs follow the extension acceptance instructions. This is separate from regular-browser and real-business-site acceptance.
The Host's administrator token is stored at $DSH_HOME/ext-bridge-token, or ~/.dsh/ext-bridge-token when DSH_HOME is unset. Keep it private and do not enter it in the extension. If a Host was configured with an explicit token, provide it to the CLI via DSH_BRIDGE_ADMIN_TOKEN. If credential storage fails during pairing, issue a new code.
The token file uses restrictive permissions where supported; protect the DSH home with appropriate operating-system access controls. These do not stop malicious processes running as the same user, and the current design does not claim isolation from a compromised local account. Use only one Host process per pairing profile.
Skip action confirmations on authorized pages is enabled by default for new settings and records missing this preference. Saved choices, including an explicit off setting, are preserved. While enabled, authorized page content is shared automatically. Turn it off in settings and save to restore the saved page-sharing policy and normal action-confirmation rules. Page authorization and revocation still apply; the setting cannot authorize other pages.
What exists today
- Chrome viewport image attachments and screenshot-bound coordinate clicks for canvas/image pages; text snapshots, observation-bound DOM control references, page navigation, tab management and selected-text quoting. A new observation invalidates earlier references in that frame.
- A side-panel conversation connected to the local Harness session API; chat image attachments depend on Host support.
- User approval for page-changing actions, target checks, single-select options, and input/checkbox readback. Control readback does not prove a form was saved.
- Bounded Host/worker write ordering, durable uncertain-write records and explicit native human review; automatic task recovery remains unsupported.
- A loopback-only bridge with one-time pairing and separately revocable installation credentials. Host settings, credentials and local-path operations are disabled over the bridge unless the Host explicitly opts in with
allowHostManagement.
Native CDP input, webpage uploads/downloads, reliable run recovery and a shared Desktop/side-panel task model are not currently supported. A successful click or model response is not independent proof that a business task completed.
The model determines material roles from the task and observed content, not a URL, title or Wiki label. The supplied project is the implementation target; prose can provide business rules, interactions, data and acceptance conditions, while embedded designs can provide visual evidence. Reader-theme CSS is not automatically a product requirement; when the user asks to develop the Wiki page itself, its DOM and styles are valid evidence. Inspect the existing project and components before editing; a read-only requirements task does not authorize code changes. This is model guidance, not URL-based authorization. Conflicting materials retain their source values; follow explicit user precedence or ask when it is unresolved. A read-only task remains read-only even when editing tools are available. See synthetic material-role acceptance.
For canvas design pages, browser_screenshot attaches the selected group page’s visible image to DSH; browser_click_at selects a point from that screenshot, then browser_snapshot can read the page’s layer inspector. These clicks are synthetic and do not expose hidden layer metadata. See the visual-tools instructions. Firefox keeps its existing text path.
browser_read_design_styles organizes explicitly labelled properties with source evidence, missing fields and conflicts. The default model has passed separate background/text reads on local synthetic pages and the inspected Lanhu interface in regular Chrome after enlarging its view; other layouts need separate acceptance. See supported formats and limits.
browser_measure_layout reads unique DOM boxes, computed spacing and actual aligned gaps, so generated-page checks can distinguish a missing measurement from 0px. It does not measure hidden canvas layers or judge full-page fidelity. Both peers need the optional layout capability; see parameters and limits.
In Chrome, expand Page diagnostics below the selected group page and click Enable diagnostics for this page before reproducing an integration problem. The model can then call browser_get_diagnostics for bounded Console error types/locations and Network method/status/failure summaries. Capture belongs to the native selected conversation and top-level document; navigation, control changes, disconnect, panel close or ten minutes stop it. Only fixed-vocabulary route templates are returned: console messages, query values, original URLs, header values and request/response bodies are omitted. History before activation, subframes and workers are not covered. The result is always partial and does not establish business success. This uses the existing Chrome debugger connection; it does not expose arbitrary CDP commands or change DevTools settings. Firefox does not offer this capability.
browser_set_design_zoom can adjust a clearly labelled native zoom select or the supported Lanhu design menu and read back its percentage. A packaged no-selection failure permits fresh observation and another supported method; unknown effects require read-only inspection and native review before more writes; see supported controls and checks.
Build the Bridge and extension from the same checkout: click, type and select now require an elementRef from the latest observation. Earlier bare-index clients are incompatible. A delta only provides references for controls it shows; take a full snapshot when a target is missing. Observation ownership binds the native page lifetime, conversation and managed execution revision. It does not identify an account or tenant.
Connections require wire protocol version 4. Tool calls carry an explicit legacy or Host-run scope; the command digest includes that scope. After execution admission and any write turn, the extension confirms the original pending request with the same Host connection before entering browser dispatch. Revocation cannot be renewed by a late confirmation. Missing or incompatible versions stop the connection with update guidance. Build and restart the Host Bridge and reload the extension from the same checkout. Existing replay fences remain in place; this does not provide automatic task recovery.
For tool calls received by the extension that operate on a page, the selected tab, window and URL are captured before receipt storage, approval or write-queue waits. Navigation/history events, explicit rebinding and tab replacement/moves revoke pending calls; an old call cannot follow a newly selected target. An already dispatched operation still settles before the next write. These worker-local fences do not provide complete run/account/tenant binding or recovery.
Host-managed page operations stay on the first confirmed tab and binding generation for that run/control revision. A rebind, closed/replaced/moved tab or new connection cannot silently move the run. Ordinary navigation in the same tab is supported. Changing targets requires a new trusted control revision. Managed tab creation/follow/close are not yet supported; ordinary unscoped sessions can follow or close only explicitly authorized tabs, and newly opened tabs remain unbound unless Chrome automatic control is enabled.
Development
Trusted Host plugins can persist run state and action facts through ctx.browserRuns and bind browser calls to a run/control revision using withExecution. Pause, stop and control changes revoke old contexts; the ledger records the owning run and transport receipts. The side panel can show, pause and request stopping existing Host-owned runs. For an eligible paused or blocked run, select an authorized group page above the conversation, then click Continue on selected page. The Host reserves that native target before marking the run running; its executor must enter a fresh context to continue. In DSH Web, /browser <goal> creates an explicit task without starting the model. Select that conversation in the extension, choose the intended page and click Bind and start. On Chrome with automatic control saved, you can instead enter an HTTP(S) URL in the task card and click Open a new page and start. The new page is created, authorized, grouped and bound before the Host starts its default Agent. An unconfirmed startup reply keeps the page and never triggers an automatic retry. A lost or replaced browser connection pauses its pinned task; reconnect, select its original conversation and explicitly continue on the authorized page. Uncertain writes block continuation until a native human review; see the review flow below. Managed model calls still cannot create, follow or close tabs. A trusted Host verifier can supply completion evidence; without one, the task remains Needs verification. Ordinary chat does not create tasks automatically. General website verification, account/tenant identification and automatic recovery remain unimplemented. See the Bridge documentation.
After an interrupted/uncertain write, wait for the conversation and page operations to stop, then ask for a read-only page check. Expand Review uncertain operations, refresh the list, inspect the actual business records and choose a result for every item. Each item starts undecided; leaving one uncertain keeps the fence. Record review without resuming preserves the original action/receipt, records the human decision separately, and revokes old execution revisions. It neither replays a write nor marks a criterion verified. Continue only through a fresh native selected-page action or a new instruction. Offers are one-use and expire after five minutes; connection, state or observation changes require a new check. A valid late receipt invalidates an earlier review, even if the receipt reports success. A toast, HTTP status or model verdict cannot substitute for business verification.
pnpm run typecheck
pnpm run test
pnpm run build
pnpm run check:runtime
pnpm run test:smoke
pnpm run test:benchmark
After building, pnpm run test:smoke-browser optionally checks the real Host and a Chromium extension against a synthetic local page, using temporary profiles. It does not call a model. The runtime smoke also uses an isolated temporary DSH home; Desktop and real-site scenarios need separate evidence. See contributing, security, and benchmark methodology.
pnpm run test:smoke-auto-tab-model is a separate opt-in real-model check for ordinary DSH chat opening and controlling a new page. It verifies the saved server state, conversation binding and control group without a toolbar page grant. See the extension validation instructions.
The repository retains the upstream MIT license and attribution in LICENSE and NOTICE.md.
Compatibility, update/recovery steps and evidence boundaries are listed in the compatibility guide.
If connected pages are missing, see the extension’s page connection check.
No comments yet. Be the first to write one.