Skip to content

Latest commit

 

History

History
182 lines (162 loc) · 12.6 KB

File metadata and controls

182 lines (162 loc) · 12.6 KB

DeepSeekCode 当前状态与后续路线

最后更新:2026-06-02

最终目标

DeepSeekCode 的目标是成为一个 DeepSeek-first 的 code agent CLI:用户在终端里运行 deepseek 后,可以像使用 Claude Code CLI、Codex CLI 或 DeepSeek-TUI 一样,完成真实 仓库里的读代码、改代码、跑命令、查看 diff、继续修复、恢复会话和发布前验证。

当前执行口径收敛到 Linux/macOS 本地 code agent CLI。只要用户能在 Linux/macOS 安装并 运行 deepseek,稳定进入 TUI/REPL,完成模型读写代码、shell 验证、diff review、 resume 和本地 runtime/shell-supervisor 工作流,就可以认为这个 milestone 成立。 Windows 和 hosted IDE 属于更大的产品硬化目标;Homebrew 与 npm/npx 都已经是经过 验证的 Linux/macOS 分发路径,分别覆盖 Homebrew 用户和 Node-oriented 用户。

当前判断

DeepSeekCode 已经可以实际用于 Linux/macOS dogfood 和仓库内代码任务。它有全屏 TUI、 line-oriented REPL、持久 runtime、权限工具、shell/PTY、本地服务 smoke、MCP/ACP、 background worktree task runner、GitHub Action bridge、model-backed demo 和真实 online dogfood 证据。

但它还不是“可以公开宣称等同 Claude Code CLI / Codex CLI”的成熟产品。剩余差距主要是:

  • 更多真实外部 repo 样本;
  • 持续维护精简的新用户文档、public beta 说明和故障排查路径;
  • hosted IDE、真实安装后的 systemd/launchd service smoke,以及更广的 Windows 长尾验证。

已经成立的证据

  • deepseek 裸入口、TUI entrypoint、task worktree runner、GitHub Action bridge、 shell fixture、service smoke 和 multi-file fixture scaffold 已纳入 CI gate。
  • PR #16 的完整 CI 已通过 Linux、macOS 和 Windows: https://github.com/willamhou/DeepSeekCode/actions/runs/26334525472
  • PR #16 记录并验证了 online multi-file external fixture evidence: .dscode/dogfood/external-fixture-python-invoice-multifile-verification.jsonpost_validation_passed=truerelease_evidence_ready=true
  • PR #14 引入的 Linux/macOS CLI readiness gates 已在 hosted debug binary 上通过: https://github.com/willamhou/DeepSeekCode/actions/runs/26333425574
  • online dogfood release gate 已达到 100+ model-backed run 口径;2026-06-01 本地复验后,当前 live plan/report 显示 150 条 model-backed online run、 139 条 success,分类为 mcp 31/34write_validate 37/41recovery 26/28pr_workflow 61/64。默认 live report/evidence gate 现在要求 7 天内的 model-backed run、MCP dynamic/resource loop-surface 覆盖, 以及至少 3 条 mcp live runs;MCP loop-surface 数量与覆盖满足 gate, 7 天 recency gate 已刷新。deepseek dogfood live-plan --target-category mcp:3:90 --limit 2 --json 当前显示 overall_needed_runs: 0
  • README 首屏已切换到真实交互式 2048 过程录屏:终端 SVG 展示 deepseek chat 从空 repo 接收用户 prompt、写出 2048.html、完成 shell 校验并总结运行方式;配套 GIF/MP4 展示同一次生成结果的浏览器试玩。旧 scripted 2048、TUI 和 edit/test SVG 已降级为补充 demo/evidence。
  • v0.1.6 已发布 GitHub Release binaries,Release Matrix 的 build、GitHub Release、 npm publish、Homebrew tap、GHCR 和 packaging jobs 全部通过。首个 attempt 的 Docker Artifact Smoke 因 Docker Hub base-image metadata i/o timeout 失败;failed jobs rerun 后 attempt 2 全绿: https://github.com/willamhou/DeepSeekCode/actions/runs/26802630494
  • v0.1.6 release assets 覆盖 Linux x64、Linux arm64、macOS x64、macOS arm64 和 Windows x64;Linux arm64 build 在 hosted ubuntu-24.04-arm 上完整通过。
  • v0.1.6 Release Smoke 已在干净 hosted Linux x64、Linux arm64、macOS x64 和 macOS arm64 runner 上验证公开 release binary 下载、checksum、解压和 install smoke: https://github.com/willamhou/DeepSeekCode/actions/runs/26803043308
  • v0.1.6 GHCR image 已由 workflow 推送,公开 registry manifest 可读取: ghcr.io/willamhou/deepseekcode:0.1.6 的 OCI index digest 为 sha256:63d3070c7bb74da4f234c1df33bd6e80ea9c222a637fdb510445f29e32a22b8c
  • Homebrew tap 已发布到 willamhou/homebrew-deepseekcode,canonical tap 命令 brew tap willamhou/deepseekcode && brew install deepseek 已通过 v0.1.6 macOS x64/arm64 Homebrew Smoke: https://github.com/willamhou/DeepSeekCode/actions/runs/26803227609
  • v0.1.6 npm/npx 已发布并验证:root wrapper 和五个平台包均已在 npm registry 可见;npm viewnpx @deepseek-code/cli@0.1.6 version 和干净目录 npm install @deepseek-code/cli@0.1.6 均验证到 deepseek 0.1.6
  • PR #18 增加 deepseek quickstart / deepseek onboarding 首跑检查,并通过 CI: https://github.com/willamhou/DeepSeekCode/actions/runs/26335387193
  • PR #19 增加 deepseek update release-smoke,用于发布二进制复验,并通过 CI: https://github.com/willamhou/DeepSeekCode/actions/runs/26348829744
  • 外部 write-fixture 生成器已扩展为 Python、Rust、Node 三个 disposable repo 样本; CI 会 smoke scaffold。Node task-report 和 Rust order multi-file 样本也已记录 online model-backed evidence,Python invoice 样本仍是 canonical release path。
  • DeepSeek-native loop 的 repair/cache 证据已补齐:deepseek dogfood repair-cache-evidence --json 会生成 .dscode/dogfood/repair-cache-evidence.json,记录 before/after runtime threads,并可用 deepseek events replaydeepseek events diffdeepseek stats --thread --require-prefix-stable 验证 tool_call_repair、 prompt-layer 事件和 cache hit/miss delta。Release Matrix packaging job 现在 会固定运行这条确定性证据链,并上传 deepseek-loop-evidence JSON artifact。

