Free
MIT-licensed open source CLI agent. All features included. Requires a paid DeepSeek API key for token usage.
The DeepSeek-native coding agent engineered for maximum prefix-cache efficiency — 99.82% hit rates, 80% cost savings.
Terminal-native AI coding agent built specifically for DeepSeek's API. Engineered for prefix-cache stability, it achieves 99.82% cache hit rates — cutting large-session costs from ~$61 to ~$12 while delivering a full TUI with file editing, shell access, MCP integration, and plan mode.
MIT-licensed open source CLI agent. All features included. Requires a paid DeepSeek API key for token usage.
Reasonix is an open-source (MIT), terminal-native AI coding agent purpose-built for DeepSeek’s API. Unlike generic agent frameworks that happen to support DeepSeek , Reasonix treats DeepSeek’s prefix-caching mechanics as a first-class engineering constraint that shapes every architectural decision. This approach makes it the most cost-effective coding agent available for the DeepSeek ecosystem — real-world usage shows 99.82% cache hit rates, reducing a 435M-token session from ~$61 to ~$12.
Installed via a single npm command, Reasonix provides a full terminal UI with file editing, shell access, MCP tool integration, plan mode, a skills/memory system, and per-workspace session persistence. It runs on macOS, Linux, and Windows with Node ≥ 22.
Tool-call repair engine — Automatically handles DeepSeek -specific failure modes: flattens deep schemas, scavenges tool calls from reasoning content, repairs truncated JSON, and suppresses duplicate tool calls.
flash, auto, pro) with turn-end auto-compaction, /pro single-turn arming, and failure-signal auto-escalation to v4-pro.parallelSafe: boolean; safe calls run concurrently via Promise.allSettled while mutating edits remain serial.Full TUI — Ink -based terminal interface with file editing, shell commands, MCP integrations, plan mode, and a companion web dashboard.
reasonix code (default coding agent), reasonix chat (plain chat), reasonix run (one-shot), reasonix doctor (health check).Reasonix’s architecture rests on three design pillars, each solving a failure mode that generic agent frameworks don’t address.
DeepSeek’s automatic prefix caching activates only when the exact byte prefix of a request matches the previous one. Most agent loops are cache-hostile — they inject timestamps, reorder tool histories, rewrite context, or mutate session state mid-conversation, invalidating the cache prefix.
Reasonix partitions the context into three regions:
┌─────────────────────────────────────────────────────┐
│ IMMUTABLE PREFIX │ ← fixed for session
│ system + tool_specs + few_shots │ cache hit candidate
├─────────────────────────────────────────────────────┤
│ APPEND-ONLY LOG │ ← grows monotonically
│ [assistant₁][tool₁][assistant₂]... │ preserves prefix of prior turns
├─────────────────────────────────────────────────────┤
│ VOLATILE SCRATCH │ ← reset each turn
│ R1 thought, transient plan state │ never sent upstream
└─────────────────────────────────────────────────────┘ Three invariants maintain cache stability: the prefix is computed once and pinned for the session, log entries are strictly append-only, and volatile reasoning state lives outside the cached prefix entirely.
DeepSeek models occasionally emit malformed structured tool calls — deeply nested schemas, tool calls embedded in reasoning content, truncated JSON, or duplicate invocations. Reasonix handles them through four mechanisms:
tool_calls field.(tool, args) tuples within a sliding window are suppressed; the model gets a reflection turn instead of repeating itself.Three presets let users trade model tier for cost:
| Preset | Model | Relative Cost |
|---|---|---|
|
| v4-flash | 1x |
|
| v4-flash → v4-pro on hard turns | 1-3x |
|
| v4-pro | ~12x |
Three mechanisms enforce cost discipline: turn-end auto-compaction shrinks tool results exceeding 3000 tokens, /pro arms a single v4-pro turn then auto-disarms, and failure-signal auto-escalation promotes hard turns to v4-pro with a visible warning.
Requirements: Node.js ≥ 22, a paid DeepSeek API key.
npm install -g reasonix Or run directly without installing:
npx reasonix code On first run, Reasonix prompts for your DeepSeek API key and stores it locally. The tool is also available via the dsnix alias and runs on macOS, Linux, and Windows.
| Command | Description |
|---|---|
|
| Default coding agent mode — full TUI with file editing, shell, MCP |
|
| Plain chat mode without coding tooling |
|
| One-shot execution for quick prompts |
|
| Health check — verifies API key, Node version, and dependencies |
Inside the TUI, users can switch cost presets with /flash, /auto, and /pro commands, access plan mode, manage skills and memory, and monitor real-time token and cost meters.
| Reasonix | Claude Code | Cursor | Aider | |
|---|---|---|---|---|
| Backend | DeepSeek only | Anthropic | OpenAI / Anthropic | Any (OpenRouter) |
| License | MIT | Closed | Closed | Apache 2 |
| Cost profile | Low per task | Premium | Subscription + usage | Varies |
| DeepSeek prefix-cache | Engineered | N/A | N/A | Incidental |
| MCP support | Yes | Yes | Yes | Partial |
| Plan mode | Yes | Yes | Yes | No |
| Skills / Memory | Yes | Yes | N/A | No |
| Web dashboard | Yes | No | N/A | No |
| Per-workspace sessions | Yes | Partial | N/A | No |
The engineered prefix-cache support is what sets Reasonix apart. Aider supports DeepSeek (native API or OpenRouter) but its loop isn’t designed for prefix stability. Claude Code is DeepSeek-compatible via API proxy but optimized for Anthropic’s models. Cursor is a full IDE — a different category entirely.
Reasonix is developed by esengine, a community project not affiliated with DeepSeek. The repository has accumulated ~6,500 GitHub stars, 1,338 commits, and 30+ contributors under the MIT license. The project reached #2 on Hacker News ’s front page with 324 points. Community engagement happens primarily through GitHub issues and a bilingual (English/Chinese) Discord server.
Reasonix fills a specific niche: the most cost-effective coding agent for DeepSeek’s API, built from the ground up around the provider’s caching mechanics. The cache-first loop delivers real-world savings that generic frameworks can’t match — 99.82% cache hit rates and 80% cost reduction are not theoretical benchmarks but reproducible outcomes of deliberate architecture. For developers committed to DeepSeek or evaluating it as a primary model, Reasonix is the current benchmark in DeepSeek-native agent design.
Desktop client (Tauri, prerelease), enhanced MCP support, web dashboard improvements
Cost control presets (flash/auto/pro), turn-end auto-compaction, /pro single-turn arming, failure-signal auto-escalation
MCP support improvements, plan mode refinements, bug fixes and stability enhancements
Initial public release — terminal coding agent with DeepSeek API support, basic TUI, file editing and shell access
npm install -g reasonix
reasonix code my-project
# Or run without installing:
npx reasonix code
# Subcommands:
reasonix chat # Plain chat mode
reasonix run <cmd> # One-shot execution
reasonix doctor # Health check AI code review platform for the AI era. Automated code reviews, security scanning, and team analytics across GitHub, GitLab, VS Code, and JetBrains. Used by 300,000+ developers.
AI-powered PR description generator and code review assistant. Automatically writes pull request descriptions, sends stakeholder notifications, creates changelogs, and provides inline code refactoring.
Multi-agent AI coding platform with 12+ agents and 24+ models, featuring Chairman LLM for parallel multi-agent evaluation and end-to-end encrypted inference. Ships across six surfaces: CLI, IDE, Cloud, API, Mobile, and Builder.