r/DeepSeekHarness • • 23h ago

My Plugin My local DSH home lab (M3 Ultra + M5 Ultra over Thunderbolt) and the plugin I built so the model can't read my keys

3 Upvotes

The lab

• Mac Studio, M3 Ultra, 256 GB: runs DeepSeek Harness (web UI on loopback only) and the main model, a DeepSeek V4 Flash build ("Flash2").

• Mac Studio, M5 Ultra, 512 GB: the heavy box, reached over a Thunderbolt cable. It serves DeepSeek V4.1 Flash (MLX) and a Qwen3.8-27B pool that handles about 8 concurrent agents.

• Routing: the lead agent runs on the Flash models, and every subagent is pinned to the Qwen pool. Nothing goes to a cloud model.

Why I built the plugin

Out of the box, DSH's file tools can read any file in every permission mode (~/.ssh, ~/.aws, .env, other agents' transcripts), web_fetch runs without approval,

and the telemetry plugins are mounted by default. On a box full of keys, that wasn't acceptable.

dsh-hardening-kit (MIT, plugin + two CLIs):

• Refuses reads of credential stores and agent transcripts: file tools, shell commands and search

• Asks before a web_fetch whose URL could carry data out

• Strips DSH's telemetry and identity headers; profile rows turn the uploaders off

• Masks secrets in tool results using gitleaks' rules (withheld if the scan times out)

• Fails closed: if the guard can't prove it's active, DSH doesn't start (exit 78)

• harden-check audits your profile in one command; dsh-guarded --sandbox adds an OS sandbox

Result on my setup: zero cloud logs. lsof shows DSH talking only to loopback (the local models and the Mullvad lane).

Honest limits

Without the sandbox, command checks read the command text, so a cleverly built command can slip past. And on macOS the sandbox can't fence the network while you serve a model on 127.0.0.1, which is exactly my setup. Both are in the README's Limits section.

No runtime dependencies. CI runs it against real DSH (latest/next/alpha) every day on macOS and Linux.

https://github.com/abm9111/dsh-hardening-kit

Reports are very welcome (private vulnerability reporting is on).


r/DeepSeekHarness • • 10h ago

MiniDSH 2.0: My independent attempt to understand and re-derive DeepSeek Harness through a smaller implementation

3 Upvotes

Three months ago, I started studying DeepSeek Harness to understand how a large, modular agent harness is actually designed.

That eventually became MiniDSH, a small open-source harness independently built from scratch.

I shared V1.0 here earlier. V2.0 is now released.

The new version brings the project much closer to DSH's overall product experience. I've closely followed its web UI design and implemented many of its core harness capabilities, while simplifying or redesigning other parts of the system where appropriate.

What's new since V1.0:

  • A redesigned web UI & full-screen terminal TUI.
  • A standalone desktop app for Windows, Linux and macOS.
  • Background jobs and parallel subagent delegation.
  • OpenAI support alongside DeepSeek and Anthropic.
  • Skills, opt-in web search, browser interaction and visual verification.
  • More complete execution records, crash recovery, permission management and effect auditing.

The attached demo shows real sessions running on the published npm package and desktop installer.

What I find most interesting about DSH is its underlying architectural philosophy, rather than any individual feature.

MiniDSH preserves several key ideas I learned from it: capabilities with explicit lifecycles and dependencies, an append-only session log, separation of authority from model reasoning, provider-neutral runtime contracts, and multiple product surfaces built over one runtime.

Meanwhile, I've made some different design choices:

  • A small composition kernel instead of Cordis, and one main package rather than a large package graph.
  • Composition seams for genuinely replaceable capabilities, without making every internal component a plugin.
  • Parallel but foreground child agents, with the parent waiting for their results.
  • Workspace-only writes by default and enforced permission ceilings for delegated agents.
  • A terminal TUI sharing the web client's presentation model.
  • No MCP client, plugin marketplace or agent teams for now.

These don't mean that MiniDSH's approach is better. DSH is a much larger and more capable system designed for a different scope. I'm interested in understanding which parts of its complexity are essential and which can be removed under more limited requirements.

The final release went through a system-wide audit, around 2,500 automated tests, real-provider integration tests and cross-platform CI.

GitHub: https://github.com/earthwalker17/MiniDSH

The repository also contains architecture documentation, a code tour and explicit comparisons with upstream DSH, including where and why the two designs diverge.

MiniDSH is entirely a personal, MIT-licensed learning and research project. It's non-commercial, not affiliated with DeepSeek, and not intended to compete with DSH. The adapted UI design tokens and icons are attributed in the repository.

I hope it can serve as a more approachable companion for people interested in studying DSH and understanding the engineering principles behind larger agent systems.

I'd especially appreciate feedback from people familiar with DSH's architecture, including criticism of my interpretations and simplifications.