Skip to content

UNLINEARITY/dsh-code

152Last commit Aug 16, 2026

dsh-code DSH plugin

DSH-Code is a terminal-based coding interface built on top of DeepSeek Harness. It reuses the same Agent, Session, Tool, Command, Skill, Permission, Sandbox, and plugin services as the Harness Web UI, but adds a TUI optimized for coding workflows. It supports agent presets, slash commands, session recovery, and persistent history.

How to install the dsh-code DSH plugin

dsh plugin --profile cli add dsh-code@0.7.0

Copying does not run this command. Review the repository and version before installing the dsh-code DSH plugin.

dsh-code DSH plugin data source

dsh-code DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-code DSH plugin can do

  • Session-level Agent Presets: standard, code, minimal, cordis, and user-defined presets combining tools, prompts, skills, and plan mode.
  • Slash commands: /new, /resume, /mode, /model, /plugin, /permission, /help, with live discovery from the shared Harness registry.
  • Persistent session recording and recovery via /resume, --continue, and explicit session IDs.
  • Terminal rendering with bounded streaming, thinking folding, scrollback, Ctrl+O history viewer, and CJK-safe width handling.
  • Approval and interaction: one-shot tool approval bar, structured ask_user_question, plan review menus, and turn steering.
  • Model switching from the live LLM registry, with animated DeepSeek model transitions (Wave, Aurora, Pulse).
  • Global input history, subagent conversation inspection, and @-referencing of workspace files or session snapshots.
  • Markdown export, context occupancy, token usage, TTFT, and latency metrics.

Where the dsh-code DSH plugin fits

  • Developing and debugging code directly in the terminal with AI assistance from DeepSeek models.
  • Managing multiple coding sessions with different agent configurations (e.g., minimal vs. full code mode).
  • Reviewing and resuming previous coding sessions without losing context or state.
  • Exploring and testing DSH plugins, skills, and commands through the /plugin diagnostic interface.
  • Building custom agent presets for specific coding workflows (e.g., plan-mode, subagent delegation).

Who the dsh-code DSH plugin is for

  • Developers who prefer terminal-based AI coding tools over web UIs.
  • Users of DeepSeek Harness who want a dedicated coding interface with TUI interactions.
  • Power users needing session persistence, agent presets, and fine-grained control over AI-assisted coding.

dsh-code DSH plugin limitations

  • Requires Node ^22.19 || >=24 and a preview version of the dsh CLI.
  • Requires a DEEPSEEK_API_KEY environment variable.
  • DeepSeek Harness is still in developer preview, so breaking changes may occur.
  • Package published within 24 hours may be ignored by pnpm (use exact version pinning).
  • Only supports terminal-based interaction; no graphical UI.

dsh-code DSH plugin: from the repository README

Quoted from the UNLINEARITY/dsh-code README, the upstream source of the dsh-code DSH plugin. Copyright remains with the original authors.

**DSH-Code 是 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(`dsh`)的终端编码界面。** 它以树外 bundle 的形式组合在官方 `@deepseek-ai/dsh-base` 之上,与 Harness Web UI 使用同一套 Agent、Session、工具、命令、技能、权限、sandbox、上下文压缩与插件服务。 DSH-Code 没有另外实现一套 Agent loop,而是在 DSH 运行时上增加面向编码工作的 TUI。会话处理参考 [Codex CLI](https://github.com/openai/codex),终端交互参考 [Claude Code](https://code.claude.com/docs/en/overview)。 --- ## 一、项目概览 DeepSeek Harness 将模型、工具、存储、策略和界面作为插件,通过 Cordis 注册。持久化会话事件记录恢复对话与运行状态所需的信息。 DSH-Code 保留这套结构,并补充适合编码任务的终端工作流。 | 参考项目 | DSH-Code 使用的机制 | | --- | --- | | **DeepSeek Harness** | 插件组合、作用域服务、Agent Preset、持久会话、工具、技能、策略、sandbox 与委派 | | **Codex CLI** | 会话导航、有界浮层、历史检查、稳定底部布局与缩放处理 | | **Claude Code** | 斜杠命令发现、思考折叠、审批、提问与 turn steering | 界面采用开发者熟悉的终端操作方式,运行行为仍由 DSH 服务和配置决定。 ## 二、快速开始 需要 Node `^22.19 || >=24`、预览版 `dsh` CLI,以及 `DEEPSEEK_API_KEY`。 ```sh npm install -g @deepseek-ai/dsh dsh-code npm install -g pnpm dsh plugin --profile cli add dsh-code@0.7.0 ``` > 提示:pnpm 会忽略发布不足 24 小时的包,因此发布首日请使用精确版本 `dsh-code@0.7.0`;24 小时后可省略版本号。npm 安装不受此限制。 可用的启动指令: ```sh deepseek dsh --profile cli dsh-code ``` `dsh --profile cli`、`deepseek` 与 `dsh-code` 是并列的启动命令。`deepseek` 与 `dsh-code` 都是 `dsh --profile cli

Read the full READMERepository license: MIT

dsh-code DSH plugin questions

How do I install DSH-Code?

First, ensure you have Node >=22.19 or >=24, the preview dsh CLI, and a DEEPSEEK_API_KEY. Then run: npm install -g @deepseek-ai/dsh dsh-code. After that, add the plugin to your profile: dsh plugin --profile cli add dsh-code@0.7.0. You can then start with dsh --profile cli or dsh-code.

Can I resume a previous coding session?

Yes. Use the /resume command in the TUI to search and select a previous session by ID or prefix. You can also start directly with dsh --profile cli --continue to resume the latest session in the current directory, or use --resume <id> to target a specific session.

What agent presets are available?

Out of the box, DSH-Code offers four presets: standard (full generic coding agent), code (multi-action workflow for Code Mode/PTC), minimal (only persistent shell and str_replace_editor), and cordis (full agent with runtime checks). You can also define your own presets combining tools, prompts, skills, compression, plan mode, and subagent behavior.

How do I switch between different AI models?

Use the /model command inside the TUI. It will show a list of models available from the live LLM registry. Select a model to switch mid-session. When switching to a DeepSeek model, the input box will play an animated transition (Wave, Aurora, or Pulse) to indicate the change.

What should I do if pnpm ignores the package after publishing?

pnpm ignores packages published less than 24 hours ago. To work around this, install with an exact version number, e.g., dsh-code@0.7.0 instead of just dsh-code. After 24 hours, the version can be omitted. npm does not have this restriction.