DeepSeek‑TUI: A Claude‑Code‑Style Terminal Agent Optimized for DeepSeek

DeepSeek‑TUI is a Rust‑based terminal coding agent modeled after Claude Code, specially tuned for DeepSeek V4, offering chain‑of‑thought streaming, a 1 M‑token context window with automatic compression, cost‑saving RLM mode, multiple operation tiers, and a rapid release cadence that has driven its popularity to over 2.3k GitHub stars.

Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
DeepSeek‑TUI: A Claude‑Code‑Style Terminal Agent Optimized for DeepSeek

Overview

DeepSeek‑TUI is a terminal‑based coding agent written in Rust, optimized for DeepSeek V4. It streams the model’s reasoning chain to the terminal, uses the 1 million‑token context window, and automatically compresses context when near capacity while preserving stable prefix tokens for cache hits.

RLM Mode and Cost Efficiency

In Rapid‑Large‑Model (RLM) mode a primary model can dispatch up to 16 V4 Flash sub‑tasks concurrently for batch analysis or task decomposition. Flash tokens cost roughly one‑third of Pro tokens; off‑loading non‑critical subtasks to Flash reduces overall expense. Uncached tokens are priced ten times higher than cached tokens, and the UI shows per‑round cost.

Model Endpoints and Operation Modes

Supported endpoints: DeepSeek official API, NVIDIA NIM, Fireworks, self‑hosted SGLang.

Plan : read‑only exploration that proposes a plan without execution.

Agent : default mode; each tool call requires user confirmation.

YOLO : fully automatic execution with session persistence, independent Git snapshots, and round‑based rollback.

Installation

npm install -g deepseek-tui

Version History

Initial commit 19 January 2024; 37 releases (v0.7.x → v0.8.x) in <4 months.

Early versions built tool‑call skeleton, session management, Git snapshots.

v0.7.x added multi‑language UI, Chinese prompts, help texts.

v0.8.2 fixed long‑session file‑handle leak.

v0.8.6 / v0.8.7 added rate‑limit banners, input‑history search, message‑queue visualization.

v0.8.8 added Linux ARM64 pre‑compiled binaries.

Localization and Distribution

Chinese README, TUNA Cargo mirror support, release binaries can be hosted on Alibaba Cloud OSS or Tencent Cloud COS.

Contributors

~150 commits generated by Claude, the rest by author Hunter Bown and a few human contributors.

Repository

https://github.com/Hmbown/DeepSeek-TUI

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Model OptimizationAIRustDeepSeekCoding AgentTUI
Machine Learning Algorithms & Natural Language Processing
Written by

Machine Learning Algorithms & Natural Language Processing

Focused on frontier AI technologies, empowering AI researchers' progress.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.