跳到主内容
@wquguru
精选88DeepSeek Harness(GitHub Releases)AI 编程与模型

DeepSeek Harness v0.1.6-alpha.1:弃用同步历史接口

v0.1.6-alpha.1

原文
发到 X
推荐理由

此版本包含大量破坏性变更(如协议切换、接口弃用、后端移除与重命名),重度依赖 DeepSeek Harness 进行自动化或二次开发的读者必须立即检查自定义插件、配置文件及 API 调用逻辑,否则服务将无法正常运行。

中文 | English

新增功能

  • Web 侧边栏新增终端,支持多标签、Shell 选择和刷新后恢复。 @LegGasai
  • 设置中新增已归档会话列表,支持查看和恢复会话。 @tianyicui
  • MCP 支持发现和读取资源、使用 URI 模板。内置 Profile 配置 MCP 服务器后可使用共享资源工具。 @tianyicui
  • Headless 支持从标准输入接收任务,用 --session-id 继续已有会话,用 --json 逐行输出 JSON 运行事件。 @lsdsjy
  • 扩展文件、命令及 PTC 工具,支持 DSH 在本地运行,通过 SSH 使用远端工作区。 @tianyicui
  • 新增实验性 Browser Use 支持,包含 Playwright MCP、Chrome DevTools MCP 和 Stagehand 浏览器后端。 @tianyicui
  • 新增实验性 Computer Use 支持,可通过 Cua Driver MCP 或原生驱动操作本机、获取截图。 @tianyicui
  • 新增实验性 Auto review 模式。 @pku-xht

体验优化

  • 文件、Skill 引用及交付文件链接默认由侧边栏预览。 @LegGasai
  • 支持在 Agent Presets 设置中关闭模式切换 UI。 @ZiyaZhang
  • 优化文件预览,保留文件树滚动位置,图片和 PDF 随面板适配,并简化预览器选择及加载、格式提示。 @Yifffan
  • Trajectory 支持展开和复制 JSON 字符串、查看 PTC 代码及调用结果,推理默认展开,并恢复记录中的运行耗时。 @kermanx
  • 调整输入框加号菜单的分组,将文件添加入口移入菜单,移除独立附件按钮,并统一斜杠菜单的中英文命令展示。 @CreatixChu, @Yifffan
  • 连接提示区分自动与手动重连,支持点击重试,并减少提示闪烁。 @Yifffan
  • 轮次运行超过一小时后,耗时按小时、分钟和秒显示。 @lsdsjy
  • 为适配 DeepSeek V4.1,调整图片缩放和 Token 估算,提高默认请求图片尺寸和编码质量。 @CreatixChu
  • 提升持久 Bash 处理大量历史输出时的效率。 @turtle2099
  • 文档站的 Mermaid 图表支持全屏查看、缩放和平移。 @grllll
  • Node PTC 的 run_code 支持按次设置超时时间,默认 120 秒、最多 600 秒。 @tianyicui
  • MCP 升级至官方 SDK v2,支持协议协商、工具分页,以及未提供工具的服务器。 @tianyicui
  • 推理和压缩摘要展开后,标题随滚动吸顶,方便折叠,且不遮挡摘要中的代码复制按钮。 @Chinesezjc
  • 改善 Web 终端文字和光标对比度,切换主题时保留应用配色;刷新后的新视图暂不恢复该配色。 @LegGasai

问题修复

  • 修复会话最近更新排序,保留刷新后的手动顺序,并将新建空白会话置顶。 @Dudu-0223
  • 修复按轮次分叉时带入后续输入和设置的问题。 @Dudu-0223
  • 修复工具说明含双花括号时,PTC 提示词生成失败或文字被误替换的问题。 @kermanx
  • 修复 Linux 子进程终止和清理时的等待及退出结果判定问题。 @turtle1999, @tianyicui
  • 可选插件启动失败不影响其他可用插件,必需插件失败时退出;修复 Web 服务恢复后的模块路由注册。 @turtle1999
  • 修复鼠标悬停或键盘聚焦短 Markdown 表格时,页面位置发生跳动的问题。 @07akioni
  • 文件编辑卡片按行展示改动和上下文,修正增删行数统计,大范围替换采用整段展示。 @turtle2099
  • 子代理完成通知改为仅传递正文,修复推理块导致父会话 Messages 请求失败的问题;已保存通知不变。 @tianyicui

其他变更

  • 新增 image offload 会话事件,记录请求中省略的历史图片,并在会话恢复和分叉时保留该记录。 @CreatixChu
  • DeepSeek 默认改用 Messages 协议,并支持通过 Files API 复用已上传图片。自定义 API 地址保留不变。如果手动配置了旧官方根地址,请移除该配置或改为 https://api.deepseek.com/anthropic。 @LegGasai, @tianyicui
  • 默认不再启用 Ralph,需要使用时请手动启用。 @tianyicui
  • 移除内置 E2B 执行后端,相关自定义配置需调整。 @tianyicui
  • PTC 包名和服务名统一为 ptc-runtime 系列,旧名称不再兼容,自定义插件和配置需更新。 @tianyicui
  • 工作流执行器改为 workflow-ptc,遵循会话文件策略;自定义配置需更新名称,暂不支持 Python PTC。 @tianyicui
  • agent/session-start 改为异步串行的 agent/created,首次模型请求等待初始化完成,相关插件及注册调用需适配。 @kermanx
  • 弃用 Session 的同步历史读取接口 snapshotEvents、eventAt 和 ownEvents。 @kermanx
  • 实验性 Team 模式统一使用 spawn_teammate,关闭 subagent 和 subagent_fork,默认队友创建上限从 8 增至 16。 @Dudu-0223
  • Node PTC 改用独立进程执行,遵循会话文件策略并限制输出和堆内存;process.env 为空,依赖旧执行环境的代码需适配。 @tianyicui
  • 配置热更新取消事务回滚:解析失败保留原配置,插件激活失败可能部分生效,需修正配置后恢复。 @turtle1999
  • SandboxProvider.confine 和 ShellExecutor.start 改为可取消的异步接口,准备时间计入超时;修复 POSIX 符号链接与父目录组合、Windows 驱动器相对路径解析。 @tianyicui
  • 请求图片缓存移至 DSH_HOME/cache/attachments/request-images,删除后可重建;原图保留,旧缓存不自动清理。 @turtle1999
  • 使用 DeepSeek 模型适配器且连接官方 API 端点时,支持随请求上报会话事件,当前实验性开启,可通过配置关闭。 @tianyicui

