Files
deepseek-harness/packages/sdk/README.zh.md
T
Tianyi Cui a7a5be1703 docs(notes): archive low-future-value Agent Notes
Run the dsh-archive-agent-notes audit over every active Agent Note on
current master, judging each record by whether its rationale still guides
work rather than by size or age.

- Archive 453 implemented bilingual triplets (417,882 English words):
  completed UI chrome, narrow adapters, closed bug fixes, implementation
  walkthroughs whose package READMEs, docs pages, generators, or successor
  notes now carry the useful behavior, and 51 records fully superseded by
  a later active note. Keep 201 implemented notes whose ownership rules,
  negative guarantees, durable or wire semantics, security rules,
  reintroduction conditions, or still-tempting rejected alternatives
  remain useful.
- Reject 7 proposals whose premise is gone or whose work shipped in
  amended form under other records; delete 2 rejected notes that no
  longer prevent a plausible mistake.
- Retarget every remaining inbound link to the archived path, and repair
  active prose that named an archived record as the owner of a live fact:
  parenthetical citations drop, ownership sentences redirect to the
  README, docs page, or active note that states the fact, and history
  citations say so. Chinese files link the English archived path because
  the pairing gate treats the frozen tree as outside the bilingual corpus.
- Seal 1,359 new frozen artifacts; existing seals are unchanged and
  outbound links from archived notes are neither inspected nor repaired.
- Regenerate docs/config-catalog.md after the hook-bridge comment edits
  shifted two source line numbers.
2026-09-05 14:37:32 +08:00

2.3 KiB

description, kind
description kind
SDK 能力家族的包映射:JSON-RPC 协议格式,以及供进程外 SDK 使用的 TypeScript 客户端与服务器。 package-group

sdk/:从另一进程驱动 Harness 运行时

English | 中文

概述

本组让另一进程驱动完整的 DeepSeek Harness 运行时:JSON-RPC 协议格式定义消息,服务插件通过 stdio 为外部客户端提供服务,TypeScript 与 Python 客户端则用具名 profile 和有序 patch 启动 dsh。本组没有任何包定义独立应用或创建开发者项目。SDK 客户端可以打开会话、发送提示词,并实时观察会话事件、agent 状态转换与 subagent 完成事件。TypeScript 客户端是 Python SDK 的设计孪生,二者说同一种协议。本页是组的映射;各包 README 负责各自的包级约定。

目录


每个包 README 描述你可用该包部分完成的事情。

职责
protocol/ 协议格式:按换行分帧的 JSON-RPC 传输,以及具名的请求、结果与通知类型
client/ TypeScript 客户端:启动运行时子进程,通过高层与协议层 API 驱动 agent 轮次
server/ jsonrpc 插件:通过 stdio 为进程外 SDK 客户端提供服务

相关文档

先从 Python SDK(客户端约定的姊妹实现)开始,再看可运行应用与组边界背后的决策记录。

  • Python SDK — 说同一种协议的 Python 对侧实现,并随附捆绑运行时。
  • SDK 应用组合包 — 启动 JSON-RPC 服务器的 dsh --profile sdk 应用。
  • 架构 — 打包后的 Python 客户端为何启动相同的具名 profile。
  • SDK 项目工具链移除 — 本组为何从不创建、配置或构建开发者项目。
  • SDK subagent 提供方 — harness 内部消费 TypeScript 客户端的例子。

开发备注

无。