WuSix on Discord (Windows 11), on v0.1.1337: the desktop app still isn't in magpie's Agents, and the repo0c679c640built on (motongv/deepseek-hermes-desktop, "DeepSeek Hermes") is not DeepSeek's. The official one is github.com/deepseek-ai/deepseek-harness. What was wrong:0c679c640took a community Electron wrapper around `dsh web` for the app WuSix runs, and listed dsh, wrote the web profile and dropped dsh's key store for it. That is taken out whole (dshHermes, the store switch, the web-profile app file, noticeDsh6 and its zh, zh-TW, ja and de strings, the Running pattern, dsh_hermes_test.go). A user that v0.1.1337 wired this way keeps profiles/web, which is dsh web's own profile; the next Apply or Sync writes the key store again. The official app, read from its source (deepseek-harness at 687f282e8, dsh-v0.2.1-rc.2) and its real release files: - apps/desktop/scripts/electron-builder-config.mjs: productName DeepSeek Harness, appId from DSH_DESKTOP_APP_ID; first config 19444907f0 hard-codes com.deepseek.dsh. NSIS per-user (perMachine false), a folder the user may pick; installer.nsh writes HKCU ${INSTALL_REGISTRY_KEY} InstallLocation and refuses all-users. - deepseek-harness-0.2.1-rc.2-mac-arm64.zip (sha512 as the feed download.deepseek.com/dsh-desk/feeds/mac-arm64/nightly-mac.yml says): DeepSeek Harness.app, CFBundleIdentifier com.deepseek.dsh, 0.2.1-rc.2, team NAN929V4UM. - deepseek-harness-0.2.1-rc.2-win-x64.exe installed with /S on the Windows 11 box (26200): %LOCALAPPDATA%\Programs\DeepSeek Harness\ DeepSeek Harness.exe, HKCU\Software\1bf39983-50d0-5fe0-9ef4- cece76f67c5e InstallLocation, Uninstall entry DisplayVersion 0.2.1-rc.2, DisplayIcon <exe>,0. Nothing under HKLM. - packages/util/home-paths/src/index.ts (defaultDshHome = ~/.dsh, DSH_HOME) and apps/desktop/src/paths.ts (profiles/desktop, "shared with npm-installed dsh"): the same ~/.dsh as the CLI on every OS. - No Linux desktop build is published (UPDATE_TARGETS is mac-arm64, mac-x64, win-x64; dsh-latest-linux-x64.AppImage is 404); Linux has the npm CLI only. magpie's desktopApps["dsh"] already had all of these (#2279, #2325); the row is named DeepSeek Harness, the app's own name. Run: - Windows box, sandbox USERPROFILE/APPDATA/LOCALAPPDATA (Programs a junction to the real one, where the installer put the app), no ~\.dsh: the released v0.1.1337 magpie-cli-windows-amd64.exe and this commit's build both list "DeepSeek Harness ... ~\.dsh\profiles\desktop\ cordis.patch.yml" in `magpie ls`. So on a default install v0.1.1337 already listed it; what WuSix sees isn't reproduced. An unconnected agent sits under the Agents page's 未设置 (Not set up) fold; WuSix's screenshot and install folder are still to be asked for. - macOS: the real 0.2.1-rc.2 .app in a sandbox HOME's Applications: HasApp true, version 0.2.1-rc.2, `magpie ls` lists it. - New tests: TestDshOnlyTheOfficialApp (red on 0c679c640's dsh.go: "DeepSeek Hermes taken for DeepSeek Harness: detected true") and TestDshWindowsAsTheInstallerRegistersIt (the registry values above, and the GUID as UUID v5 of com.deepseek.dsh in electron-builder's namespace). - gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows. - GUI: i18n-keys, agent-notice-lang, gui-de, gui-ja, gui-zh-tw: 34/34. - Full suite: not run at push time (queued behind the suite lock; pushed per the owner's ship-at-once rule). TestDsh*, TestDesktop*, TestCLIMissing*, TestRegistered* rerun ok at the rebased head on origin/main 03951798a; the full run follows through the lock, reds filed. Not tried: - The real app opened (neither the .app nor the .exe was started), so no request from it through the gateway. - WuSix's own machine: why their row doesn't show is still unknown.
Subsystem design references
These pages describe current responsibilities, runtime paths, state, and contracts. Start with the subsystem relevant to your task, then follow its source links to verify the implementation you change.
| Subsystem | Reference |
|---|---|
| Built-in subscriptions moving to plugins | Provider and plugin ownership |
| Built-in plugins: registry, lifecycle, plugins.yml, presets, settings schemas, the window's kernel (slots, error boundary, kit) | Plugin runtime |
| Plugins that run on the gateway's requests and replies | Gateway middleware |
| Tools that plugins give, offered to every agent as an MCP server | Plugin tools |
| Plugins that await context recall and observe completed replies | Asynchronous gateway request hooks |
| Claude subscription turns across Claude Code runs | Claude subscription bridge |
| How the gateway picks a provider, key or account, and falls back | Gateway routing and fallback |
| Gateway Session Aggregation | Gateway Session Aggregation |
| Connecting an agent's config to the gateway, drift, disconnect, WSL twins | Agent wiring |
| Providers, keys, subscription accounts, refresh and allowance | Providers and accounts |
| Instructions, MCP servers, skills and RTK written into agents | Library |
Tray, panel, window, magpie web and the page's JSON API |
GUI app shell |
| Encrypted backups and setup synchronization over WebDAV, S3 or GitHub | Sync and backup |
A subsystem can span several packages or repositories. Its reference describes the behavior those parts provide together; it does not need to list every function.
Maintain a reference
Update the owning reference in the same PR when a change alters a documented responsibility, interface, state transition, runtime path, compatibility rule, or failure behavior. An internal refactor that preserves these contracts does not require a prose change.
Keep each fact in one reference and link to it from agent instructions or other pages. Link to source files and named symbols rather than copying implementation details that change frequently. Explain field meanings and constraints that signatures alone do not express.
For a new reference, include the responsibilities and boundaries, source of truth, main runtime paths, state transitions, important constraints, and existing verification commands. Include failure and compatibility behavior where relevant. Document current behavior separately from proposed changes; the proposal belongs in its issue or PR.
Describe a PR's semantic changes
For each affected subsystem, explain the observable change with its trigger and before/after behavior. Include changes to interfaces, state, compatibility, and failure behavior when relevant. Link the affected reference, implementation, and verification evidence. State when a refactor preserves the documented behavior.
For example, a change to plugin adoption should explain which migration state and account condition trigger it, which implementation handles requests before and after adoption, and which test exercises that transition.
This is an author-provided explanation that a reviewer verifies against the diff and surrounding code. It is not an automatically proven compatibility verdict.
Review a change
- Identify the affected subsystem and the actual runtime path, including plugin or built-in ownership.
- Compare the claimed before/after behavior with the base and head implementation. Trace relevant callers and state transitions beyond the changed lines.
- Check that changed contracts appear in the owning reference and that source links still resolve.
- Check that the cited tests or runtime evidence exercise the claimed behavior. Report checks that were not run.
A documentation update alone does not prove the implementation. Existing tests and runtime evidence remain necessary for behavior changes.