rdsh — a Rust micro-orchestrator that manages and isolates the inference processes of local LLM agents
An independent community project; not an official DeepSeek or DeepSeek Harness project.
rdsh is a Rust micro-orchestrator for local LLM agents: it bundles the operational surface — web search, session management, tool/process isolation, model assignment guardrails, credential handling and update surveillance — as fast native Rust code.
The delegated harness sits behind a swappable adapter layer; the bundled DeepSeek Harness (dsh) adapter delegates transparently to upstream dsh, and model routing via rdsh provider already speaks OpenAI-compatible endpoints and local inference (Ollama / llama.cpp). See docs/HARNESS-ADAPTER.md for the adapter seam. All existing arguments and options continue to work as-is.
Copy the prompt below into your AI agent to get help from installation through your first conversation.
Install rustdsh (command name: rdsh) on this computer and help me start my first conversation.
First, read this entire setup guide and follow its steps:
https://github.com/jimoto-no-llm/rustdsh/blob/main/docs/SETUP.md
- Check my OS, shell and existing installation; install only what is needed.
- After installing and verifying rdsh, open rdsh setup --web first.
- Help me choose and configure exactly one model connection.
- Once connected, run rdsh plugins install --recommended=starter, then start a conversation with rdsh tui.
- Never display API keys or login credentials in chat or logs, and preserve existing settings.
- Proceed one step at a time and report only verified results. If a step fails, stop and explain the cause and next step.
To follow the instructions yourself, open the setup guide.
- ⚡ Sub-millisecond process launch:
rdsh --versionstarts in ~0.90 ms with ~2.9 MB peak RSS, versus ~88 ms and ~66 MB for Node.js-baseddsh --version. This is process launch only: a booted agent profile still runs upstream Node.js, so conversation startup and session memory match upstream. See Benchmarks. - 🔄 100% Drop-in Compatible: Subcommands that are not rdsh-native are passed straight to upstream
dsh. Existing scripts and workflows keep running unchanged. - 🛠 Fast Native Utilities: Estimate tokens, search code, list sessions, and run health diagnostics (
rdsh doctor) instantly without starting Node.js. - 🛡 Safe by Default: Read-only commands never modify source files, credentials are never automatically synced or exported, and
rdsh_inspectcan be confined to explicitly shared files on Linux. - 🛠 Fast Native Utilities: Estimate tokens, search code, list sessions, and inspect local prerequisites (
rdsh doctor --json) without starting Node.js. - 🛡 Safe by Default: Read-only commands never modify source files, credentials are never automatically synced or exported, and agent tools can be confined to explicitly shared files on Linux.
The design rationale behind this hybrid split is documented in docs/PHILOSOPHY.md.
- Quick Start
- Requirements
- Installation
- Usage
- Web UI & Dashboard
- Using with Smart-DSH
- Benchmarks
- Safety Design
- FAQ
- Documentation
- Community
- Credits
- License
Already using Claude Code, Codex, Cursor, VS Code Copilot, OpenCode or Gemini CLI? Connect the project dashboard through MCP to share tasks, questions and structured UI while keeping your current coding agent. This entry point requires Node.js 22+; DSH and Rust are optional.
Linux / macOS / WSL:
curl -fsSL https://github.com/jimoto-no-llm/rustdsh/releases/latest/download/install.sh | bash -s -- --from-releaseWindows (PowerShell):
$f = Join-Path $env:TEMP 'rdsh-install.ps1'
Invoke-WebRequest -Uri https://github.com/jimoto-no-llm/rustdsh/releases/latest/download/install.ps1 -OutFile $f -UseBasicParsing
& $f -FromReleaseOr install the crate from crates.io (needs Rust 1.85+):
cargo install rdshcargo install builds from source and installs the same binary as the release
archives. Debian/Ubuntu and Fedora/RHEL users can also install the release
.deb/.rpm with apt/dnf.
The released v0.15.0 installers do not prepare Node.js or pnpm. Conversations
through the bundled DSH adapter also need an existing DSH runtime: the Unix
installer prints guidance, while the Windows installer can offer a global npm
install at an interactive console when npm is already available. Check the
feature-specific compatibility and upstream dependency audit
before choosing a version or accepting an unpinned latest installation.
rdsh --version && rdsh doctor # verify install and original dsh
rdsh setup # interactive setup (or rdsh setup --web for browser UI)Never set a CLI up before? docs/SETUP.md is a step-by-step runbook written to be handed to an AI agent: install, connect one model route (OpenAI credit, OpenCode Go, Command Code or Ollama), add the recommended plugins, and start a conversation, one verified step at a time.
Note: If you have an existing login from Codex CLI (ChatGPT OAuth) or opencode, import it with rdsh auth --import --provider openai-codex.
rdsh tui # start with TUI profile
# or
rdsh --profile web # start with Web profile| Item | Detail |
|---|---|
| OS | Linux, macOS, WSL, Windows (native) |
| DSH runtime | Required for conversations and agent runs (native tools and diagnostics run standalone) |
| Rust | 1.85+ (only needed when building from source; prebuilt binaries require no Rust) |
| Optional | Node.js 22+ for the Node.js dashboard; SearXNG or an Ollama API key for search-web |
Linux x86_64 users on Debian/Ubuntu (and WSL) or Fedora/RHEL can install the
same release binary with the OS package manager. Download the .deb or .rpm
from the
latest release and
install that file directly; no extra repository is configured.
sudo apt install ./rdsh_<version>_amd64.deb # Debian, Ubuntu, WSL
sudo dnf install ./rdsh-<version>-1.x86_64.rpm # Fedora, RHEL, Rocky, AlmaLinux<version> is the release tag without its leading v (0.6.0 for v0.6.0).
The package installs /usr/bin/rdsh together with the licence and README, so
rdsh --version works right after installation: no Rust toolchain, no
install.sh. Like rdsh-linux-x64.tar.gz, both packages carry the glibc
build, so the musl archive and install.sh stay the fallback for older
distributions.
Linux / macOS / WSL:
git clone https://github.com/jimoto-no-llm/rustdsh.git
cd rustdsh
./install.sh # build + install to ~/.local/bin/rdsh
./install.sh --as-dsh # also replace `dsh` command (original backed up as dsh-orig)
./install.sh --restore # undo the replacement
./install.sh --prefix=DIR # custom install directory (default: ~/.local/bin)Windows (PowerShell):
git clone https://github.com/jimoto-no-llm/rustdsh.git
cd rustdsh
.\install.ps1 # build + install to %LOCALAPPDATA%\rdsh\bin
.\install.ps1 -AsDsh # also replace `dsh` command
.\install.ps1 -Restore # undo the replacement
.\install.ps1 -Wsl # also install inside WSL via install.sh| OS | Script | Notes |
|---|---|---|
| Linux / macOS | ./install.sh |
Needs cargo or curl (guided via rustup if missing). |
| WSL | ./install.sh inside distro |
Auto-detects WSL. install.ps1 -Wsl installs in both environments. |
| Windows (native) | .\install.ps1 |
Needs Rust and MSVC build tools (winget install Rustlang.Rustup). |
Advanced users on macOS and Windows can let a package manager own the installed
rdsh binary. The manifests in packaging/ pin the exact
release archives and their SHA-256 values;
docs/PACKAGE-MANAGERS.md lists the install commands
and the update procedure.
macOS (Homebrew) — installs the Apple Silicon or Intel archive:
brew install --formula ./packaging/homebrew/rdsh.rbWindows (Scoop):
scoop install https://raw.githubusercontent.com/jimoto-no-llm/rustdsh/main/packaging/scoop/rdsh.jsonWindows (winget) — winget 1.6 or newer reads the three manifests directly;
submitting them to microsoft/winget-pkgs stays a manual step:
winget install --manifest .\packaging\wingetThese channels track one release at a time, so a new tag is not served until
python3 scripts/update-packaging-manifests.py --version vX.Y.Z refreshes them.
Run any standard dsh command unchanged:
rdsh tui # equivalent to: dsh --profile tui
rdsh --profile web --patch x.yml # launch with configuration overlay
rdsh --dry-run tui -- --resume id # print what would be executedWhen installed with ./install.sh --as-dsh, typing dsh automatically uses the fast rdsh launcher.
Native tools execute in Rust without starting Node.js:
rdsh tokens ./README.md # estimate token count (~4 chars = 1 tok, CJK = 1 tok each)
echo "..." | rdsh prune --max-tokens 4000 # prune context within a token budget
rdsh search TODO --dir . --max 100 # fast parallel text search
rdsh sessions --limit 20 --tokens # list sessions and unpacked token estimates
rdsh compact ./s.jsonl # compact session JSONL (source remains untouched)
rdsh doctor # check health of dsh, environment, and paths
rdsh doctor --json # read-only metadata for scripts; no DSH/Node launch
rdsh profiles / rdsh skills # list available profiles and skills
rdsh desktop status # detect the DeepSeek Harness Desktop app and profile
rdsh plugins status # essential plugins a profile is still missing
rdsh plugins install --profile web # attach them after an upgrade
rdsh bench --n 5 # benchmark startup speed between rdsh and dshOn Windows, compressed session histories are not opened until rdsh can reject
parent junctions safely; sessions --tokens may omit those histories and its
totals are inexact.
The essential plugin tier (the upstream tools absent from dsh-base plus the
bundled rdsh plugins) only lived in plugins/install.sh, and nothing runs that
script by itself: upgrading the binary leaves the profile manifest untouched,
so an install can miss every essential package without any signal. The same
catalog is compiled into the binary, so a release install can see and close the
gap without the checkout:
rdsh plugins status # read-only state per package, plus the fix
rdsh plugins status --profile web --json # schema 1 for scripts and dashboards
rdsh plugins install # attach what the profile is missing
rdsh plugins install --profile web # web/desktop defaults also add the starter set
rdsh plugins install --recommended=none # the essential tier only
rdsh plugins install --no-bundled # skip the bundled rdsh-* plugins (upstream tools only)
rdsh plugins install --plugins-dir <checkout> # or export RDSH_PLUGINS_DIR
rdsh plugins update [--check] # bring the release copy of the bundled plugins up to datePackages go through dsh plugin --profile <name> add <spec> (RDSH_DSH_BIN
overrides the CLI), exactly as the checkout installer does. Bundled plugins are
taken from a checkout when there is one. Without a checkout, rdsh plugins install fetches the release's rdsh-plugins.tar.gz (sha256-verified) into
$DSH_HOME/rdsh-plugins/current and attaches from there; it uses the tag of the
running rdsh (--latest takes the newest release). Once profiles use that copy,
rdsh keeps it on the latest release in the background (every 24 hours, set
RDSH_PLUGINS_UPDATE_INTERVAL_HOURS; off with RDSH_PLUGINS_SKIP_UPDATE=1):
only the contents of current/ are replaced, so no profile manifest is rewritten
and no plugin is added. A checkout you name (--plugins-dir, RDSH_PLUGINS_DIR)
is never fetched for or updated. rdsh plugins status shows the origin, version
and latest; rdsh doctor warns when the copy is old. See
plugins/recommended.md for the tiers and the ids.
External credentials are inventoried without showing their values. Nothing is copied until you select a source and credential. OAuth copies use DSH's existing version-1 store at $DSH_HOME/.credentials.yaml; API keys use its named refs. The selection policy contains only identifiers at $DSH_HOME/rdsh-auth-sharing.json.
rdsh auth # sources, destinations, selection and undo steps
rdsh auth --json # secret-free machine-readable inventory
rdsh --dry-run auth --select codex:openai-codex --import # preview; writes no files
rdsh auth --select codex:openai-codex --import # share only Codex OAuth
rdsh auth --select opencode:openai-codex --import # OpenCode openai maps to openai-codex
rdsh auth --select codex:OPENAI_API_KEY --import # separate opt-in for Codex's API key
rdsh auth --select env:DEEPSEEK_API_KEY --import # explicitly persist this environment key
rdsh auth --unselect codex:openai-codex # stop future copies; retain the existing copy
rdsh setup # sync selected credentials, then guide setup
rdsh setup --web # inventory, selection commands and explicit key saveFor a one-time import, use rdsh auth --import --provider openai-codex --source codex or rdsh auth --import --ref OPENAI_API_KEY --source codex. These filters do not save or extend future-copy consent; --select/--unselect are separate persistent policy changes.
Repeat --select/--unselect for individual credentials. Selecting enables future imports from that CLI/provider, including boot, dump-config, plugin, raw dsh delegation and setup. --import immediately applies the selection. Even a newer grant in another, unselected CLI cannot be chosen. Newer DSH grants and existing API-key refs/records remain in place. Other entries, comments and line endings are preserved. Unix credential and policy files use mode 0600.
The inventory checks Codex's ~/.codex/auth.json and OpenCode's $XDG_DATA_HOME/opencode/auth.json (or its platform default data directory), plus the legacy ~/.config/opencode/auth.json fallback. Selectors for OpenCode use DSH provider IDs; opencode:openai-codex is the selector for its openai login. Environment-key persistence supports DEEPSEEK_API_KEY, OPENAI_API_KEY and ANTHROPIC_API_KEY. These are format/presence checks, not live authentication tests.
An environment variable already supplied to rdsh is inherited by DSH and its child processes without rdsh writing a file. The JSON inventory marks this route persistent=false, lists its destination and explains how to stop/revoke it. Using the reference does not opt in to storing it. setup --yes no longer saves every environment key; choose each one with auth --select env:NAME --import. Interactive setup and the web form still allow an explicit, individual key save.
Scope and undo: saved entries are available to every DSH profile using the same DSH_HOME. Unselect stops future rdsh imports; it does not delete a saved copy or invalidate a running process. Stop DSH and remove the named record/ref from the credential store to stop using a saved copy. To invalidate the credential itself, revoke the OAuth grant or rotate the API key at its provider. That may also disconnect the source CLI. This controls rdsh copying, not DSH's own refreshes, inherited environment access or an OS sandbox.
Migration: existing DSH credentials are retained. A missing policy selects nothing, including for legacy auth --import. RDSH_AUTH_AUTOSYNC=1 does not restore the old import-all behavior. Inventory and preview first, then choose the sources you need. RDSH_AUTH_AUTOSYNC=0 disables automatic imports while keeping the selection; an explicit auth --import still works. Invalid/unreadable policies fail closed instead of falling back to legacy sync.
Consent changes and rdsh credential writes share a lock, so a completed unselect cannot be bypassed by a queued rdsh import using an earlier policy. After a crashed writer, check that no rdsh auth/setup writer is active before removing $DSH_HOME/.rdsh-auth-sharing.lock; the launcher skips copying while it is locked.
setup --web issues a new local access key at startup in its #key=... URL. The tab retains that key; status reads, key saves and closing require it. Keep the startup URL private. The page shows copy destinations and separate unselect, saved-copy removal and provider revocation steps before a key save.
Server-type features and the privacy-sensitive switches (discord,
telemetry) stay off until enabled, so a plain install remains a fast,
telemetry-free dsh:
rdsh settings set extras.enable serve,search-web
rdsh settings get extras.enable| Extra | Command | Notes |
|---|---|---|
serve |
rdsh serve (default :38080) |
Local status page, localhost only, per-launch key. |
search-web |
rdsh search-web "query" --limit 5 |
SearXNG by default; --provider ollama uses OLLAMA_API_KEY; --auto-start starts the bundled local SearXNG compose service. The local rustxng sidecar installed by rdsh follows the latest RustXNG release in the background (sha256-verified, one previous version kept; rdsh rustxng update [--check], off with RUSTXNG_SKIP_UPDATE=1). See Web search. |
To connect an OpenAI-compatible endpoint that dsh does not ship (HAI, Command Code, Sarashina, a home llama.cpp / vLLM / LM Studio / Ollama server), add it as a profile route:
rdsh provider add hai --model deepseek-v4-flash # key from HAI_API_KEY or --key-stdin
rdsh provider add commandcode --model deepseek/deepseek-v4-flash # key from COMMANDCODE_API_KEY
rdsh provider add sarashina # key from SARASHINA_API_KEY; mini and nano built in
rdsh provider add local-openai --base-url http://host:8080/v1 --discover --no-key
rdsh provider list # presets, per-profile route and key statusDetails: docs/PROVIDERS.md.
DeepSeek Harness answers "which models can this provider serve?" from the
catalog bundled in its @earendil-works/pi-ai dependency, which is generated
when that package is published. Anything a provider changes afterwards is
absent from the picker until that dependency is upgraded — and a profile that
lists models: explicitly replaces the bundled catalog for the route anyway.
rdsh models reads the provider's own catalog (the local Codex CLI, or Kimi
Code's /v1/models endpoint with the profile's API key) and folds it into the
profile:
rdsh models # read-only: missing ids and stale names
rdsh models --provider kimi-coding # one provider only
rdsh models sync # add missing entries, refresh stale names
rdsh models sync --profile web --dry-run # preview one profile
rdsh models efforts # fill Ollama reasoning levels the profile lacks
rdsh models efforts --profile web --dry-run # preview that oneNothing is deleted, an existing entry keeps every other byte (a name the provider's current one already contains is left as written), and a profile the command does not recognize is refused instead of rewritten. The harness picks the changes up on the next config reload or restart.
Ollama also publishes per-model reasoning levels on POST /api/show, and a
model added before that call could not answer has no reasoningEfforts.
rdsh models efforts asks the route once per listed model and fills only the
models that lack them: a hand-picked list is kept as written, a toggle-only or
non-reasoning model is reported instead of guessed, and a request that fails
is reported as unknown. Re-running it is safe.
Delegated agent tools keep normal file access by default: the model reads and
writes the project like any other tool. --share-file isolates rdsh_inspect
only. On Linux (with bubblewrap and prlimit) that tool sees just the files you
explicitly share:
rdsh --share-file README.md --share-file src/main.rs --profile tuiFrom rdsh_inspect, only the shared files are mounted read-only, host files stay
out of reach and the sandbox has no network. Turn the same boundary on for every
run with rdsh features on agent_tool_sandbox (off again with
rdsh features off agent_tool_sandbox, or force it with RDSH_SECURITY=1).
Other DSH tools (bash, read, write, run_code, ...) are not isolated and
follow upstream DSH permissions and approvals. Startup prints
[rdsh security] rdsh_inspect is isolated; other DSH tools use upstream permissions.
Integrates with DSH hooks.json to inspect and block dangerous commands before execution:
echo "$input" | rdsh guard --deny "rm -rf /*" --deny "*token*"For an opt-in structured check of supported file tools, pass a policy file.
This example permits Read only under one existing project directory:
{
"schema": 1,
"rules": [
{ "id": "project-read", "tool": "Read", "access": "read", "roots": ["/absolute/project/path"] }
]
}echo "$hook_json" | rdsh guard --policy-file ./hook-policy.json --jsonThe structured classifier supports the Read, Write, and Edit file-path
schemas. It canonicalizes the working directory and target, checks the selected
tool and read/write scope against existing policy roots, and reports
allow, deny, or unknown with a non-sensitive reason. In JSON mode an
allow is classification only and omits decision; the host still owns
permission and approval. Unknown tools, shell commands, malformed input, and
unsupported tool arguments fail closed. Shell parsing and network destinations
are not implemented. Path checks are advisory and can race with later filesystem
changes; this hook is not an OS sandbox. Use the actual execution sandbox for
enforcement.
{
"hooks": {
"PreToolUse": [
{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "rdsh guard --deny \"rm -rf /*\"" }] }
]
}
}rdsh context inject assembles this turn's context — goal, constraints,
decisions, working set, git state, retrieved code, and curated memory — and
emits it in the DSH UserPromptSubmit hook contract, so the model sees it
without any copy-paste:
rdsh features on context_engine # the engine is opt-in
rdsh context hook install # merges $DSH_HOME/hooks.json (idempotent)
rdsh context hook status --jsonThe hook is fail-open: it never blocks a prompt and always exits 0. Only an
unreadable settings document or an unparseable payload inject nothing at all; a
corrupt index or a missed deadline drops just what depends on them — the graph
or the code search — and still injects goal, constraints, and memory. Injection
has its own
budget (context.inject_budget, default 1200 tokens) and deadline
(context.inject_deadline_ms, default 1200 ms); once the deadline passes the
code search is skipped and only memory, goal, and constraints go out.
Memory holds curated items, not a transcript dump:
rdsh context remember "Keep the API compatible" --kind constraint
rdsh context distill --session ~/.dsh/sessions/<project>/<session>/session.v4.jsonl.zstd --apply
rdsh context memory --json # active and superseded entries
rdsh context forget mem_ab12cd34ef56distill reads user turns only (zstd session logs included) and extracts
decisions, constraints, and retractions with deterministic markers, superseding
an older overlapping entry instead of guessing. rdsh context build --require-stable exits 3 unless the snapshot is provably stable: a file or git
state that changed during assembly counts, and so does a git state it cannot
read, so a stale or unknown snapshot is never reported as fresh.
rdsh deps build # incremental index under $DSH_HOME/rdsh-index
rdsh deps query engine_score # where a symbol is defined and referenced
rdsh deps impact src/context.rs # direct/transitive dependents + affected testsThe extractor covers Rust, JavaScript/TypeScript, Python, and Go and records
imports, definitions, and static call sites per file. Unchanged files (same size
and mtime) are reused, so repeated runs stay fast. It is a static approximation:
dynamic dispatch, indirect calls, macros, and generated code remain explicitly
unknown and are reported as unresolved counts rather than guessed, and a
missing index means "no information", never "no dependencies".
When the index exists, rdsh context build and rdsh context inject also pull
in the graph neighbours of the files their search matched, so a retrieved
excerpt arrives with the files it actually depends on.
Native execution overhead is ~1 ms per invocation.
Default profile: RDSH_DEFAULT_PROFILE, then general.default_profile in rdsh settings, then local tui, else a guided error. Set the saved default with rdsh settings set general.default_profile web; an explicit --profile <name> keeps its precedence.
rdsh aims to remain useful on modest machines: older x86-64 CPUs, older Linux distributions, and hosts without Node.js installed.
- Faster Node startup. When rdsh launches dsh, it sets
NODE_COMPILE_CACHEto~/.cache/rdsh-node-compile-cache, letting Node reuse compiled code across launches (Node 22.1 or newer; older versions ignore it). An existingNODE_COMPILE_CACHEvalue is preserved. SetRDSH_NODE_COMPILE_CACHE=0, or use--passthrough/RDSH_PASSTHROUGH=1, to opt out. SetRDSH_NODE_COMPILE_CACHE=<dir>to keep the cache at a fixed location instead of the default, for example on hosts where$HOMEis volatile. - Broad CPU support. Prebuilt x86-64 binaries do not require AVX or BMI; the static musl build also runs on systems with older glibc.
- Session token estimates.
sessions --tokensreads a decompressed size from the zstd frame header when available. Most streaming frames need thezstd -dcfallback. Results are cached under~/.cache/rdsh/sessions-tokens.json($XDG_CACHE_HOMEtakes precedence); setRDSH_TOKENS_CACHE=0to disable the cache. A?marks an estimate that could not be read, for example when the zstd CLI is unavailable. - Bounded parallel work. Search and session scans use at most eight worker threads. The zstd CLI fallback uses 8 to 32 parallel processes.
- Native commands without Node. Commands such as
tokens,search, andsessionskeep working without Node. To delegate conversations, install@deepseek-ai/dshor setDSH_ORIG_BIN(orRDSH_ORIG_BIN). - Low-priority updates.
sync-dsh.shupdates dsh and rdsh, verifies archive bytes against that registry, and rolls back a failed update candidate. By default it uses the stable release selected by the reviewed repository digest registry; setRDSH_SYNC_FROM_SOURCE=1to build frommainundernice -n 19andionice -c3when available. The systemd unit runs at low priority; adjust itsExecStartto your checkout.
A lightweight status and token estimation page running on localhost (default :38080, does not conflict with DSH :3080):
rdsh settings set extras.enable serve # enable the server feature
rdsh serve # launch (bound to localhost, protected with a one-time token)rdsh-owned CLI diagnostics and the native local page support English, Simplified
Chinese, and Japanese. Choose one run with --language, or persist it in
rdsh.json; the default auto reads the first nonblank locale environment variable,
falling back to English when it is absent or unsupported.
rdsh --language ja settings show
rdsh settings set general.language zh-CNPrecedence is --language, RDSH_LANG, general.language, then LC_ALL,
LC_MESSAGES, and LANG. An explicitly invalid general.language stops the
command without rewriting the settings file. Delegated dsh arguments, model
output, JSON fields, files, and protocol identifiers are not translated. Interactive setup prompts and settings/policy validation use the selected
language too. Authentication decisions and skipped-provider notes localize only
the CLI presentation; their existing JSON strings remain unchanged, including
malformed or oversized guard-input reasons. Native search continues to refuse
unsupported non-Unix platforms before accessing the requested directory.
worker-scope validate and worker-scope policy also localize their help and CLI diagnostics. These pure commands and their help ignore unrelated corrupt settings; ordinary commands and root help still report the settings error. Canonical JSON, policy codes and supplied paths stay unchanged.
The opt-in agent tool sandbox supports Linux x86_64 with bubblewrap, prlimit,
and unprivileged user namespaces. Its audited DSH/tool-runtime pairs are
0.2.0-rc.2, 0.2.1-alpha.1, 0.2.1-alpha.3, 0.2.1-rc.3,
0.2.1-rc.4, and 0.2.2-alpha.2, with matching versions in
each pair. It verifies package metadata, runtime bytes and the loaded module,
then limits inspection to explicitly shared files. Unknown, mixed, modified or
unexpectedly resolved runtimes stop before delegation. macOS and Windows
refuse protected delegation; ordinary delegation keeps the original tools.
This matrix applies to the Rust launcher. ACP, project-managed updates and
plugins have separate compatibility contracts.
Project-pinned dashboard releases
retain their separate supported tuple.
Optional Node.js dashboard for project metrics, human-in-the-loop Q&A, and mobile access (requires Node.js 22+):
rdsh-dashboard project --project <directory>On native Windows, the dashboard runs in the system tray and can be opened or stopped from the taskbar (--no-tray keeps it in the terminal). See dashboard/README.md. External agent CLIs (cursor-agent, devin) can be run as supervised jobs: see docs/AGENT-RUNNERS.md.
DeepSeek Harness Desktop is an Electron shell around the complete Web
application. It shares $DSH_HOME with the CLI but owns a reserved profile
($DSH_HOME/profiles/desktop) and its own bundled command runtime, so the npm
dsh CLI cannot manage its plugins. rdsh desktop detects all of that and
forwards plugin attachment to the app's own command — rdsh never boots or
rewrites the profile:
rdsh desktop status # app, command runtime, profile, plugin state (read-only)
rdsh desktop install --plugins-dir . # rdsh-settings + starter plugins + default third-party (sound, gitview, intelligent-ui)
rdsh desktop install --plugins-dir . --compute # + the resident compute bridge
rdsh desktop install --plugins-dir . --no-sound --no-gitview --no-intelligent-ui # skip third-party
rdsh desktop verify # exit nonzero when the profile has no rdsh pluginThe same is available through the profile installer and the installers:
PROFILE=desktop ./plugins/install.sh # essential + default recommended, forwarded correctly
./install.sh --desktop # attach the rdsh plugins during installationQuit the app before attaching plugins, reopen it afterwards. The app's own Plugins page installs the same packages without any command. The Electron runtime itself is never replaced: in-app delegation stays limited to the opt-in, fail-open compute bridge. See DESKTOP-INTEGRATION.md.
Two optional plugins extend the existing Desktop/Web runtime:
- File organization: select a folder, preview extension-based categories, copy after confirmation, and archive the copies to undo. Originals stay in place. Execution currently requires Linux; Windows and macOS support preview only. No AI connection is needed.
- Subagent route: pick the provider,
model and reasoning effort every new child agent starts with, from
Settings → Subagents. Opt-in with
--recommended=subagent-route(SUBAGENT_ROUTE=1). - Bounded exploration subagents:
fresh context, bounded concurrency and output, and active duplicate suppression
through the native DSH
spawnprovider (0.2.0-rc.2).
The subagents plugin is part of the web/desktop starter set (see
plugins/recommended.md);
file organization and the subagent route stay opt-in. Use the app's Plugins page to add the
corresponding directory, or select them with
./plugins/install.sh --recommended=easy-work,subagents (EASY_WORK=1 /
SUBAGENTS=1 still work).
See the acceptance evidence.
Desktop SDK and upstream preparation provide a pinned official SDK, an isolated fork home, bundled Rust launcher, and a dedicated rustdsh update channel. Source preparation and SDK transport are tested; signed Desktop installers and update acceptance still require platform builds.
Smart-DSH (a web-profile plugin bundle) works smoothly alongside rdsh:
rdsh doctor # check dsh version and Smart-DSH bundles
rdsh plugin --profile web add /path/to/bundle # add plugins
rdsh --profile web # boot web with plugins enabledPorts never collide (DSH Web: 3080, rdsh serve: 38080).
Ports never collide (dsh web GUI :3080, rdsh serve :38080). With
install.sh --as-dsh, point Smart-DSH helper scripts at dsh-orig or
export DSH_PACKAGE_DIR.
For the read-only workflow member board in DSH's conversation GUI, use the verified source-patch preparation tool with an isolated compatible source checkout. It includes the 18-file board/UI projection patch, compatibility diagnostics and fixture tests; building and adopting the patched DSH are separate steps.
For bounded MCP resource artifacts and explicit resource-link reads, use the verified source-patch preparation tool with an isolated checkout at its pinned DSH revision. Resource links are never fetched automatically, binary payloads stay out of model text, and building or adopting the patched DSH are separate steps.
rdsh settings set extras.enable serve # replaces the enabled-extra list
rdsh serve
# open the URL containing #key=... printed by rdsh (localhost only)| API | Purpose |
|---|---|
GET /api/version |
version (requires key) |
GET /api/doctor |
health check |
POST /api/tokens |
token estimate for {"text"} |
POST /api/prune |
prune {"text","max_tokens"} to budget |
GET /api/bench?n=3 |
startup measurement |
GET /api/sessions?limit=20 |
recent sessions |
GET /api/skills, /api/profiles |
name lists |
All APIs require the per-launch key in the X-RDSH-Token header (the
browser UI reads it from its URL). No CDN is used; the page works offline.
rdsh serve is the quick local status page. For project metrics, human
Q&A, and phone access, use the optional Node.js dashboard
(needs Node.js 22+): rdsh-dashboard project --project <directory> or
rdsh-dashboard harness for the original Harness Web UI. On native Windows
the launcher can live in the tray (right-click Open / Exit,
double-click opens; --no-tray stays in the terminal).
Add --include-project <directory> to a project launch to show read-only
active, waiting, and needs-attention counts for only the projects explicitly
listed at startup. Details stay in each project's dashboard; unreadable
projects show their last successful observation time and an unknown state.
The original Harness update banner appears right after an update is recorded, every two hours from its update time, and on every full page reload. Dismiss / X or a successful updater check closes the current occurrence; the two-hour schedule continues. Unchanged release checks do not record a new update. Switching projects keeps it closed until the next slot, and close events reach other GUI ports of the same OS user. Activating new code needs one normal GUI restart/reload; see browser verification.
rdsh bundles only Smart-DSH's phone-width layout, as
plugins/rdsh-mobile-ui (MIT, adapted from
Smart-DSH): at 767px and below the chat and composer use the full width and the
logo opens the session list in one tap. Smart-DSH's notifications, Esc-to-stop,
task hub and shared-HMR workaround stay upstream — install the upstream bundle
when you want those.
Process-level measurements on Linux x86_64. Every row names the exact command it
measures, and none of them describe an agent session: when rdsh boots a profile it
execs the same upstream Node.js dsh, so conversation startup, interactive
latency and session memory are those of upstream.
Only the --version rows compare rdsh with upstream dsh. The hook, tokens
and search rows compare against an equivalent Node.js implementation of the
same work; upstream dsh exposes no tokens/search subcommand, so no
upstream ratio is claimed for them. They were measured on one Linux x86_64 host
by scripts/benchmark-node-vs-rust.py.
| What is measured | rdsh | Baseline | Factor |
|---|---|---|---|
rdsh --version process launch |
~0.90 ms | ~88 ms, upstream dsh --version |
~98x faster |
rdsh --version peak RSS |
~2.9 MB | ~66 MB, upstream dsh --version |
~1/23 memory |
PreToolUse hook rdsh guard, per tool call (launch included) |
~2.0 ms | ~80–100 ms, equivalent Node.js judge | ~40–50x faster |
| PreToolUse hook over 200 tool calls (cumulative, 10% denied) | ~0.4–0.6 s | ~16–24 s, equivalent Node.js judge | ~42x faster |
| PreToolUse hook peak RSS | ~6.0 MB | ~49 MB, equivalent Node.js judge | ~1/8 memory |
rdsh tokens (9.6 MB ASCII text) |
~8 ms | ~175–195 ms, Node.js reference | ~22x faster |
rdsh search (300 files, 600k lines) |
~10–25 ms | ~125–230 ms, Node.js reference | ~9–12x faster |
sessions --tokens (20 sessions) |
~0.41 s | ~1.65 s, previous rdsh build (historical) | ~4.0x faster |
| Distribution size | one ~1.8–2.3 MB binary (per platform) | ~508 MB Node tree | ultra compact |
The --version, sessions and size rows are the historical headline numbers
recorded in docs/BENCHMARKS.md; their absolute values are
host-dependent. The hook, tokens and search numbers are one Linux x86_64
host at n=15 with process launch included; regenerate them with:
cargo build --release
python3 scripts/benchmark-node-vs-rust.py --bin ./target/release/rdsh \
--mode all --n 15 --calls 200 --output /tmp/rdsh-node-vs-rust.jsonFor startup, run rdsh bench --n 5. See
docs/BENCHMARKS.md for every test setup and raw sample.
- Upstream Fidelity: Never reimplements conversation loops or agent logic; delegates directly to upstream
dsh. - Non-Destructive: Read operations (tokens, search, session listing, compacting) never modify source files.
- Explicit Auth: Credentials are never sent externally or synced automatically; only user-approved items are imported.
- Tool Sandboxing (opt-in): On Linux,
--share-filemounts only the files you share, read-only and without network, for therdsh_inspecttool. Other DSH tools follow upstream permissions and approvals. - Privacy Defaults: Session telemetry, Discord Rich Presence and update probing stay off unless you opt in; every delegated
dshreceivesDSH_TELEMETRY_DISABLED=1. See docs/PRIVACY.md. - Temp-Dir Guard: every delegated
dshgets its ownTMPDIR(<temp>/rdsh-tmp-<pid>-<random>), so a crashed session can only orphan its own workspace snapshot. Before each delegation rdsh reclaims leftovers conservatively: only this user's real directories nameddsh-workspace-changes-*/rdsh-tmp-*whose owner process is gone, or quiet for 24 hours with nothing held open.rdsh doctorreports reclaimable orphans and untracked paths over 100 MB, read-only. Opt out withRDSH_NO_TMP_GUARD=1. Orphan reclaim and the doctor orphan warning are Linux/macOS only (macOS has no/proc, so only the dead-owner and 24-hour quiet rules apply); on Windows only the per-runTMPDIRis removed at exit.
-
Q. Do I need the original
dshinstalled?
Yes, for conversations and agent execution. Standalone commands like token calculation, file search, and health checks (rdsh doctor) work without it. -
Q. Can I replace my existing
dshcommand?
Yes. Install with./install.sh --as-dsh(or.\install.ps1 -AsDshon Windows) to shadowdshtransparently. Revert anytime with--restore. -
Q. What if there is a port collision?
Upstream DSH Web uses:3080whilerdsh servedefaults to:38080. To pick an arbitrary free port, specify--port 0. -
Q. Will my existing scripts break?
No. Any argument not belonging to an rdsh-specific command is forwarded verbatim to upstreamdsh. -
Q. Does a profile-less
rdsh bootfail? Setgeneral.default_profileorRDSH_DEFAULT_PROFILE, or pass--profile <name>. -
Q. Why do
dsh-workspace-changes-*directories pile up in my temp dir? Upstream's snapshot plugin never disposes them when a session dies — a documented upstream limitation. rdsh scopes every delegated run to its own temp dir and reclaims dead sessions' leftovers on the next delegated start (RDSH_NO_TMP_GUARD=1opts out).rdsh doctorshows what is reclaimable.
| Document | Description |
|---|---|
| docs/SETUP.md | Step-by-step setup runbook to hand to an AI agent (install, one model route, plugins) |
| docs/USER-FLOW.md | End-to-end installation, usage, and recovery flow |
| docs/ARCHITECTURE.md | Architecture design and delegation model |
| docs/BENCHMARKS.md | Benchmark methodology and reproduction steps |
| docs/RDSH-SETTINGS.md | Settings UI and CLI options |
| docs/PRIVACY.md | What stays off by default and how to opt in |
| docs/PROVIDERS.md | rdsh provider: HAI, Command Code, Sarashina and home LLM server routes |
| docs/DESKTOP-INTEGRATION.md | DeepSeek Harness Desktop (Electron) integration |
| docs/FEDORA.md | Fedora / RHEL packages, optional tools, and the Linux desktop reality |
| docs/PACKAGE-MANAGERS.md | Homebrew, Scoop and winget manifests, and how to update them |
| docs/ROADMAP.md | Project roadmap and planned capabilities |
| docs/RELEASING.md | Release procedures |
| docs/SERIAL-PROXY.md | Concurrency-limiting proxy for single-slot providers |
| CHANGELOG.md | Changes per version |
- Contributions: See CONTRIBUTING.md.
- Community chat: Discord - quick questions and day-to-day chat (Japanese or English).
- Rust development setup: Rust development guide.
- Issues & Ideas: Issue tracker (Japanese or English).
- Security: Please report vulnerabilities privately according to SECURITY.md.
- Support: SUPPORT.md / Code of Conduct: CODE_OF_CONDUCT.md.
DeepSeek Harness provides the upstream runtime; without it, rustdsh would not exist. Thanks to the upstream developers and everyone contributing code, reviews, tests, and ideas:
- Icon by PENTACoXIAN
- Security audit (specialist), reports & review: GrEarl (@Iamwonderingif), PENTACoXIAN
- Contributions & validation: StudioYebisu, RNA4219, eightman999, cyrne1-7208
- AI provision: StudioYebisu, Eureka (@uReKA337307 / Eureka-COM)
- Ideas & feedback: @remydre8
- Mobile/PWA/Web Push integration: dsh-mobile-maxxing by Ryu (kuraneko1) (
@_ryu15_); the upstream v1.0.0 release is bundled as an essential Web/desktop plugin (see third-party notices). - Default Web UI plugins (used with upstream permission, MIT): dsh-sound-notifications by cwd514 ((c) 2026) — synthesized tones and desktop notifications; dsh-gitview by yugapor ((c) 2026) — Git panel with diffs, history, and CI status. Both are fetched from upstream GitHub at install time (see
plugins/recommended.md).
Third-party DSH plugins that rdsh uses, adapts or recommends (MIT, by their authors):
- Smart-DSH by hikarioyama — the
phone-width layout bundled as
rdsh-mobile-ui - dsh-mobile-maxxing by Ryu (kuraneko1) (
@_ryu15_) — PWA, mobile/tablet UX, in-app and Web Push notifications; v1.0.0 is bundled as an essential plugin. Its optionaldsh-md-renderinganddsh-locale-japackages are included in the source tree but are not automatically registered. - dsh-sound-notifications by
cwd514 — opt-in effect sounds and desktop notifications (
SOUND=1) - dsh-gitview by yugapor — optional sidebar Git panel
- dsh-intelligent-ui by cwd514
(MIT, (c) 2026 cwd514) — visual answers in the DSH Web chat via the
declarative
render_uitool; vendored asplugins/dsh-intelligent-uiand on by default for web/desktop (INTELLIGENT_UI=0or--no-intelligent-uiskips it)
MIT — see LICENSE. Upstream DeepSeek Harness and its dependencies retain their respective licenses; the pinned versions and the trademark notice are in third-party licenses.
node dashboard/cli.mjs --language ja agents list selects the same display language as the dashboard. External-agent help and CLI diagnostics support en, zh-CN, and ja; job states, error codes, JSON keys and agent output remain canonical. Use agents submit --prompt-file for UTF-8 instructions, including Japanese filenames and text. See agent runners for commands and permission limits. Submitting a real job can incur the external provider’s charges; the locale tests use local fake executables only.
budget-admission apply|validate|public --input-file <request-json> is also a settings-independent pure JSON command. Native and dashboard entrypoints localize owned help/errors in all three languages, preserve canonical budget codes and output, and never call a provider or write the budget book. See budget control.
question-contracts apply|validate|public, answer-applications apply|validate|public|schema and instruction-queue validate|context|submit|resolve|control accept --input-file <request-json> without reading unrelated settings. Native and dashboard help and owned diagnostics support all three languages; engine messages, status codes and canonical JSON retain upstream values. The optional answer guard also localizes its notice summary and configuration error without changing the model-facing reminder.