当前能力概览

  • 入口:deepseekdeepseek chatdeepseek rundeepseek tuideepseek exec
  • TUI:Plan / Agent / YOLO 模式、approval modal、command palette、session/thread 视图、 runtime-backed /goal、MCP 管理、setup/onboarding、provider/model picker。
  • 首跑:deepseek quickstart 以只读方式展示 workspace config、API key env、model/base URL、TTY 状态、下一步命令和 starter tasks;deepseek config provider [show|list|<name> [model]]deepseek config model [show|list|<model>]deepseek config auth [ENV] --stdin 已支持 provider/model 选择与安全 .env 写入; --json 可用于安装验证和自动化排障。
  • REPL:raw-mode line editor、history、session list/load completion、SIGINT cancel、 /save/load/sessions、custom slash commands。
  • Runtime:.dscode/runtime/ 下持久化 sessions、threads、turns、items、events、 thread goals、tasks、usage、automations,并提供 HTTP/SSE runtime surface。
  • 工具:文件读写/search、patch、diff、shell、background jobs、diagnostics、review、 notes、memory、rollback、skills、subagents、MCP/ACP。
  • Shell/PTY:Linux native PTY、bounded interactive attach、byte stream、raw proxy、 Linux pty_fd handoff、shell-supervisor protocol bridge;Windows ConPTY/TCP path 已有 CI smoke,但不是 Linux/macOS milestone blocker。
  • 自动化:background worktree task runner,GitHub Action review/fix/patch bridge, disabled-by-default hosted review/write workflow examples。
  • 发布:GitHub Release、GHCR、release package、Homebrew tap、npm package staging、 Homebrew formula rendering、secret scan、publish-status readiness audit。

剩余工作

Linux/macOS 本地 CLI milestone

这个限定目标的核心交互能力和 evidence gate 已经成立。下一步主要是样本厚度和文档维护:

  1. 可选再增加 1-2 个真实外部 repo fixture,扩大 multi-file/多语言样本厚度。
  2. 持续维护 README、install、release、current-status、public-beta 和 dogfood evidence 文档;当前推荐首跑入口是 deepseek quickstart,README 只保留安装、试用、证据入口。

