Skip to content

v1.3.0 — Reactive Autonomous Agents, Background Task Management & Routing Controls

Latest

Choose a tag to compare

@sluisr sluisr released this 19 Aug 17:29
· 7 commits to main since this release

DeepSeek CLI v1.3.0 — Comprehensive Release Notes

DeepSeek CLI v1.3.0 is a feature release introducing 24 optimizations, autonomous reactive execution, advanced background task management, non-interactive sudo elevation, network resilience, and enhanced UI controls.


1. Background Task Management & Reactive Agent Awakening

  1. 10-Second Auto-Backgrounding: Long commands exceeding 10s are automatically transitioned to background tasks (is_background: true), releasing the terminal immediately without freezing the UI.
  2. Reactive Agent Awakening (Zero Polling): Upon background process exit, output is captured and injected into DeepSeek when Idle. DeepSeek synthesizes and displays the final report proactively.
  3. Native Agent Tools (kill_background_process & write_background_input): Provides safe PID-based process termination and interactive stdin streaming for background commands.
  4. Mandatory Backgrounding Policy: System Prompt enforces is_background: true for scans (nmap), full-test runs, and heavy compilation tasks with immediate PID feedback.
  5. Strict sleep Ban: Prohibits active polling loops (sleep 30) to prevent LLM token waste and zombie subshells.
  6. Proactive Background Result Delivery: Instructs the model to check output files on state inquiries and report completed results immediately.
  7. Continuous Initial Execution: Sequences discovery (nmap -sn) directly into deep vulnerability scans without redundant conversational pauses.

2. Autonomous Permission System: $auto & $sudo

  1. One-Turn Autonomous Mode ($auto <prompt>): Promotes execution to ApprovalMode.YOLO for that turn, executing tools without confirmation prompts.
  2. Multi-Tool Cycle Persistence: Maintains YOLO approval across all tool steps within the user's turn until returning to Idle.
  3. Continuation Context Inheritance: Follow-up prompts ("continue", "proceed", "go ahead") automatically inherit $auto authorization.
  4. Inline Sudo Password Elevation ($sudo:PASSWORD): Memory-only session RAM password storage paired with askpass.cjs for 0ms silent root command execution (nmap -sS, systemctl). Password is never sent to the LLM API.
  5. Safe Command Auto-Approval (read-only.toml): Diagnostic commands (ping, curl, date, whoami, git status, cat) auto-approved by default.

3. Model Routing, Shortcuts & UI Controls

  1. Strict Model Selection Priority: Reordered OverrideStrategy in modelRouterService to guarantee explicit user selections (flash or pro) are never mutated by the complexity classifier.
  2. Direct Switch Commands (/model pro & /model flash): Instant model toggling with alias support.
  3. Dynamic Footer Reasoning Effort Badge: Real-time indicator for DeepSeek-V4-Pro (r:low, r:medium, r:high, r:max).
  4. Footer Task Indicator: Real-time badge in cyan displaying active background tasks (tasks (X running)).

4. Network Resilience, Search & Shell Flexibility

  1. Exponential Backoff Retry (fetchWithRetry): Automatic retry with exponential backoff and jitter upon HTTP 429 (Rate Limit) and 503 (Service Unavailable).
  2. Idle Stream Timeout (60s): Cancels stalled SSE connections if no bytes arrive within 60 seconds.
  3. Optimized Native Web Search: Native server-side search via deepseek-chat with dynamic timeouts tailored to reasoning levels.
  4. Unrestricted Shell Command Substitution: Enabled bash $() and backticks for compound terminal operations.

5. Packaging, Stabilization & Metadata

  1. Hanging Sockets & AbortSignal Fix: Complete AbortSignal propagation in fetch and SSE streams to eliminate zombie TCP sockets.
  2. Clean Manual Update UX: Replaced brittle global background updates with an informative update banner.
  3. Guaranteed Bundle Assets: Enforced automatic copying of README.md and LICENSE into bundle/ for NPM packages.
  4. SEO Keywords & Author Attribution: Enriched NPM metadata and official author info (sluisr <contact@sluisr.com> (https://sluisr.com/)).