deepseek-harness-cli
Discovered★ 4Interactive terminal agent (fork of DeepSeek Harness): Claude Code-style REPL — full-screen UI, markdown rendering, session stats, permission cycling, custom OpenAI-compatible providers.
dsh cli — interactive terminal agent
English | 中文
dsh cli is an interactive terminal agent, forked from DeepSeek Harness with a CLI focus: a Claude Code-style coding experience in your terminal — full-screen UI, streaming output, tool cards, session history, and permission controls, with no browser needed.
Under the hood it is DeepSeek Harness's plugin architecture (everything is a plugin), but this repository only cares about and polishes the single dsh cli interaction path.
Features
- Claude Code-style interaction: full-screen alternate screen, input bar pinned to the bottom, up/down arrow history navigation (including cross-session persistent history)
- Markdown terminal rendering: bold, italic, code, lists, and headings rendered with terminal styles
- Tool card folding: adjacent tool calls merge into one line, expand with
Ctrl+O - Session stats bar: turns/steps, LLM time, first-token latency, throughput, cache hit rate, input/output tokens
- Permission badge:
Shift+Tabcyclesread-only → workspace-write → danger-full-access, withdanger-full-accessshown as "bypass permissions" - Custom provider: point to any OpenAI-compatible endpoint (e.g. mify), with both model routing and
web_searchconfigurable - Session resume: reopening
dsh clicontinues the last session, switch with/session - Hot-reload development:
pnpm dsh:dev(node --watch) auto-restarts on source changes
Demo

Quick start
Requires Node.js ≥ 22.
# from source
git clone https://github.com/soolaugust/deepseek-harness-cli.git
cd deepseek-harness-cli
pnpm install
pnpm run build
pnpm dsh cli
From npm:
npx @deepseek-ai/dsh cli
The first launch creates/resumes a session; type text and press Enter to send, and model output renders streaming above the input bar.
Usage
| Action | Effect |
| --- | --- |
| Type text + Enter | Send to the agent |
| ↑ / ↓ | History navigation (cross-session persistent) |
| Shift+Tab | Cycle permission preset |
| Ctrl+O | Expand/collapse tool group |
| Ctrl+C | Cancel current turn while running; quit at the prompt |
| /exit /help /clear /session /model /permission | Slash commands |
Full instructions in the CLI guide.
Configuring a custom provider
Point ~/.dsh/settings.yaml at any OpenAI-compatible endpoint (e.g. mify, OpenRouter); both model routing and web_search are configurable. See CLI guide · Using a custom model provider.
Development
pnpm dsh:dev # auto-restart on source changes (hot-reload development)
pnpm run test # unit tests
pnpm run typecheck # type checks
Inherited from DeepSeek Harness
This repository is a fork of DeepSeek Harness focused on its dsh cli interactive terminal capability. The full multi-profile architecture, Web UI, SDK, and more remain in the upstream repository.
License
Comments
Loading…
Similar plugins
by NinjaSln-labs
DeepSeek Harness 插件:Cursor-as-subagent 提供方——一次本地 @cursor/sdk one-shot 运行、摘要优先结果、可无人值守的 Profile Bundle
★ 0
↓ 353/wk
MIT
TypeScript
Sep 5, 2026
dsh plugin --profile web add dsh-subagent-cursorby dsh-tui
Claude Code-style terminal UI for DeepSeek Harness agents, as an out-of-tree dsh plugin bundle
★ 31
NOASSERTION
TypeScript
Aug 14, 2026
dsh plugin --profile web add @dsh-tui/dsh-tuiby idkidknow
Per-session Node REPL terminal in the DSH web UI: a session-local floating terminal (ghostty-web) bridged over WebSocket to an in-process node:repl that has the live agent Cordis Context (agent.ctx) i
★ 0
TypeScript
Aug 16, 2026
dsh plugin --profile web add dsh-node-replby dongsheng123132
Open task handoff protocol for DeepSeek Harness, WorkBuddy, Claude Code and Codex — verified state, not chat logs
★ 10
MIT
JavaScript
Aug 26, 2026
dsh plugin --profile web add task-passportby huiliyi37
官方 DeepSeek Harness 的交互式终端 UI 插件:自研 ANSI 极简交互渲染、流式 Markdown/工具卡、16+ 主题、slash 命令与选择器、输入历史与本地偏好持久化、LSP 诊断、memory记忆,很丝滑的开发体验。
★ 280
↓ 891/wk
Apache-2.0
TypeScript
Sep 15, 2026
dsh plugin --profile web add @huiliyi37/dsh-tianshu-tuiFull-screen terminal TUI for DeepSeek Harness with Web-GUI parity, live streaming, agent presets, and DeepSeek blue styling.
★ 0
↓ 122/wk
dsh plugin --profile web add dsh-terminal