* feat(desktop): add shared texture transport and native presentation layers * fix(desktop): keep split fixtures and generated notices self-contained * refactor(theme): defer presentation stage token to Office layer * refactor(desktop): move frame integration into its consumer layer * refactor(sidebar-right): move native-layer visibility support to frame layer The fullscreen tab-body background and the tab visibility test only serve the frame integration that hides native layers through tab.visible, so they belong with that consumer layer. * refactor(desktop): keep shared textures on the renderer path * fix(desktop): settle shared textures across GPU loss and teardown * fix(desktop): correlate late texture arrivals and settlements by request * test(desktop): exercise late ingress delivery after presenter reset * fix(desktop): bound unsettled textures before handle export * fix(desktop): retain probe handles and invalidate unsynchronized imports * refactor(desktop): leave the fullscreen caption rule to frame forwarding The caption-menu fullscreen rule, its test, and the README sentences describe fullscreen that frame forwarding offers to plugins. They belong with frame forwarding, not the texture transport. * refactor(desktop): validate Host texture limits in the channel only The Host channel already shortens deadlines to 30 seconds and refuses dimensions above 8192 before Main's presenter sees a request, and it is the presenter's only caller. Remove the repeated checks from the presenter and assert the limits where they are enforced. * fix(desktop): drop only the surface that finds the ingress queue full A full delivery queue ended the macOS ingress reader, so a Main JavaScript thread that stalled for 16 surfaces failed every waiting presentation and left the Host without an endpoint until its next capability query. Release that one surface and keep reading; its presentation fails at the delivery deadline. A closing delivery function still ends the reader. * fix(desktop): reach Main through one process handle for Windows texture handles The Windows adapter opened Main by process identifier for every export, import, and reclamation. After Main exited, the Host's disconnect cleanup reclaimed each unsettled handle with DUPLICATE_CLOSE_SOURCE, which closes the source handle even when the call fails; an identifier reassigned by then named an unrelated process. Keep one handle to Main's process until the endpoint closes, refuse to reclaim without it, and leave duplicates to Main's exit after a disconnect. * feat(desktop): carry shared-texture frames on a native Host-Main channel Each frame was a Node IPC request from the Host's JavaScript thread, answered by a reply and a later notification on the same channel, with the macOS surface sent separately and paired in Main by token, and the Windows handle duplicated into Main by the Host through Koffi. The hop and ingress addons now form a two-way native channel on both platforms: a Mach port pair on macOS and a duplex message pipe on Windows. A frame's handle and description reach Main in one message, and Main returns the delivery reply and the settlement on the same channel. On Windows, Main verifies the pipe client's process and duplicates the Host's handle into its own process, so the Host opens no process and closes no remote handle. The Host IPC channel keeps only the capability and probe controls. A frame that finds Main's 32-frame delivery queue full is refused at once and stays reusable. When the channel is lost, the hop settles every unsettled frame as invalidated. The hop also exposes its connection to other Host addons as a C function table, which the sharedTexture claim returns from nativeSink, so a native producer can submit frames without the Host's JavaScript event loop. * refactor(desktop): drop unused parts of the shared-texture ingress Main never closed a handle inside the Host, never read a frame's delivery deadline, and waited for the Host's pipe connection only to cover the instant before the ingress registers it. Remove reclaimFromPeer, the timeoutMs field of the frame event, and the peer event with the probe's wait for it: a probe that arrives in that instant now fails with the export error. With frames as the only queued deliveries, the delivery function's own queue limit bounds them again. * refactor(desktop): submit shared-texture frames through the native sink only The Host had two entries for submitting a frame: the hop's JavaScript present, wrapped as SharedTextureService.present with promises fed by per-frame events, and the C sink for native addons. Frame forwarding, the only consumer, submits through the sink. Remove the JavaScript entry: the hop's present function and its delivered and settled events, the service's present with its frame, presented, and settlement types, and the wrapper's request table. The hop reports only the loss of a connection to JavaScript. The sink ABI and the wire format are unchanged. * feat(desktop): tell a refused shared-texture frame from a lost connection Every sink refusal returned 1, so a native consumer could not tell whether to keep its sink or replace it: a frame refused at the 128-request limit and a present after Main disappeared looked the same. present now returns DSH_SHARED_TEXTURE_PRESENT_OK (0) when the request left the Host, DSH_SHARED_TEXTURE_PRESENT_REJECTED (1) when only that frame was refused (invalid arguments or fields, the request limit, an identifier in use, or a failed send on a live connection), and DSH_SHARED_TEXTURE_PRESENT_DISCONNECTED (2) when the connection was closed or lost, including a send that found Main gone before the reader did. A sent request still returns 0 and settles through the reader when the connection ends during its send. * refactor(desktop)!: drop frame identifiers and the wire deadline from shared-texture presentation Each frame carried a Host-chosen identifier that the hop and Main both kept unique among unsettled frames, and a delivery deadline that Main never read. Frame forwarding tracks its own deliveries, so the identifiers only cost a string copy, a set lookup on each side, and an extra refusal reason. The sink ABI becomes version 2: dsh_shared_texture_frame_v2 drops id and id_len, and a consumer built for version 1 refuses the version 2 sink. DSTX becomes version 3: its present header drops timeout_ms and id_length and is followed by the metadata alone, and both sides refuse other versions and nonzero reserved fields. The hop still enforces each request's delivery deadline locally and still admits at most 128 unsettled requests; Main bounds admitted frames with a count instead of an identifier set. The native e2e labels frames through their metadata, proves that a timed-out request keeps its slot through the request limit, and forges version 2 and malformed version 3 headers. * refactor(desktop)!: read the Windows compositor adapter in Main To learn which adapter Chromium's compositor renders on, the Host asked Main for a probe texture, Main duplicated it into the Host and kept its own handle and hidden window until the Host released the probe, and the Host closed its duplicate after reading the adapter. The exchange needed the native connection to be open first, a probe table and late-reply cleanup on both sides, and two handle-transfer operations that nothing else used. Main now reads the adapter itself: the ingress addon reports the LUID of a Main-local shared texture through DXGI, formatted as "<HighPart>:<LowPart>" in unpadded lowercase hexadecimal, the text Host addons derive from an adapter LUID. Main exports one compositor texture, reads its adapter, and releases the texture and its window at once. The answer is kept for the GPU process generation, which a GPU process exit or Host teardown advances; concurrent queries share one probe, a probe that finds nothing or fails is not kept, a cleanup cancels a pending probe, and a probe that a GPU process exit overtook records nothing. SharedTextureService.probe becomes adapterLuid(timeoutMs), which resolves to that text or null, returns null outside Windows without asking Main, rejects when Desktop does not present shared textures, and no longer opens the native connection. The Host control requests are capabilities and adapter-luid; the probe and release-probe requests, the ingress exportToPeer, and the hop closeHandle are removed. * perf(desktop): block the macOS shared-texture ingress reader until a request or stop The macOS ingress reader woke every 100 ms to check for a stop request, so an idle Desktop woke the reader ten times a second and a close waited for the next wake-up. The reader now waits without a timeout. stop sets the flag and then sends an empty message to the ingress port through the send right Main already holds; a full queue already wakes the reader, so a wake-up that does not fit is dropped. Once stopped, the reader destroys whatever it receives, including its own wake-up, and Host requests still pass the audit-token check unchanged. * perf(desktop): trim per-frame work on the shared-texture path Every frame repeated work that only the first frame of a connection or no frame needs. On macOS each request carried a new send right to the Host's reply port, which Main merged and deallocated under a lock; the hop allocated and cleared a 4 KB message per request and the ingress cleared its whole receive buffer per message; the hop copied each frame's metadata into a string, and the Windows hop allocated a message vector; Main parsed every frame's metadata as JSON only to have Electron serialize the value again; and the product preload imported textures that no consumer would read. The first request of a macOS connection that reaches Main carries the reply port, and Main keeps it for that connection. Main drops the right when a reply cannot be delivered, as the Windows ingress disconnects the pipe, and the hop then receives a no-senders notification and settles every request as invalidated; Main discards requests that arrive on the dropped connection, and the endpoint serves the Host's next connection. Sends reuse a buffer per connection under the send lock and clear only the header fields and alignment padding, the ingress clears only the fixed message fields, and the hop passes metadata to the transport as a view of the caller's bytes. Main forwards the metadata text, and the product preload parses it before importing the texture. A transfer with metadata that is not JSON, or one that arrives while no consumer is registered, is refused before import, so the Host sees a failed delivery and a released settlement once Main drops its own reference. * fix(desktop): never import a handle from a closed Windows shared-texture connection A Windows request names its texture only by a handle value inside the Host, and Main duplicates it when its reader reaches the request. When the Host closed a connection itself, it settled every unsettled request as invalidated right after closing its pipe end, and the owner could then close the handle. A request still queued in the pipe stays readable after that close, so Main could duplicate a value that already named another object and present that texture as the settled frame. After duplicating, Main now checks that the Host's end of the pipe is still connected. The Host closes its end before it reports any settlement, so a duplicate taken while the end is open names the texture the request was sent with. Otherwise Main closes the duplicate and ends the connection, which discards the requests still queued; the endpoint then serves the Host's next connection. macOS needs no check because each request carries the IOSurface port itself. A Windows e2e suspends Main, presents a frame, closes the connection, and replaces the texture with one that takes over its handle value before resuming Main. Without the check Main delivered that frame with the replacement texture; with it Main delivers only the frames of open connections. * chore(desktop): state how long an ingress reply can block, and end a build script with a newline SharedTextureIngress.reply described a non-blocking queue, but it writes the reply on the calling thread and waits up to the 100 ms reply timeout while the Host is not reading. The comment now says so, together with the connection drop that follows a reply that cannot be written in time. native-package-builds.mjs ended without a newline. * fix(desktop): accept every enabled GPU compositing status in the adapter probe The probe required gpu_compositing to be exactly 'enabled', while support() accepts any 'enabled*' status, so adapterLuid returned null where capabilities reported support. Also type the e2e frame tuple to satisfy no-unsafe-return. * chore(desktop): end native-package-builds.d.mts with a newline * refactor(desktop)!: provide shared textures through the dsh-shared-texture plugin Desktop Host imported its shared-texture types from the private Electron application package, frame forwarding publishes declarations that referenced it, so an installed consumer could not resolve them, and renderer plugins read the texture bridge from globalThis.dshDesktop. @deepseek-ai/dsh-shared-texture (packages/shared-texture/shared-texture) is a Host and Client plugin package that owns the contract: - its Host root exports the abstract Cordis service SharedTexture, registered as ctx.sharedTexture and declaring only claim(), with the claim, capability, and native-sink types; its apply does nothing, because the Loader mounts the package only to deliver the Client half; - ./client is the Client plugin: where Desktop's product preload exposes dshDesktop.textures, it provides that bridge as the Client ctx.sharedTexture, typed SharedTextureBridge, and otherwise provides nothing; - ./bridge carries the type-only renderer SharedTextureBridge and SharedTextureLease; - ./protocol carries the type-only private control protocol between Desktop Main and the Desktop Host, including the hop addon types; it is not a plugin API. web-app mounts the package, so plugins inject ctx.sharedTexture instead of reading host globals. Desktop Host's SharedTexture extends the abstract Host service. Desktop Main and the Desktop Host take the low-frequency control message types from ./protocol and each still validates every message it receives at runtime, so Desktop Host no longer depends on Desktop. Desktop drops its ./shared-texture/host, ./shared-texture/client, and ./shared-texture/internal exports. The shared-texture subsystem page describes the entry points, and the capability-seam graph lists the service. * refactor(desktop): keep the shared-texture protocol in Desktop Host Main and the Desktop Host now share the child-process message types from `apps/desktop-host/src/types.ts`, imported as `@deepseek-ai/dsh-desktop-host/types`, so the published package no longer carries a private protocol subpath. The hop addon interfaces return to the Host module that is their only user. The renderer vocabulary keeps one Cordis-free module, renamed from `bridge` to `types`: `SharedTextureClientExport`, `SharedTextureHostExport`, and `SharedTextureLease`, imported by preload and IPC modules from `@deepseek-ai/dsh-shared-texture/types`. The module is required because the two compiler faces declare `ctx.sharedTexture` with different types: one program holding `src/index.ts` and `src/client/index.ts` fails with TS2717. --------- Co-authored-by: imccyu <276526105+imccyu@users.noreply.github.com>
description, kind
| description | kind |
|---|---|
| The browser GUI for dsh: interactive chat, model and settings management, and session history, for users running the dsh web surface. | package-bundle |
@deepseek-ai/dsh-web-app
English | 中文
Desktop analytics follows the product collection policy, including its live application setting. Web usage is excluded.
Desktop analytics schedules partial batches every 30 seconds, with a 15-second exporter timeout and a 20-second processor timeout. Shutdown allows 2 seconds to drain, then cancels pending requests and retry waits so telemetry does not keep the Host alive. Pending events may be lost on exit.
Summary
Run dsh --profile web for browser chat, model and settings management, and session history, with the same model access, tools, and safety defaults as other dsh surfaces. Startup prints a tokenized URL and normally opens the default browser; SSH sessions and --no-open require manual opening. You can change the port, allow extra authorities, bind one concrete local IP, and serve HTTPS from a certificate you supply; wildcard addresses are rejected. Remote access uses an advertised HTTP(S) URL behind a prefix-stripping proxy, listener TLS, or plain HTTP on a non-loopback bind. Use the headless profile for one-shot command-line tasks.
Table of Contents
- Use this package
- Understand the implementation
- Further Exploration
- Model Experience
- Known Limitations and Deferred Work
- Dev Note
Use this package
Start the GUI, open your browser, and start talking to the agent. The flags fine-tune the invocation.
Agent Teams UI loads with this bundle. Enable it per Session in the model and reasoning menu; shared tasks open below the member tree from the Subagent control.
Starting the Web GUI
dsh --profile web
dsh --profile web --no-open --port 8080
After startup you see a dsh web: line whose root URL carries a fresh process token. Unless --no-open or an SSH session suppresses it, the default browser opens that URL, receives a signed cookie, and redirects to the same directory without the token. You know it worked when the page loads and you can chat with the agent. Two failures to expect: if the frontend is not built, startup stops with a build hint (pnpm run build in a checkout); if the browser cannot be opened, a credential-free diagnostic prints to stderr while the server keeps running — open the printed startup URL yourself.
The sign-in page presents token entry and pairing in separate cards. Paste either a login link or its token; copy the link from Settings → Remote connection on a signed-in device. Continue becomes available only for a well-formed login link or token; activating it while unavailable shows a validation prompt. Editing dismisses the prompt until another submission attempt. Rejected tokens appear in a full-width error banner, matching the pairing failure banners. Pairing instructions are visible before requesting access. Another browser can request access from that page. Approve the matching code in Settings → Remote connection on a signed-in browser; the applicant then enters the application automatically. Browser pairing owns the approval rules and request limits.
Settings → Models displays DeepSeek API, using DEEPSEEK_API_KEY. The default is deepseek-official / deepseek-flash (DeepSeek-V4.1-Flash). The DeepSeek plugin uses the Messages API.
Saved model selections override the composition default. The settings card accepts a Messages-compatible API address and a credential reference.
Configuration
The minimal agent preset uses a persistent shell, the read_image tool, and a fixed persona, with automatic history compaction and the idle-session /compact command. It shares the Host token meter and owns an isolated compaction backend. Compaction configuration and retention follow the existing backend. Image reads reuse the Host filesystem and attachment store and require an image-capable model; text read, write, and edit tools remain excluded.
--host and --port configure the listener; --tls-cert and --tls-key make it serve HTTPS; --public-url names the advertised public HTTP(S) root the GUI is reached at behind a prefix-stripping proxy, and --trusted-host adds further accepted authorities. All are described under Listening, trust, and public deployments, and the tls field those flags set is documented with the carrier's config:
| Field | Default | Meaning |
|---|---|---|
printUrl |
true |
Print contributed entry URLs after startup settles |
openBrowser |
true |
Open the first eligible entry after startup, except under SSH |
surfaceContext |
true |
Expose DSH_WEB_URL to the agent's shell commands |
publicUrl |
Unset | Advertised HTTP(S) application root; otherwise announce the bind-address URL |
WebApp owns printUrl and openBrowser. This bundle enables URL printing and maps the parsed --no-open setting to the runtime. After readiness, synchronous webserver/entry-url listeners contribute complete entries. WebApp prints every entry as label: url when printing is enabled and opens only the first entry marked open: true when browser opening is enabled outside SSH. No entries means no output or opening.
The generated configuration catalog lists this runtime plugin's accepted fields and their JSDoc. The shipped composition inserts the schedule service row and the ui-schedule task page row, while the clock reading and the four reminder tools belong to the standard, cordis, and ptc presets. The tool-subagent and tool-subagent-fork rows in those presets deny the four tools, so a delegated child's scope never lists them. It also inserts the six personalized recommendation rows, from action-cards to client-ui-plugin-recommendations, whose enabled switch is in Settings → General.
The standard, cordis, and ptc presets set config.interrupt: false on their tool-subagent-control rows. To expose interrupt_agent, including in Team mode, override the relevant preset declaration as described in the migration steps; changing the disabled Host row does not change preset tools.
Listening, trust, and public deployments
By default the GUI listens on loopback and accepts connections from this machine only. Only --host changes the listener: it accepts one concrete local IPv4 or IPv6 address, never a wildcard. A non-loopback listener without TLS serves plain HTTP and warns at startup, even when an HTTPS --public-url fronts it. The Host/Origin fence accepts the bind IP itself; other non-loopback authorities require --trusted-host, so a remote browser reaches the GUI behind a prefix-stripping proxy or through a port-forwarding client that presents a trusted hostname. The launch-token exchange and signed session cookie authenticate every API method and WebSocket stream.
Pass --tls-cert and --tls-key together to serve HTTPS from the listener instead of plain HTTP. Each names a file resolved against the process working directory: the certificate file holds the full chain and the key file an unencrypted PEM private key. The flags are one setting — supplying only one is a usage error, and supplying neither keeps the plain-HTTP default. Startup fails when a file is missing, unreadable, empty, or not a valid certificate-and-key pair; it never falls back to HTTP. Nothing re-reads the material while the listener runs, so serving a different certificate needs a listener reload or a process restart. DSH issues, renews, and watches nothing: there is no ACME client, no self-signed fallback, and no redirect listener. The browser applies its own trust store and host-name matching, so a certificate the browser does not trust, or one whose subject alternative names miss the authority you open, fails before the page loads. The default port stays 3080, and --tls-cert/--tls-key do not follow --public-url: the listener's certificate covers the authority browsers dial. TLS changes nothing about authority: Connection still authenticates every request and still checks Host/Origin, and the session cookie it mints is Secure whenever the receiving listener serves HTTPS.
A container can bind its Pod address and advertise the ingress that fronts it:
dsh --profile web --no-open --host "$(hostname -i | awk '{print $1}')" --public-url https://app.example/ --trusted-host app.example
hostname -i may list several addresses; --host takes one, so the command selects the first. A zone ID such as fe80::1%eth0 cannot appear in a URL, so the advertised root drops a redundant loopback zone while a non-loopback zone requires an explicit --public-url.
Without --public-url, mapped IPv6 loopback binds such as ::ffff:127.0.0.1 advertise their IPv4 form, 127.0.0.1, so the browser recognizes a local, trustworthy origin. The listener keeps the configured bind address. A dotted-quad IPv6 tail names the address's own low 32 bits, exactly as listen reads it, so ::0.0.0.1 is IPv6 loopback and advertises [::1], while ::127.0.0.1 is a non-loopback address, not IPv4 loopback.
--public-url advertises the HTTP(S) root browsers use — the printed and opened startup URL, DSH_WEB_URL, and the Web GUI URL in the agent's runtime context. Advertisement grants no trust: the browser-visible authority must also be named with --trusted-host. The flag configures no listener, routing, or cookie scope, because the proxy owns the external leg: Publish the Web UI behind a reverse proxy lists what such a deployment must provide.
Neither the advertised URL nor the browser-trust fence protects the port itself, so restrict the port to the trusted proxy or network.
The printed URL contains a process credential; share it only with intended users. printUrl: false on the WebApp runtime suppresses the line with or without --public-url, and the credential never appears in the model context or in DSH_WEB_URL.
Running over SSH
When you launch dsh --profile web over SSH, the URL line still prints but the browser is not opened for you: the SSH client or editor owns the local forwarding address. Without an advertised root the printed URL names the remote host's bind-address endpoint — loopback for a loopback bind — which you reach through your forwarding address. With --public-url the printed URL is the authenticated advertised root; the browser handoff stays suppressed, because opening a browser on the remote host cannot reach your screen.
Per-session agent setup
Each browser session selects a shipped preset (standard by default). The Agent presets settings page changes the default and edits preset child plugins; saves persist in $DSH_HOME/profiles/web/cordis.patch.yml. Standard, PTC, and Creator enable the plugin-management tool only when the Host provides an editable profile.
Both modes expose read-only runtime inspection through cordis_inspect; see its context effects. Standard, PTC, and Creator include the dsh-doc skill for questions about DSH and requested plugin or preset work. It guides the agent to the installed version's documentation and source. See Model Experience for loading and context effects.
The packaged skill uses the custom skill root: a same-named project skill overrides it, and it overrides same-named user skills. One catalog entry wins without an error; see skill-root priority.
Understand the implementation
Implementation internals — click to expand
The bundle is one patch layer of five files plus one runtime glue plugin: cordis.patch.yml carries the host rows and the preset registry, and each presets/<id>.patch.yml inserts one shipped preset declaration, applied in the order dsh.bundle.patch lists them. The storage stack and projection cache come from dsh-base; the web overlay's workspace and message-feedback rows consume that shared storageDomain service. The patch restates the surface-specific values the base deliberately omits, inserts the web-only host rows and browser roster, then moves the agent plane behind presets. The glue plugin owns dist serving, the advertised application URL, the plain-HTTP exposure warning, and the bash variable. WebApp owns startup URL publication and browser handoff; the Token authentication plugin contributes its signed entry URL. The office-kit row mounts one lazy Office conversion provider for Host consumers, including Desktop compositions using this bundle, and keeps converted files under $DSH_HOME/office-kit/outputs. The standard and ptc presets mount the Office tools in every profile, whether or not Kit is installed, and declare them after an Office skill loads; the minimal preset omits them. The conversion service's Remote methods authorize preview reads, while Document Preview owns the Office viewer and Client cache. The browser roster includes the Script Realm registry and its iframe provider as ordinary rows. Only a package that requests script isolation needs them to start first and allocate a frame.
The skill-office row mounts the Office skills from their packaged assets in every profile. Desktop with a nonempty DSH_PRIMARY_RUNTIME also mounts the bundled dependency-query row and selects pythonEnvironment: 'workspace-dependencies'; other profiles, and Desktop without a primary runtime, select pythonEnvironment: 'user' and leave the dependency-query row disabled. The Desktop application owns resource packaging.
Patch semantics
A patch replaces the targeted row's whole config, so each web row restates every key it owns: the persona prefix template and the session-query-sqlite values on the base rows, then insert adds the web host rows, transport, and browser roster. The webserver, web-runtime, and connection rows inject the webStartup provider and read their invocation values directly; Connection composes its accepted authorities from ctx.webStartup.trustedHosts, and the Host/Origin fence accepts the listener's bind IP independently of that list. The bundle inherits native tool execution; a PTC overlay changes the deployment root registry. The per-agent tool rows the base mounts process-wide are disabled here and the preset roster takes over; the reasoning for each host-plane versus preset-plane decision is inline in the patch.
Advertised application URL
Startup display and browser handoff receive the advertised root with its launch token; the agent's runtime context and DSH_WEB_URL receive it clean. The root itself is defined under Listening, trust, and public deployments.
Readiness
The URL line and browser handoff are readiness signals: supervisors RPC as soon as they observe the line, and a browser requests the page as soon as it opens, so both run only after the Loader tree settles and the required-startup audit passes — or immediately in a hand-built tree without a Loader. Client combo JavaScript and source maps remain unmaterialized at this point. Optional plugin failures do not suppress readiness; a required startup failure or a tree disposed mid-boot announces nothing. Entry collection passes the ordinary base URL and a mutable entry list; each listener synchronously appends its label, complete URL, and automatic-opening eligibility. Publication runs once per root application; providers that contribute no entry produce no line.
Source map
| File | Role |
|---|---|
src/index.ts |
The web-app glue plugin: dist resolution, advertised application URL, bash variable |
src/public-url.ts |
Advertised-root validation and trailing-slash normalization; a leaf module for local imports, not package API |
src/startup.ts |
The web-startup provider: --host, --port, --tls-cert, --tls-key, --public-url, --trusted-host, --no-open, --help |
cordis.patch.yml |
The web patch: restated base values, web host rows, browser roster, preset registry |
presets/ |
One @deepseek-ai/dsh-agent-preset declaration per shipped preset (standard, ptc, minimal, cordis), each its own patch file |
tests/web-app.spec.ts |
Dist index anchoring, advertised-URL publication and warnings, bash variable |
tests/startup.spec.ts |
Command-line parsing over a real Loader tree |
tests/public-url.spec.ts |
Advertised-root parsing and normalization |
Further Exploration
Read these pages when you want to go deeper into the shared core, the browser reload pipeline, or the built frontend.
- Bundle package map — the surfaces built on the same core.
- dsh-base — the shared core the GUI runs on.
- dsh-client-hmr — how client-plugin changes reload during development.
- frontend-static — how the built frontend is served.
- Generated configuration catalog — every accepted config field and its source declaration.
Model Experience
DSH documentation skill
What the model sees
Standard, PTC, and Creator list dsh-doc in the skill catalog, as the SDK profile does. The skill tool loads its instructions and directs the agent to references for the current task. Other presets retain their own skill sources. Loading the skill does not modify workspace files or profile settings.
Token effect
The preset contributes one catalog entry. A session with no other skills also receives the catalog's shared invocation instructions. Skill bodies and reference files enter context only when loaded.
KV Cache effect
The catalog is logged at the first step and remains stable until its entries change. Loading the skill appends tool output without changing the tool schemas.
Creator persona
What the model sees
The Creator preset adds “You help the user customize DeepSeek Harness itself.” after the shared coding-agent sentence. Plugin implementation and authorization rules remain in the on-demand dsh-doc skill.
Token effect
One fixed sentence is added to Creator requests. Standard requests are unchanged.
KV Cache effect
The sentence is stable within the Creator preset; switching to a different preset changes the persona prefix.
Web runtime variable
What the model sees
When surfaceContext is true, DSH_WEB_URL appears in the managed bash environment with its description, resolved per invocation as the advertised application URL defined under Listening, trust, and public deployments above. When it is false, the variable is not registered. The GUI orientation, the implementation checkout, and the current GUI URL come from the dsh-harness-dev-context row this bundle mounts.
Token effect
Two managed-environment variable lines; constant per process.
KV Cache effect
None; the plugin contributes no system-prompt text.
Office skills
What the model sees
The skill catalog lists the office skill in every profile; it gives concise inline guidance for Word, PowerPoint, and Excel pitfalls and for the Office tools. The loaded skill ends with a Python environment section: on Desktop it directs the model to load_workspace_dependencies; elsewhere it directs the model to the project's or user's existing Python.
Token effect
One catalog summary in each initial catalog; the skill body only when the model loads it.
KV Cache effect
While resources and configuration stay unchanged, the built-in Office summary and Python environment section stay stable; the Office skills describe when the catalog changes.
Known Limitations and Deferred Work
These limits tell you what to expect in unusual setups — a source checkout, SSH sessions, or strict networks. They are current package constraints, not a general browser comparison or a task backlog.
- The frontend must be built — a source checkout needs
pnpm run buildfirst; startup stops with a build hint when the dist is missing, and there is no source-serving fallback. - TLS is opt-in and unmanaged — the listener serves HTTPS only when
--tls-certand--tls-keyname a full chain and its unencrypted key; DSH never obtains, renews, or watches certificates, and a changed file needs a listener reload or a process restart. The browser must trust that certificate, its names must cover the authority you open, and the certificate is independent of--public-url. - Without TLS the external leg is plain HTTP — protect it with a TLS-terminating proxy, and do not send the launch URL over a network you do not trust.
- Only the handoff start is observable — the GUI reports that the browser was asked to open, not that it actually opened; a later browser exit is never reported, and the printed URL is your manual fallback.
- SSH sessions keep the URL but skip the browser handoff — without an advertised root the printed URL names the remote host's bind-address endpoint (loopback for a loopback bind); the SSH client or editor must expose and open the local forwarded address.
BROWSERoverrides only come from the environment — a discovered.envcannot setBROWSER; only an inherited value can choose the executable for the automatic handoff.- Binding all network interfaces is not supported — a wildcard
--host, including the IPv4-mapped forms Linux reads as IPv4 any, is rejected at startup for safety; bind one concrete IPv4 or IPv6 address of a local interface instead.
Dev Note
Working context for maintainers — click to expand
None.
The Web composition includes the account Remote controller and Account settings section.