更大产品目标

  1. DeepSeek-Native Agent Loop Design 推进 cache-first prompt layers、tool-call repair、cost-aware model presets、 read-only parallel dispatch 和 stats/replay surfaces。tool-call repair 初版已落地:可修复可恢复的截断 JSON 参数、从显式 JSON-shaped 文本中找回已知工具调用, 支持 model.tool_schema_flattening = "auto" 下的 schema flatten/re-nest,并在 TUI runtime、exec durable runtime events、runtime daemon task events、 exec --jsonDSCODE_DEBUG_TOOL_REPAIR=1 opt-in debug logs 中留下 repair 证据;不可修复的 malformed tool-call parse failure 会转成下一步模型可见的 failed model observation,而不是直接硬失败;重复工具调用守卫已区分只读和写状态工具, prompt-layer diagnostics 与 deepseek stats MVP 也已接入 exec、TUI 和 runtime daemon turns,并可展示 model preset/route split、per-layer token/hash trend 与 cache-stable hash-change totals, deepseek stats --require-prefix-stable 可作为 cache-stable prompt layer hash regression gate,runtime daemon compaction threshold/keep-tail 也已可配置; model.preset = "auto" | "flash" | "pro"deepseek config presetrun/exec --preset--pro-next、TUI /pro/pro off/pro showmodel.session_budget_microusd 的 80% warning / 100% refusal 初版也已落地,runtime session/thread records 会同步 session_budget_microusd,在 TUI/daemon 进程重启后用 durable usage 恢复已用成本,deepseek config budget raise <MICROUSD>deepseek config budget +<MICROUSD>deepseek config budget off 和 TUI model budget ... 会清晰处理 raise/disable runtime limit;auto escalation 已覆盖 repeated repair、 malformed tool-call、tool-call storm、empty read/search、validation-after-edit 和 repeated unproductive step signals,exec 与 runtime daemon task result 会持久化 model route events,默认 live dogfood plan/report/evidence gate 现在也要求 MCP dynamic/resource loop-surface 覆盖、至少 3 条 mcp live runs 的 gate,以及 7 天 live recency gate;2026-06-01 最新真实 online MCP surface batch 已刷新 recency,并通过 report 与 loop-surface evidence gate,剩余工作是继续做 recurring live calibration;同回合 batch 中的本地 read/search/git/project-map/data-validation 工具、常见 runtime query 工具,以及 MCP inventory/prompt/resource 只读桥接工具现在会在无 hooks/permission/repeat 的情况下 按连续 read-only chunk 并发,并保持结果顺序,tool result 会记录 meta.parallel_* telemetry,写入、shell、任意 mcp_call / dynamic MCP tool 和审批路径仍是串行 barrier;deepseek events replay <thread>deepseek events diff <left> <right> 初版也已接入 runtime events/items/usage,可输出 text 或 JSON 证据;deepseek dogfood repair-cache-evidence --json 已补齐确定性的 before/after repair/cache 证据。
  2. 保持 npm publish workflow 的幂等发布与 manual retry 路径可用;后续发布继续用 npm viewnpx 和干净安装 smoke 复验。
  3. 保持 HOMEBREW_TAP_TOKENHOMEBREW_TAP_REPOSITORY 可用;v0.1.6 tap formula 已自动刷新并通过 Homebrew Smoke,后续 tag 继续用同一路径复验。
  4. 在干净 Linux/macOS 机器上安装 systemd/launchd user services,记录 service-doctor --installedservice-smoke --installed 证据。
  5. 补真实 VS Code CLI runner 或 manual GUI fixture 证据。
  6. 持续和 Claude Code CLI / Codex CLI / DeepSeek-TUI 做核心 loop 对照,只保留会影响真实用户使用的差距。

推荐公开表述

DeepSeekCode is usable today for Linux/macOS dogfooding and repository work, with a full-screen TUI, REPL, durable runtime, permissioned tools, hosted Linux/macOS shell-supervisor smoke gates, release binaries including Linux arm64, clean hosted release-smoke evidence, a verified Homebrew tap, a 100+ run online dogfood release gate with MCP loop-surface coverage, verified online multi-file external fixture evidence, real hosted GitHub workflow evidence, and committed real model-backed README interactive 2048 terminal and gameplay demo media. The supplemental scripted 2048, TUI, and edit/test demos remain available as evidence links. The remaining Linux/macOS CLI work is broader external sample depth and continuing documentation polish; hosted IDE and Windows/service proof remain broader product-hardening work.