soolaugust / deepseek-harness-cli

已收录

Interactive terminal agent (fork of DeepSeek Harness): Claude Code-style REPL — full-screen UI, markdown rendering, session stats, permission cycling, custom OpenAI-compatible providers.

master模型工具会话 查看源代码

安装

pnpm dsh cli

此命令根据 GitHub 仓库地址生成。运行前请检查上游 README 与源代码;需要可复现安装时,请固定 release 或 commit。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 6b4b427同步于 2026年8月17日

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+Tab cycles read-only → workspace-write → danger-full-access, with danger-full-access shown as "bypass permissions"
  • Custom provider: point to any OpenAI-compatible endpoint (e.g. mify), with both model routing and web_search configurable
  • Session resume: reopening dsh cli continues the last session, switch with /session
  • Hot-reload development: pnpm dsh:dev (node --watch) auto-restarts on source changes

Demo

dsh cli interactive terminal

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

ActionEffect
Type text + EnterSend to the agent
/ History navigation (cross-session persistent)
Shift+TabCycle permission preset
Ctrl+OExpand/collapse tool group
Ctrl+CCancel current turn while running; quit at the prompt
/exit /help /clear /session /model /permissionSlash 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

MIT

项目文件与信号

以下项目是目录快照中检测到的公开仓库信号。

插件清单已检测
测试已检测
贡献指南已检测
文档已检测
示例已检测

仓库信息

开发语言
TypeScript
许可证
MIT
最新发布
dsh-v0.1.0
最后更新
2026年8月17日 07:15

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。