rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English | 中文
DeepSeek Code TUI is a terminal-native coding agent built on the official DeepSeek Harness. It combines DeepSeek V4 Pro/Flash, a persistent TUI, real coding tools, resumable sessions, permissions, MCP, skills, and continuable subagents in one shell-first workflow.
Run deepseek inside a project. No browser is required.
This is an independent community distribution. It is not an official DeepSeek product and is not affiliated with Anthropic. Claude Code is referenced only as a terminal UX comparison.
deepseek-v4-flash-vision-exp model for image input.allin multi-agent tool use the underlying Cordis plugin architecture rather than a separate wrapper runtime.deepseek-v4-flash-vision-exp with /model to send text, clipboard images, or both in one prompt.22.19+ or 24+ (Node 24 recommended)11.7+The current source line is v0.3.0. Packaged installers and npm releases are not available yet.
git clone https://github.com/BenHuHuan/dhs-tuicode.git
cd dhs-tuicode
corepack enable
pnpm install
pnpm run build:lib:host
pnpm --filter @deepseek-ai/dsh link --global
Open a new terminal, enter a project, and run:
cd your-project
deepseek
To run directly from a checkout without the global link:
pnpm --dir /path/to/dhs-tuicode dsh
On Windows, the built repository-local entry is:
node .\apps\cli\lib\bin.js
deepseek in the directory you want the agent to edit./login and paste the DeepSeek API key. The credential provider saves it for later sessions./model to confirm or change the model.For a one-off unrestricted launch:
deepseek --dangerously-skip-permissions
Only use bypass in a trusted workspace. It removes approval prompts for shell commands and file changes.
DeepSeek Code deliberately separates model/tool routing from workspace permissions. Changing one does not silently change the other.
/mode| Profile | Intended model | First-request behavior |
|---|---|---|
minimal |
V4 Pro (default) | Starts with the anchored Minimal prompt and a small shell + read surface, then promotes the full catalog after the first durable action or assistant result |
router |
Primarily V4 Flash | Restores the routing suite's compact RL interface with a one-sentence persona and shell/editor surface, then opens the full catalog after the first tool call |
spec |
Primarily V4 Flash | Uses task classification, deep-think-first guidance, and the spec/react/weak first-turn tool surface for more deliberate planning |
The Router profiles port reproducible behavior from dsh-routing-suite, including chat stand-down, fresh classification for later tasks, complexity-aware guidance, and a non-Flash-only closure suffix. Minimal follows the anchored approach from dsh-anchored-standard.
The default reasoning effort is max. Prompt and shell anchoring can improve behavioral consistency, but they do not guarantee a fixed hidden reasoning prefix.
Switch at any time:
/mode minimal
/mode router
/mode spec
Shift+Tab cycles the configured safe states and Plan. The bundled theme presents states such as Build, Flow, Inspect, and Plan with different color systems and authority. Use /permission, /plan, and /bypass for direct control.
Dangerous full access is never added to the normal cycle until it has been selected explicitly.
| Area | Capabilities |
|---|---|
| Coding | File read/search/edit, shell execution, background jobs, task lists, tool cards, external editor, and direct ! command execution |
| Sessions | Persistent logs, resume/continue, rename, clear/new, prompt history, context compaction, copy, and export |
| Review and recovery | Interactive diff, named workspace/conversation checkpoints, rewind, and conversation branching |
| Models | Provider/model selection, reasoning effort, thinking visibility, token usage, vision image input, image token estimation, and context pressure |
| Extensions | MCP status/reload, skill discovery and invocation, durable subagent management, and Cordis plugins |
| Multi-agent | allin orchestration with a V4 Pro coordinator and parallel V4 Flash execution lanes |
| Terminal UX | Mouse scrolling, jump-to-bottom, OSC 52 selection copy, inline paste blocks, clipboard-image input, terminal images, ANSI pixel fallback, and CJK-aware width handling |
| Command | Purpose |
|---|---|
/login |
Save or replace the DeepSeek API token |
/model, /effort |
Select the model and reasoning effort |
/mode |
Switch Minimal, Router, or Spec model/tool routing |
/permission, /plan, /bypass |
Control workspace authority and planning state |
/workdir [path] |
Open another project in a fresh session |
/diff |
Review uncommitted workspace changes |
/checkpoint [label], /rewind |
Create and restore reversible workspace/conversation points |
/resume, /continue |
Resume a persisted session |
/new, /clear, /rename |
Manage conversation identity and lifecycle |
/compact, /context |
Manage and inspect context pressure |
/agents, /tasks |
Manage continuable subagents and background work |
/mcp |
Show MCP connection state and public tools |
/skills, /skill:<name> |
Discover and load skills |
/copy [N], /export [file] |
Copy assistant output or export the conversation |
/config, /status, /help |
Edit settings, inspect diagnostics, and open help |
Type / to open the scrollable command palette. Skill commands are populated asynchronously from active catalogs.
[Paste #N ...] block that can be combined with ordinary text and additional blocks.? on empty input for the complete shortcut reference.On Windows, Minimal and Router model-facing shell tools launch fresh Git Bash processes with real Bash/MSYS command semantics. DeepSeek Code checks DSH_BASH_PATH, GIT_BASH, standard Git for Windows locations, and finally PATH. PowerShell remains available for Windows-confined operations.
Because MSYS signal pipes do not work inside the restricted-token sandbox used by safe Windows execution, a Git Bash tool call may require one full-access approval or /bypass on. This is a Windows runtime constraint, not an API-key requirement.
Override Bash discovery when needed:
$env:DSH_BASH_PATH = 'C:\Program Files\Git\bin\bash.exe'
deepseek
For mixed Chinese and English, select Sarasa Mono SC or another verified CJK monospace font in the terminal profile. Proportional CJK fallback fonts can appear misaligned even when the TUI's column calculations are correct.
Run the same deepseek command in a Bash-compatible terminal. The coding loop, sessions, permissions, MCP, skills, and subagents do not require a desktop. Bitmap image protocols depend on the terminal; ANSI pixels and text metadata remain available as fallbacks.
/status and normal logs do not print the saved API key./checkpoint before broad refactors, but keep using Git and backups: rewind is not transactional storage.DeepSeek Code remains a DeepSeek Harness distribution rather than a monolithic wrapper. Cordis plugins provide model routes, tools, sessions, permissions, credentials, MCP, skills, agents, and the TUI. Optional capabilities can be added or removed without replacing the core agent loop.
pnpm install
pnpm run build:lib:host
pnpm run test
pnpm run test:e2e
Keyless e2e fixtures do not require an API key; real model requests do. Report bugs through GitHub Issues with the OS, terminal, Node version, launch command, and smallest reproduction.
The repository and source tag are currently v0.3.0. This is a pre-1.0 community distribution intended for early adopters and contributors.
DeepSeek Harness and the imported routing/minimal projects retain their own history, authorship, and notices. GitHub's contributor list is derived automatically from commit history; it is not an ownership declaration by this README.
MIT. See THIRD_PARTY_NOTICES.md for bundled third-party notices.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek。