better-dsh
dsh RLM mode (Recursive Language Models), iPython REPL tool-calling interface, context-as-variables, in dsh Everything is a Plugin ecosystem.
- Stars
- 4
- Language
- TypeScript
- Created
- Aug 16, 2026
- Updated
- Aug 28, 2026
Introduction
Better Dsh — Dashr
Dashr (/ˈdæʃ.ɚ/) makes your native dsh ready for serious coding. It's a plugin — not a fork — so you keep the official runtime and marketplace, and gain a lighter, higher-capacity way to work.
Why
- Make your native
dshready for serious coding — keep the official DeepSeek Harness, add the pieces that turn it into a real development environment. - Light context injection, maximal capacity — state lives in the kernel instead of the chat window, so long tasks stop paying token costs to re-derive what already exists. A cognition-frictionless setup.
✨ Features
- 🐍 Session-persistent IPython kernel — better than the native one-shot REPL engine: one kernel per session, where variables, imports, and definitions survive across turns. Context as variables.
- 🔗 Unified
scheme://addressing — one intuitive interface to runtime resources:skill://,ctx://,agent://,dvc://,dsh://(plushttp(s)://). - 🧰 Wired-in IDE — LSP diagnostics on write/edit, AST codemods (
ast_edit/ast_grep), and hash-anchorededit/undo_last_editwith write previews. - 🤝 Agent swarm as resources — sub-agents, workflows, and Ralph loops are first-class calls inside a cell (
subagent,workflow,ralph,send_message). - 💾 Snapshots — full-namespace
dillsnapshots save and restore kernel state across restarts. - 🛡️ Self-managed kernel environment — the runtime provisions its own CPython 3.11 venv (
ipykernel+dill); no blind trust in a hostpython3.
⚡ Quick Install
curl -fsSL https://raw.githubusercontent.com/pgmi-builds/better-dsh/main/install.sh | bash
Or via npm:
dsh plugin --profile web add --config.auto-install-peers=false @pgmi-builds/better-dsh@latest
Code inside a cell runs with the permissions of the local user running
dsh— run Dashr where you trust the agent's code execution (or inside a container).
📚 Inspiration & Attribution
Dashr is an open-source plugin for DeepSeek Harness (dsh) (MIT). It stands on the shoulders of earlier open-source work:
- BetaEdit (
dsh-better-edit, by Rianico) — the hash-anchoredread→edit→undo_last_editediting model. Dashr adopts this toolchain (itself a lineage ofpi-hashline-edit→pi-hashline-edit-lsz→dsh-better-edit) with attribution, and re-wires it natively. - omp-agent (oh-my-pi, by Can Bölük) — the
dvc://device framework and itsast_edit/ast_grep/browser/lspdevices, 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.