dsh-parallel-tools-prompt 0.2.1-rc.5 → 0.2.1-rc.6

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.md CHANGED
@@ -12,12 +12,13 @@
12
12
  - 同一 Agent 幂等注册;插件卸载与 Agent 释放都清理 section。插件重载时为仍存活的目标根 Agent 补挂已启用的 section,并覆盖仍存活 Agent 的提醒通道;源码更新建议重启宿主加载新模块。
13
13
  - 两个独立开关选择注入通道(默认只走 CONTEXT 提醒):`contextReminder`(默认 `true`)与 `systemPromptSection`(默认 `false`,设为 `true` 输出 `systemPrompt.section()` 的指引内容)。提醒通过 `agent/pre-step` 在下一步骤追加一条带独立 `source.kind: parallel-tools-scheduling` 的 CONTEXT 消息,写入会话历史并渲染为 CONTEXT 块,与宿主 `time-context` 同一机制;已持久化的 source 用于去重,包括继承历史中的提醒,每个 Agent 最多交付一次,已有或继承的提醒不会重复注入。两者可同时开启;同时关闭则插件不注入任何内容。提醒进入历史,卸载不会删除。这不是每轮重复提醒,也不保证长期遵循。
14
14
  - 插件详情页(Plugins → 本插件)在描述与组件列表之间提供这两个开关的设置表单,开关即时写入当前 profile 的 patch。两个字段声明为 `.volatile()`,修改不重启插件:`contextReminder` 在下一步骤生效;系统提示词开关对修改之后重新组装提示词的会话生效(已建立的会话沿用旧提示词)。浏览器端由 `src/client` 经 `scripts/build-client.mjs` 构建为 `lib/client.js`,按宿主客户端模块格式封装;表单要求 profile 里条目 id 为 `parallel-tools-prompt`。
15
- - 单次调用合理时仍单次;路径、ID等参数必须已知;读后写、共享文件冲突、权限审批保持依赖顺序。不发明batch工具或额外规划轮次。
15
+ - 两个注入通道共用同一条 DAG 调度规则:工具调用是节点,前置结果、执行条件、审批与共享状态顺序是边。围绕当前子目标识别已满足前置条件且参数已知的有用调用,在工具/输出限制内同轮发出互不依赖的调用;结果返回后重新判断就绪集合,不重复已完成或仍在运行的工作。独立证据可一起收集,即使后续决策需要汇总它们。
16
+ - DAG 仅是内部调度模型,不要求画图、逐轮列计划或添加调度专用轮次;正常的计划、todo 和审批流程仍须遵守。只有一个就绪调用时就单次执行,不凑调用;读后写、共享状态冲突以及由前序结果决定是否/如何执行的操作仍保持顺序。
16
17
  - 同轮多个工具调用不代表真正同时执行;执行并发仍由DSH调度器决定。
17
18
 
18
19
  ## 版本、依赖与发布
19
20
 
20
- 插件版本 `0.2.1-rc.5` 跟随 DSH 的 `0.2.1` 版本线,RC 序号独立递增,不等于宿主 RC 序号。最低宿主要求 `>=0.2.1-rc.3`,Node.js `>=24.9.0`。开发锁文件以 RC.5 为基线;RC.3 的相关接口已做源码比对,完整插件测试本次运行在 RC.5 依赖上,不冒充两套运行验收。
21
+ 插件版本 `0.2.1-rc.6` 跟随 DSH 的 `0.2.1` 版本线,RC 序号独立递增,不等于宿主 RC 序号。最低宿主要求 `>=0.2.1-rc.3`,Node.js `>=24.9.0`。开发锁文件以 RC.5 为基线;RC.3 的相关接口已做源码比对,完整插件测试本次运行在 RC.5 依赖上,不冒充两套运行验收。
21
22
 
22
23
  宿主库以 peerDependencies 声明,同时列入 devDependencies 供构建测试:Cordis `4.0.5`、Schemastery `3.18.5`、DSH agent/llm/preset-registry/session-projection/system-prompt 使用 `^0.2.1-rc.3`。不将宿主服务打包为普通运行依赖,避免重复服务身份。semver caret 不跨 `0.3`,也不自动接纳不同版本号的预发布版本。
23
24
 
@@ -62,6 +63,8 @@ presetIds: [standard] # 默认;只筛选系统提示词通道的目标
62
63
 
