Skip to content

feat(fork): add dsh (DeepSeek Harness) provider - #1

Open
HernandoR wants to merge 1 commit into
mainfrom
feat/add-dsh-support
Open

HernandoR wants to merge 1 commit into
mainfrom
feat/add-dsh-support

Conversation

@HernandoR

Copy link
Copy Markdown
Owner

Problem

Not3 Code has no built-in support for dsh (DeepSeek Harness). Users who run dsh have to wire it up by hand, and the app cannot pick their dsh profiles, credentials, models, or permission modes.

Change

Adds dsh as a first-party provider driver, implemented in the fork-owned packages/provider-dsh. The driver runs dsh's ACP profile (dsh --profile acp by default) for each thread, on top of the shared ACP adapter.

  • Permission modes map to dsh's sandbox. Supervised runs read-only, Auto-accept edits runs workspace-write, and Full access runs danger-full-access. Auto is not supported and runs as Supervised. An explicit approval or sandbox override keeps dsh read-only so T3's approval policy sees each write.
  • Models come from a test session. The driver opens a temporary session on the instance's profile and lists its models with dsh's reasoning levels. The temporary session uses a --patch overlay so it does not appear in dsh's session list.
  • Per-instance setup. Settings take a binary path, a profile, and an optional DSH_HOME, so two instances can use different accounts.
  • Registration in upstream files. builtInDrivers.ts, managedProviders.ts, providerClients.ts, the default model and display name in contracts/src/model.ts, and the default-off list in contracts/src/settings.ts (dsh is off by default, like the other packaged drivers). Every edit carries a FORK(dsh) marker, and fork/check.ts pins the hook counts and workspace dependencies.
  • Dependency placement. effect-acp is a devDependency of provider-dsh, because the code only imports its types. As a runtime dependency it failed the third-party license scan that the mobile Metro config runs during the pre-commit knip check. Kiro declares it the same way.
  • Docs. Adds docs/user/providers-dsh.md and a packages/provider-dsh entry in fork/README.md.

Scope

This is a fork feature, not an upstream bug fix. It was requested directly for the fork (add dsh as first party support), so no issue is linked. It touches only the fork-owned package plus the registration points listed above.

Verification

  • packages/provider-dsh/src/server/driver.test.ts: 4 of 4 pass. The tests cover the spawn input (profile, sandbox env, and launcher args), the permission-mode to sandbox mapping (including the read-only override), model and reasoning-level extraction from configOptions, and the fallback to dsh's default model.
  • Full pre-commit hook passes: vp fmt, vp lint, and vp run knip:check. The knip failure from the effect-acp license scan is fixed by the devDependency move.
  • apps/mobile/metro.config.js loads under node -e require(...).
  • Not run: vp run typecheck on provider-dsh, and the full desktop, web, or mobile flows. The provider has not been tested against a live dsh install.

Change produced by model "claude-opus-5-5", harness Claude.

- Add packages/provider-dsh, which runs `dsh --profile acp` per thread over ACP
- Map permission modes to dsh's sandbox: Supervised is read-only, Auto-accept edits is workspace-write, Full access is danger-full-access. Auto runs as Supervised.
- List models from a temporary probe session, with dsh's reasoning levels; DSH_HOME gives each instance its own profiles
- Off by default; register the driver in server, client runtime and contracts, and add docs/user/providers-dsh.md
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for d05233c.

This comment will update automatically after the next completed run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant