@deepseek-ai/dsh-subagent-fork-in-process 0.2.2-rc.5 → 0.2.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +4 -4
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/package.json +17 -16
package/README.i18n.yaml
CHANGED
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
en: 91a5bd22001586e9
|
|
55
55
|
zh: 456e5bf20881a70d
|
|
56
56
|
/deepseek-ai-dsh-subagent-fork-in-process/model-experience/child-agent-history-and-envelope/what-the-model-sees:
|
|
57
|
-
en:
|
|
58
|
-
zh:
|
|
57
|
+
en: aa73e4e958b4d1af
|
|
58
|
+
zh: f514cf0ec0ef3ef4
|
|
59
59
|
/deepseek-ai-dsh-subagent-fork-in-process/model-experience/child-agent-history-and-envelope/token-effect:
|
|
60
60
|
en: 19b588baaa87126b
|
|
61
61
|
zh: 7010e93bbe7d71ba
|
|
62
62
|
/deepseek-ai-dsh-subagent-fork-in-process/model-experience/child-agent-history-and-envelope/kv-cache-effect:
|
|
63
|
-
en:
|
|
64
|
-
zh:
|
|
63
|
+
en: d01f590e986f815e
|
|
64
|
+
zh: a1c433d759b4e908
|
|
65
65
|
/deepseek-ai-dsh-subagent-fork-in-process/model-experience/parent-tool-result-indirectly:
|
|
66
66
|
en: 75d061c2151624a7
|
|
67
67
|
zh: 71e58e020b60ff90
|
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ Read these pages when the package-level contract is not enough; they move from t
|
|
|
109
109
|
|
|
110
110
|
#### What the model sees
|
|
111
111
|
|
|
112
|
-
The child receives the parent's balanced completed-turn prefix, then the new task content verbatim. It joins the parent's preset revision, which supplies persona and tools. Parent agent-local restrictions are not copied. An optional structured-output request adds a child-only tool; the parent's current in-flight turn is excluded.
|
|
112
|
+
The child receives the parent's balanced completed-turn prefix, then the new task as a message from the parent agent: `Agent <parent name> sent a message: ` followed by the task content verbatim. It joins the parent's preset revision, which supplies persona and tools. Parent agent-local restrictions are not copied. An optional structured-output request adds a child-only tool; the parent's current in-flight turn is excluded.
|
|
113
113
|
|
|
114
114
|
#### Token effect
|
|
115
115
|
|
|
@@ -117,7 +117,7 @@ Forking duplicates retained completed history into the child's request, which th
|
|
|
117
117
|
|
|
118
118
|
#### KV Cache effect
|
|
119
119
|
|
|
120
|
-
The child may reuse the inherited byte-identical prefix under the same provider and model. Structured output, generated-SDK, route changes, or historical descriptor overrides on cold resume can invalidate reuse before inherited history; later child history is append-only. Continuable messaging adds no child-only system-prompt section or tool schema; the parent id and return guidance follow inherited history in the initial
|
|
120
|
+
The child may reuse the inherited byte-identical prefix under the same provider and model. Structured output, generated-SDK, route changes, or historical descriptor overrides on cold resume can invalidate reuse before inherited history; later child history is append-only. Continuable messaging adds no child-only system-prompt section or tool schema; the parent id and return guidance follow inherited history in the initial delegated task ([cache-preserving fork Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md)).
|
|
121
121
|
|
|
122
122
|
### Parent tool result, indirectly
|
|
123
123
|
|
package/README.zh.md
CHANGED
|
@@ -109,7 +109,7 @@ kind: "package-reference"
|
|
|
109
109
|
|
|
110
110
|
#### 模型看到什么
|
|
111
111
|
|
|
112
|
-
子 agent
|
|
112
|
+
子 agent 先接收由父级已配平的已完成轮次构成的前缀,再接收一条来自父 agent 的新任务消息:`Agent <parent name> sent a message: ` 后接逐字任务内容。它加入父级的 preset 代际,由 preset 提供 persona 和工具。父级 agent 局部限制不会被复制。可选的结构化输出请求会添加仅属于子 agent 的工具;父级当前进行中的轮次会被排除。
|
|
113
113
|
|
|
114
114
|
#### Token 影响
|
|
115
115
|
|
|
@@ -117,7 +117,7 @@ fork 会把保留的已完成历史复制到子 agent 的请求中,子 agent
|
|
|
117
117
|
|
|
118
118
|
#### KV Cache 影响
|
|
119
119
|
|
|
120
|
-
在提供方与模型相同的前提下,子 agent 可以复用继承的逐字节相同前缀。结构化输出、生成 SDK、路由变化,或冷恢复时的历史 descriptor 覆盖,可能在继承历史之前使复用失效;后续子 agent 历史仅追加。可继续消息不会增加子级专属的系统提示词区段或工具 schema;父级 ID
|
|
120
|
+
在提供方与模型相同的前提下,子 agent 可以复用继承的逐字节相同前缀。结构化输出、生成 SDK、路由变化,或冷恢复时的历史 descriptor 覆盖,可能在继承历史之前使复用失效;后续子 agent 历史仅追加。可继续消息不会增加子级专属的系统提示词区段或工具 schema;父级 ID 与返回指导在初始委派任务中位于继承历史之后(见[保持 fork 缓存的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md))。
|
|
121
121
|
|
|
122
122
|
### 父级工具结果(间接)
|
|
123
123
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-subagent-fork-in-process",
|
|
3
3
|
"description": "In-process fork subagent backend: runs a child agent seeded with a prefix of the parent's log",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,24 +32,25 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
36
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
37
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
38
|
-
"@deepseek-ai/cordis": "~4.
|
|
35
|
+
"@deepseek-ai/dsh-agent": "0.2.3-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-session": "0.2.3-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-subagent": "0.2.3-alpha.2",
|
|
38
|
+
"@deepseek-ai/cordis": "~4.2.0-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@deepseek-ai/schemastery": "~3.
|
|
41
|
+
"@deepseek-ai/schemastery": "~3.20.0-alpha.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@deepseek-ai/
|
|
45
|
-
"@deepseek-ai/
|
|
46
|
-
"@deepseek-ai/dsh-agent
|
|
47
|
-
"@deepseek-ai/dsh-agent-loop
|
|
48
|
-
"@deepseek-ai/dsh-
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-subagent
|
|
52
|
-
"@deepseek-ai/
|
|
53
|
-
"@deepseek-ai/
|
|
44
|
+
"@deepseek-ai/dsh-brand": "0.2.3-alpha.2",
|
|
45
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.2.0-alpha.1",
|
|
46
|
+
"@deepseek-ai/dsh-agent": "0.2.3-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.3-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.3-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-llm": "0.2.3-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-session": "0.2.3-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-subagent": "0.2.3-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.3-alpha.2",
|
|
53
|
+
"@deepseek-ai/cordis": "~4.2.0-alpha.1",
|
|
54
|
+
"@deepseek-ai/dsh-session-projection": "0.2.3-alpha.2"
|
|
54
55
|
}
|
|
55
56
|
}
|