New Features

  • Add terminals to the Web sidebar, with multiple tabs, shell selection, and recovery after page refreshes. by @LegGasai
  • Add an archived-session list in Settings for browsing and restoring sessions. by @tianyicui
  • MCP supports resource discovery and reading, and URI templates. Shared resource tools are available after configuring an MCP server in a built-in Profile. by @tianyicui
  • Headless can read tasks from standard input, resume sessions with --session-id, and emit run events as newline-delimited JSON with --json. by @lsdsjy
  • Extend file, command, and PTC tools so DSH can run locally while using a remote workspace over SSH. by @tianyicui
  • Add experimental Browser Use through Playwright MCP, Chrome DevTools MCP, and Stagehand browser backends. by @tianyicui
  • Add experimental Computer Use through Cua Driver MCP or the native driver for local computer interaction and screenshots. by @tianyicui
  • Add experimental Auto review mode. by @pku-xht

Improvements

  • Preview file and Skill references and delivered-file links in the sidebar by default. by @LegGasai
  • Allow the mode-switching UI to be disabled in Agent Presets settings. by @ZiyaZhang
  • Improve file previews with preserved file-tree scroll positions, panel-fitted images and PDFs, simpler viewer selection, and clearer loading and format messages. by @Yifffan
  • Expand and copy JSON strings in Trajectory, inspect PTC code and call results, show reasoning expanded by default, and recover recorded run timing. by @kermanx
  • Reorganize the composer’s plus menu, move file attachment into it, remove the separate attachment button, and align Chinese and English command presentation in the slash menu. by @CreatixChu, @Yifffan
  • Distinguish automatic and manual reconnection, support click-to-retry, and reduce notice flicker. by @Yifffan
  • Show turn durations in hours, minutes, and seconds once they exceed an hour. by @lsdsjy
  • Adapt image resizing and token estimates for DeepSeek V4.1, and increase default request-image size and encoding quality. by @CreatixChu
  • Improve persistent Bash performance when processing large amounts of previous output. by @turtle2099
  • Support fullscreen viewing, zoom, and pan for Mermaid diagrams on the documentation site. by @grllll
  • Support per-call timeouts for Node PTC’s run_code, with a default of 120 seconds and a maximum of 600 seconds. by @tianyicui
  • Upgrade MCP to the official SDK v2 with protocol negotiation, paginated tool lists, and support for servers without tools. by @tianyicui
  • Keep expanded reasoning and compaction-summary headers pinned while scrolling for easy collapse, without covering code copy buttons in summaries. by @Chinesezjc
  • Improve Web terminal text and cursor contrast and preserve application colors across theme changes; new views after refresh do not yet restore those colors. by @LegGasai

Bug Fixes

  • Fix session recency sorting, preserve manual order after refreshes, and place new blank sessions at the top. by @Dudu-0223
  • Fix turn-based forks including inputs and settings from later turns. by @Dudu-0223
  • Fix PTC prompt generation failures and unintended text replacements when tool descriptions contain double braces. by @kermanx
  • Fix waiting and exit-result handling during Linux subprocess termination and cleanup. by @turtle1999, @tianyicui
  • Keep usable plugins running after optional startup failures, exit on required-plugin failures, and fix module-route registration after Web server recovery. by @turtle1999
  • Fix page jumps when hovering over or focusing short Markdown tables. by @07akioni
  • Show line-level changes and context in file edit cards, correct added/deleted line counts, and display large replacements as whole fragments. by @turtle2099
  • Pass only body text in subagent completion notices to fix reasoning blocks causing parent-session Messages failures; saved notices are unchanged. by @tianyicui

Chores

  • Add an image offload session event to record historical images omitted from requests and preserve that record across session recovery and forks. by @CreatixChu
  • Use Messages as the default DeepSeek protocol and reuse uploaded images through the Files API. Custom API addresses are preserved. If you explicitly set the old official root URL, remove that override or change it to https://api.deepseek.com/anthropic. by @LegGasai, @tianyicui
  • Disable Ralph by default. Enable it explicitly if needed. by @tianyicui
  • Remove the built-in E2B execution backends; update custom configurations that use them. by @tianyicui
  • Rename PTC packages and services to the ptc-runtime family without legacy aliases; update custom plugins and configurations. by @tianyicui
  • Replace the workflow executor with workflow-ptc under the session file policy; update custom configurations. Python PTC is not supported. by @tianyicui
  • Replace agent/session-start with asynchronous, serial agent/created initialization; the first model request waits for completion. Update affected plugins and registration calls. by @kermanx
  • Deprecate the synchronous Session history APIs snapshotEvents, eventAt, and ownEvents. by @kermanx

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件