Files
deepseek-harness/packages/workflow/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.5 KiB

description, kind
description kind
workflow 组地图:由模型编写的、可扇出 subagent 的编排脚本,供浏览本组的用户与维护者阅读。 package-group

packages/workflow

English | 中文

概述

workflow 组让 agent 可以运行一段由模型编写的编排脚本,把工作扇出到多个 subagent 并返回最终值。workflow 包提供运行服务,worker-thread 包在隔离线程中执行脚本,两个面向模型的工具公开编排能力:通用的 workflow 工具用于脚本化扇出,固定的 ralph 工具用于全新 agent 迭代循环。脚本用钩子协调 agent,实际工作由 agent 完成。引擎把脚本的同步工作移出宿主事件循环,但这只是隔离,不是安全边界。

目录


职责 ctx 键
workflow 运行由模型编写的、扇出 subagent 的编排脚本 ctx.workflowEngine
workflow-worker-thread 在独立 worker thread 中执行每个工作流脚本,移出宿主事件循环 注册到 ctx.workflowEngine
tool-workflow workflow 工具交给模型,用于脚本化多 agent 编排 注册到 ctx.tools
tool-ralph ralph 工具交给模型,用于全新 agent 迭代循环 注册到 ctx.tools

相关文档


开发备注

维护者的工作上下文——点击展开

无。