63
64
  主要借鉴 [bash-agent #99](https://github.com/lloydzhou/bash-agent/issues/99) 的就绪批次思路及 [#100](https://github.com/lloydzhou/bash-agent/issues/100) 对实测/离线估算的讨论;同时参考 [Anthropic并行调用指南](https://platform.claude.com/docs/en/agents-and-tools/tool-use/parallel-tool-use)、[LLMCompiler](https://github.com/SqueezeAILab/LLMCompiler) 和 [Superpowers并行委派skill](https://github.com/obra/superpowers/blob/main/skills/dispatching-parallel-agents/SKILL.md)。本插件提示词为针对DSH自行编写的简短文本,不移植其执行器或照搬专用工具调用格式。
64
65
 
66
+ 提示词取舍:参考 [bash-agent 的系统提示词基准](https://github.com/lloydzhou/bash-agent/blob/main/tests/fixtures/system_prompt_expected.txt) 中“围绕当前子目标前瞻、独立证据一起收集、是否/如何执行由前序结果决定时等待、不凑调用”;借鉴 [LLMCompiler planner](https://github.com/SqueezeAILab/LLMCompiler/blob/main/src/llm_compiler/planner.py) 的动作输入依赖模型,但不引入其计划 DSL、`$id` 或 `join` 工具;采用 Superpowers 的共享状态隔离边界,而不是要求为普通工具调用创建子代理。Anthropic 指南也明确同轮调用的实际并发与执行顺序由宿主决定。
67
+
65
68
  LLMCompiler收益来自框架与调度;bash-agent历史DAG合并收益是离线估算;这些都不是本插件的实测收益。生命周期测试只证明接入/清理正确,不证明模型更快、更省。
66
69
 
67
70
  ## 临时 LLM 提示调试
package/lib/index.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  import type { Context } from '@deepseek-ai/cordis';
2
2
  import z from '@deepseek-ai/schemastery';
3
- export { BATCH_RULE, PARALLEL_TOOLS_PROMPT, SECTION_NAME, SECTION_ORDER } from './prompt.js';
3
+ export { BATCH_RULE, CONTEXT_REMINDER, PARALLEL_TOOLS_PROMPT, SECTION_NAME, SECTION_ORDER } from './prompt.js';
4
4
  export declare const name = "parallel-tools-prompt";
5
5
  export declare const inject: string[];
6
- /** Model-facing text of the optional context-channel reminder. */
7
- export declare const CONTEXT_REMINDER = "Every response: before answering, check what else the current subgoal already has ready and issue ALL ready, independent tool calls together in this one response \u2014 same-tool calls on different targets, parallel reads, independent searches and checks. Each response is one model round trip; issuing ready work one call at a time spends one round trip per call. Hold a call only for real dependencies: its arguments need an earlier result, read-before-edit, shared-file or approval ordering. A single call is fine when nothing else is ready; never invent calls to fill a batch.";
8
6
  /** Source kind of the reminder message; the host renders unknown context kinds as CONTEXT blocks. */
9
7
  export declare const CONTEXT_SOURCE_KIND = "parallel-tools-scheduling";
10
8
  declare module '@deepseek-ai/dsh-llm' {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,CAAC,MAAM,0BAA0B,CAAC;AAKzC,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE7F,eAAO,MAAM,IAAI,0BAA0B,CAAC;AAC5C,eAAO,MAAM,MAAM,UAAmD,CAAC;AAEvE,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,ykBAAokB,CAAC;AAElmB,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAE/D,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,gBAAgB;QACxB,CAAC,mBAAmB,CAAC,EAAE;YAAE,IAAI,EAAE,OAAO,mBAAmB,CAAC;YAAC,IAAI,EAAE,QAAQ,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9F;CACF;AASD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;aAkBjB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAmD/C,8EAA8E;AAC9E,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAwDxD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,CAAC,MAAM,0BAA0B,CAAC;AAKzC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE/G,eAAO,MAAM,IAAI,0BAA0B,CAAC;AAC5C,eAAO,MAAM,MAAM,UAAmD,CAAC;AAEvE,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAE/D,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,gBAAgB;QACxB,CAAC,mBAAmB,CAAC,EAAE;YAAE,IAAI,EAAE,OAAO,mBAAmB,CAAC;YAAC,IAAI,EAAE,QAAQ,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9F;CACF;AASD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;aAkBjB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAmD/C,8EAA8E;AAC9E,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAwDxD"}
package/lib/index.js CHANGED
@@ -1,12 +1,10 @@
1
1
  import { createUserMessage } from '@deepseek-ai/dsh-llm';
2
2
  import z from '@deepseek-ai/schemastery';
3
- import { PARALLEL_TOOLS_PROMPT, SECTION_NAME, SECTION_ORDER } from './prompt.js';
3
+ import { CONTEXT_REMINDER, PARALLEL_TOOLS_PROMPT, SECTION_NAME, SECTION_ORDER } from './prompt.js';
4
4
  import { installPromptDebug } from './debug.js';
5
- export { BATCH_RULE, PARALLEL_TOOLS_PROMPT, SECTION_NAME, SECTION_ORDER } from './prompt.js';
5
+ export { BATCH_RULE, CONTEXT_REMINDER, PARALLEL_TOOLS_PROMPT, SECTION_NAME, SECTION_ORDER } from './prompt.js';
6
6
  export const name = 'parallel-tools-prompt';
7
7
  export const inject = ['agents', 'systemPrompt', 'sessionProjections'];
8
- /** Model-facing text of the optional context-channel reminder. */
9
- export const CONTEXT_REMINDER = 'Every response: before answering, check what else the current subgoal already has ready and issue ALL ready, independent tool calls together in this one response — same-tool calls on different targets, parallel reads, independent searches and checks. Each response is one model round trip; issuing ready work one call at a time spends one round trip per call. Hold a call only for real dependencies: its arguments need an earlier result, read-before-edit, shared-file or approval ordering. A single call is fine when nothing else is ready; never invent calls to fill a batch.';
10
8
  /** Source kind of the reminder message; the host renders unknown context kinds as CONTEXT blocks. */
11
9
  export const CONTEXT_SOURCE_KIND = 'parallel-tools-scheduling';
12
10
  /** True when the session transcript already carries our sourced reminder. */
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,CAAC,MAAM,0BAA0B,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE7F,MAAM,CAAC,MAAM,IAAI,GAAG,uBAAuB,CAAC;AAC5C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,oBAAoB,CAAC,CAAC;AAEvE,kEAAkE;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAG,ikBAAikB,CAAC;AAElmB,qGAAqG;AACrG,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AAQ/D,6EAA6E;AAC7E,SAAS,WAAW,CAAC,KAAY;IAC/B,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CACjD,KAAK,CAAC,IAAI,KAAK,cAAc;WACzB,KAAK,CAAC,IAAmD,EAAE,MAAM,EAAE,IAAI,KAAK,mBAAmB,CAAC,CAAC;AACzG,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,C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CAAC,KAAK,EAAE;YAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;QACrG,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/lib/prompt.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  /** Stable prompt bytes: no runtime interpolation, tool inventory, or per-turn state. */
2
2
  export declare const SECTION_NAME = "parallel-tools:guidance";
3
3
  export declare const SECTION_ORDER = 1050;
4
- /** Single source of truth: also the description of skills/batch-tool-calls/SKILL.md (a test keeps them identical). */
5
- export declare const BATCH_RULE = "Before every response that uses tools, (1) list what the current subgoal already has ready, (2) issue ALL ready, independent calls together in one response (parallel reads, searches, checks), (3) split only for real dependencies (needs an earlier result, read-before-edit, shared-file or approval order). One call per response wastes a model round trip; a single call is fine when nothing else is ready, so never invent calls to fill a batch. No planning-only turn, no shell wrappers or delegation to simulate batching.";
4
+ /** Shared by both injection channels and the distributed skill description. */
5
+ export declare const BATCH_RULE = "Treat the current subgoal as a dependency DAG: tool calls are nodes; required results, conditions, approvals, and state ordering are edges. Before calling tools, identify useful calls whose prerequisites are satisfied and inputs are known. Issue all ready, independent tool calls together in one response, within tool/output limits, to reduce model round trips and enable parallel execution where supported. Gather independent evidence together even if a later decision needs all of it. Wait if an earlier result determines whether or how a call runs, or if calls could conflict through shared state (including read-before-edit). After results arrive, reassess what is ready; do not repeat completed or running work. A single call is correct when nothing else is ready; never invent work to fill a batch. Use available tools as intended, not shell wrappers or delegation solely to simulate batching. No extra turn or printed DAG solely for scheduling; preserve required plan, todo, and approval workflows.";
6
6
  /** The "Tool-call scheduling:" prefix is the verification marker searched for in system/message. */
7
- export declare const PARALLEL_TOOLS_PROMPT = "Tool-call scheduling: Before every response that uses tools, (1) list what the current subgoal already has ready, (2) issue ALL ready, independent calls together in one response (parallel reads, searches, checks), (3) split only for real dependencies (needs an earlier result, read-before-edit, shared-file or approval order). One call per response wastes a model round trip; a single call is fine when nothing else is ready, so never invent calls to fill a batch. No planning-only turn, no shell wrappers or delegation to simulate batching.";
7
+ export declare const PARALLEL_TOOLS_PROMPT = "Tool-call scheduling: Treat the current subgoal as a dependency DAG: tool calls are nodes; required results, conditions, approvals, and state ordering are edges. Before calling tools, identify useful calls whose prerequisites are satisfied and inputs are known. Issue all ready, independent tool calls together in one response, within tool/output limits, to reduce model round trips and enable parallel execution where supported. Gather independent evidence together even if a later decision needs all of it. Wait if an earlier result determines whether or how a call runs, or if calls could conflict through shared state (including read-before-edit). After results arrive, reassess what is ready; do not repeat completed or running work. A single call is correct when nothing else is ready; never invent work to fill a batch. Use available tools as intended, not shell wrappers or delegation solely to simulate batching. No extra turn or printed DAG solely for scheduling; preserve required plan, todo, and approval workflows.";
8
+ /** Same rule in the history-backed context channel, without a second policy to maintain. */
9
+ export declare const CONTEXT_REMINDER = "Treat the current subgoal as a dependency DAG: tool calls are nodes; required results, conditions, approvals, and state ordering are edges. Before calling tools, identify useful calls whose prerequisites are satisfied and inputs are known. Issue all ready, independent tool calls together in one response, within tool/output limits, to reduce model round trips and enable parallel execution where supported. Gather independent evidence together even if a later decision needs all of it. Wait if an earlier result determines whether or how a call runs, or if calls could conflict through shared state (including read-before-edit). After results arrive, reassess what is ready; do not repeat completed or running work. A single call is correct when nothing else is ready; never invent work to fill a batch. Use available tools as intended, not shell wrappers or delegation solely to simulate batching. No extra turn or printed DAG solely for scheduling; preserve required plan, todo, and approval workflows.";
8
10
  //# sourceMappingURL=prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,YAAY,4BAA4B,CAAC;AACtD,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,sHAAsH;AACtH,eAAO,MAAM,UAAU,4gBAA4gB,CAAC;AAEpiB,oGAAoG;AACpG,eAAO,MAAM,qBAAqB,kiBAAwC,CAAC"}
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,YAAY,4BAA4B,CAAC;AACtD,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,+EAA+E;AAC/E,eAAO,MAAM,UAAU,k/BAAk/B,CAAC;AAE1gC,oGAAoG;AACpG,eAAO,MAAM,qBAAqB,wgCAAwC,CAAC;AAE3E,4FAA4F;AAC5F,eAAO,MAAM,gBAAgB,k/BAAa,CAAC"}
package/lib/prompt.js CHANGED
@@ -1,8 +1,10 @@
1
1
  /** Stable prompt bytes: no runtime interpolation, tool inventory, or per-turn state. */
2
2
  export const SECTION_NAME = 'parallel-tools:guidance';
3
3
  export const SECTION_ORDER = 1050;
4
- /** Single source of truth: also the description of skills/batch-tool-calls/SKILL.md (a test keeps them identical). */
5
- export const BATCH_RULE = `Before every response that uses tools, (1) list what the current subgoal already has ready, (2) issue ALL ready, independent calls together in one response (parallel reads, searches, checks), (3) split only for real dependencies (needs an earlier result, read-before-edit, shared-file or approval order). One call per response wastes a model round trip; a single call is fine when nothing else is ready, so never invent calls to fill a batch. No planning-only turn, no shell wrappers or delegation to simulate batching.`;
4
+ /** Shared by both injection channels and the distributed skill description. */
5
+ export const BATCH_RULE = `Treat the current subgoal as a dependency DAG: tool calls are nodes; required results, conditions, approvals, and state ordering are edges. Before calling tools, identify useful calls whose prerequisites are satisfied and inputs are known. Issue all ready, independent tool calls together in one response, within tool/output limits, to reduce model round trips and enable parallel execution where supported. Gather independent evidence together even if a later decision needs all of it. Wait if an earlier result determines whether or how a call runs, or if calls could conflict through shared state (including read-before-edit). After results arrive, reassess what is ready; do not repeat completed or running work. A single call is correct when nothing else is ready; never invent work to fill a batch. Use available tools as intended, not shell wrappers or delegation solely to simulate batching. No extra turn or printed DAG solely for scheduling; preserve required plan, todo, and approval workflows.`;
6
6
  /** The "Tool-call scheduling:" prefix is the verification marker searched for in system/message. */
7
7
  export const PARALLEL_TOOLS_PROMPT = `Tool-call scheduling: ${BATCH_RULE}`;
8
+ /** Same rule in the history-backed context channel, without a second policy to maintain. */
9
+ export const CONTEXT_REMINDER = BATCH_RULE;
8
10
  //# sourceMappingURL=prompt.js.map
package/lib/prompt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,CAAC;AACtD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAElC,sHAAsH;AACtH,MAAM,CAAC,MAAM,UAAU,GAAG,ygBAAygB,CAAC;AAEpiB,oGAAoG;AACpG,MAAM,CAAC,MAAM,qBAAqB,GAAG,yBAAyB,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,CAAC;AACtD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAElC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,UAAU,GAAG,++BAA++B,CAAC;AAE1gC,oGAAoG;AACpG,MAAM,CAAC,MAAM,qBAAqB,GAAG,yBAAyB,UAAU,EAAE,CAAC;AAE3E,4FAA4F;AAC5F,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-parallel-tools-prompt",
3
- "version": "0.2.1-rc.5",
3
+ "version": "0.2.1-rc.6",
4
4
  "description": "Plan ready tool-call batches to reduce model round trips in DeepSeek Harness",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  name: batch-tool-calls
3
- description: "Before every response that uses tools, (1) list what the current subgoal already has ready, (2) issue ALL ready, independent calls together in one response (parallel reads, searches, checks), (3) split only for real dependencies (needs an earlier result, read-before-edit, shared-file or approval order). One call per response wastes a model round trip; a single call is fine when nothing else is ready, so never invent calls to fill a batch. No planning-only turn, no shell wrappers or delegation to simulate batching."
3
+ description: "Treat the current subgoal as a dependency DAG: tool calls are nodes; required results, conditions, approvals, and state ordering are edges. Before calling tools, identify useful calls whose prerequisites are satisfied and inputs are known. Issue all ready, independent tool calls together in one response, within tool/output limits, to reduce model round trips and enable parallel execution where supported. Gather independent evidence together even if a later decision needs all of it. Wait if an earlier result determines whether or how a call runs, or if calls could conflict through shared state (including read-before-edit). After results arrive, reassess what is ready; do not repeat completed or running work. A single call is correct when nothing else is ready; never invent work to fill a batch. Use available tools as intended, not shell wrappers or delegation solely to simulate batching. No extra turn or printed DAG solely for scheduling; preserve required plan, todo, and approval workflows."
4
4
  ---
5
5
 
6
6
  # Batch ready tool calls
7
7
 
8
- Each response is one model round trip. Issuing ready work one call at a time spends one round trip per call.
8
+ Think in dependencies across the current subgoal, not just the next action. The DAG is a mental model, not a graph you must print or execute with a new tool.
9
9
 
10
- Before each response:
10
+ 1. Identify useful calls whose prerequisites are satisfied and arguments are known.
11
+ 2. Issue ready, independent calls together, respecting tool/output limits and shared-state ordering.
12
+ 3. Wait when a result determines whether or how another call should run. After results arrive, reassess the ready set without duplicating completed or running work.
13
+ 4. Do not invent work or add a scheduling-only round. Required planning, todo, and approval workflows still apply.
11
14
 
12
- 1. Check what else the current subgoal already has ready: same-tool calls on different targets, parallel reads, independent searches and checks.
13
- 2. Issue every ready, independent call together in this one response.
14
- 3. Hold a call only for real dependencies: its arguments need an earlier result, read-before-edit, shared-file or approval ordering.
15
- 4. A single call is fine when nothing else is ready. Never invent calls to fill a batch.
15
+ For example, read independent files A and B together, then make the decision that needs both. If a search must discover B's path, search first rather than guessing it. Keep conflicting edits ordered; independent evidence gathering need not wait for the final decision.
16
16
 
17
- Plan the next batch after the results return; do not add a separate planning round.
17
+ Batching reduces model round trips and allows concurrency where the host supports it; it does not override the host scheduler or guarantee a speedup.