← Back to projects

2025–2026 · Personal project · Rust implementation and audit

DeepSeek CLI: Streaming Conversations in the Terminal

I combine one-shot prompts, local conversation history, system prompts, R1 reasoning streams, and Unix pipes in a Rust CLI, with an explicit audit of its current boundaries.

5.7 MiB
arm64 release binary
3 modes
stateless/new/resume
0 tests
current repository tests
Theme-aware terminal view built from the actual DeepSeek CLI help outputTheme-aware terminal view built from the actual DeepSeek CLI help output
01

Problem

Code, logs, and diffs already live in the shell; repeatedly copying them into a web chat breaks the natural command-line workflow.

02

Approach

I used clap, Tokio, and Reqwest for stateless, new, and resumed sessions, with streamed deltas, R1 reasoning display, timestamped JSON history, configuration, and localization.

03

Outcome

The release build produces a 5.7 MiB arm64 binary. The core path works, while SSE framing, history safety, configuration permissions, and automated tests remain next-step work.