pgmi-builds/better-dsh

Make your dsh ready for serious coding. (Tools x Schemas)^REPL. skill://, ctx://, agent://, dvc://, dsh://, IPython REPL, Context as Variables, cross compaction recallable, full context revive. hash-edit, dvc://browser, subagent as a function, workflow as a function.

Project Overview项目介绍

Dashr is a plugin (not a fork) for DeepSeek Harness (dsh) that upgrades the native runtime into a full development environment. Core capabilities include a session-persistent IPython kernel, unified scheme:// resource addressing (skill, ctx, agent, dvc, dsh), a built-in IDE with LSP diagnostics and AST codemods, agent swarms (subagent, workflow, ralph, send_message), dill snapshots, and a self-managed CPython 3.11 virtual environment. Use it for serious, long-running coding where state retention and a rich toolchain matter. Caveat: cell code runs with the local user's permissions, so run Dashr in a trusted or containerized environment.

Dashr 是 DeepSeek Harness (dsh) 的插件(非分支),将原生 dsh 升级为完整开发环境。核心能力是会话持久化的 IPython 内核、统一的 scheme:// 资源寻址(skill、ctx、agent、dvc、dsh)、集成 LSP/AST 的内嵌 IDE、子代理/工作流/Ralph 循环调用、dill 快照以及自管的 CPython 3.11 虚拟环境。适用于需要长时多轮编码、状态保留与丰富工具链的严肃开发场景。注意:单元格代码以本地用户权限执行,应在受信环境或容器内运行。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add --config.auto-install-peers=false better-dsh@latest

pgmi-builds/better-dsh 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Better Dsh — Dashr

dsh plugin npm package Repository License

Dashr (/ˈdæʃ.ɚ/) makes your native dsh ready for serious coding.


Why

  • $(\text{Tools} \times \text{URL schemas})^{\text{REPL}}$ - a concise, cognitively frictionless setup delivering maximal capacity.

  • Universal Tools - read, write, grep, glob.

  • URL schemas - skill://, ctx://, agent://, dvc://, dsh://, an intuitive, unified interface for runtime resources.

  • Persistent REPL Kernel - IPython (compared with the native ephemeral TS REPL).

  • (20+ tools × 5 schemas) ^ REPL free composition =

  • Context as Variables - full session transcripts are accessible as variables, even cross compactions.

  • Full Context Revive — full-namespace dill snapshots save and restore kernel state across restarts.

{ "cell": "
  scout = await agent('agent://ralph', 'graph-analyze this codebase; scout the breaking points to add tests')
  ui    = await read('dvc://browser/127.0.0.1:3080')
  me    = await read('ctx://transcript')",
  "description": "one cell: agents × devices × session" }

✨ Other Features

  • Agent swarm as resources — sub-agents, workflows, and Ralph loops are first-class calls (subagent, workflow, ralph, message).
  • KeepRecency context compactions - preserve recent relevancy. Resets the default 80% compaction threshold to 50% as "usable" context max.
  • A simplistic global LLM-endpoint failover, absent in the native build (a safeguard for long-range, unattended tasks).
  • keeps the system prompt to ~3–4K tokens.
  • dvc://browser - browser use ready.
  • All host plane wired — you do not even see any difference from your dsh UI; it just silently fuels up the dsh base.
  • iOS PWA Ready - minor UI twists that make the webUI a decent PWA for iOS Add to Home Screen.

Recommended Companion Plugin(s)


⚡ Quick Install

dsh plugin --profile web add --config.auto-install-peers=false better-dsh@latest

📚 Inspiration & Attribution

better-dsh is an open-source plugin for DeepSeek Harness (dsh) (MIT). It stands on the shoulders of earlier open-source work:

  • BetterEdit (dsh-better-edit, by Rianico) — the hash-anchored readeditundo_last_edit editing model. Dashr adopts this toolchain (itself a lineage of pi-hashline-editpi-hashline-edit-lszdsh-better-edit) with attribution, and re-wires it natively.
  • omp-agent (oh-my-pi, by Can Bölük) — the dvc:// device framework and its ast_edit / ast_grep / browser / lsp devices, adopted under its MIT license.
  • Prime Agent (Prime Intellect) — the Context as Variables paradigm that shapes the persistent-kernel model.

All upstream dependencies carry their original MIT licenses, recorded in the source tree.


📄 License

MIT. See LICENSE.

上一个 Prev dsh-opencode-models 下一个 Next dsh-character-profiler