@qwen-code/qwen-harness 0.1.12 → 0.1.13

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
@@ -100,7 +100,7 @@ reports the component parameters for output handling and context management.
100
100
  | --- | --- | --- | --- | --- |
101
101
  | S: system prompt | Minimal guidance | Eight explicit engineering rules | The same rules plus steps, failure branches, and two examples | Pi's concise core; Codex engineering rules and Qwen Code mandates/workflows |
102
102
  | TS: task tools | 70 standard snake_case tools | Baseline 20 with fixed new names | The same 70 with fixed new names | Existing capabilities, Pi MCP, and Harness Corpus tool contracts |
103
- | TC: invocation | Direct tools | `run_code`, fresh JavaScript scope per call | `exec`, persistent JavaScript variables and functions | Pi's native codemode; [Fibona](https://github.com/FibonaAI/fibona-agent) native REPL pattern |
103
+ | TC: invocation | Core direct tools plus on-demand discovery | `run_code`, fresh JavaScript scope per call | `exec`, persistent JavaScript variables and functions | Pi's native discovery/codemode; [Fibona](https://github.com/FibonaAI/fibona-agent) native REPL pattern |
104
104
  | O: observations | Direct text within the feedback limit | Fixed head/tail preview, no saved-output path | Same preview plus a complete output file, read through the selected task tools | Qwen Code / OpenCode / Pi / Kimi Code saved-output paths |
105
105
  | C: context | Host-generated summary at pressure threshold | Model-authored Notes and explicit window handoff | Segment summaries, older summary rollups, and source index | Pi compaction; local Qwen Code Notes; [Headlong](https://github.com/laude-institute/headlong) tiered recap |
106
106
  | W: workflow | Autonomous loop | Investigate, submit a plan, automatically execute next turn | Optional one-level `subagent` delegation | Codex Plan mode; independent returning subagent sessions |
@@ -187,6 +187,11 @@ The concrete adaptations are:
187
187
  and two worked examples adapted from Qwen Code's workflow style. The templates are
188
188
  rewritten for this experiment. Tool names and calling protocols come from TS/TC;
189
189
  planning, delegation, and context tools remain controlled by W/C.
190
+ - **TC1:** exposes `bash`, `read_file`, `apply_patch` (create and edit), and `tool_search`
191
+ on the first request. W3 parents also expose `subagent`. Pi's ToolSearch ranks deferred
192
+ task, context, and planning tools by name and description. Matches are callable on the
193
+ next request and stay loaded on the same session branch. TS2/TS3 apply their aliases
194
+ to both the search entry point and the tool definitions it returns.
190
195
  - **TC2:** uses `@earendil-works/pi-codemode` 1.5.0 for the QuickJS sandbox, tool
191
196
  declarations, bridge, cancellation, and execution deadline. Registered nested calls
192
197
  still pass through Pi's `executeTool` and the selected O/C/W policies. Each call has
@@ -249,12 +254,20 @@ The concrete adaptations are:
249
254
  Scaling profiles use Pi's default Shell setup and omit user-configured command prefixes.
250
255
  Execution opens in the next model turn, including when the plan was submitted
251
256
  through TC2 or TC3.
252
- - **W3:** runs one child at a time. Each child starts with the supplied task description, uses the parent's
253
- model route and S/TS/TC/O/C, shares the project directory, and has no `subagent`
254
- tool. It inherits the parent's Pi settings, including retries and cache warming;
257
+ - **W3:** `subagent` starts a child and returns its `agent_id` immediately. `list_agents`
258
+ lists child status, `wait_agents` collects results (a wait timeout leaves the child
259
+ running), and `send_message` submits additional facts or constraints through Pi's
260
+ steering queue. Submission is distinct from child completion. At most one child runs
261
+ at a time; the parent can continue independent work. Each child starts with the supplied
262
+ task description, uses the parent's model route and S/TS/TC/O/C, shares the project
263
+ directory, and has none of the four collaboration tools. It inherits the parent's Pi settings, including retries and cache warming;
255
264
  C2/C3 retain their selected context policy. Child sessions are retained under the
256
265
  parent's session directory. Parent, child, and summarization usage are recorded
257
- in one ledger, with no extra call or child-count ceiling.
266
+ in one ledger, with no extra call or child-count ceiling. Creation, waits and message
267
+ submission are recorded as `scaling-agent-operation` entries. If the parent tries to
268
+ finish before collecting child results, the host waits, delivers the results through O,
269
+ and requests integration. Parent cancellation or shutdown stops live children. Completed
270
+ records survive session resume; interrupted children are recorded as cancelled.
258
271
 
259
272
  All configurations use an 8,000-character observation preview and a 64,000-character
260
273
  ceiling for an individual feedback text payload. O applies only immediately before model
@@ -286,8 +299,7 @@ tokens, and one hour per task. The token limit is checked between requests: a fi
286
299
  in-flight response can cross it, after which further calls stop. The ledger includes
287
300
  summary calls and child usage. API callers can pass shared `limits` to
288
301
  `createScalingRuntime`; configuration and limits are pinned in the session and must
289
- match on resume. TC4 (deferred discovery) is excluded because this tool registry is
290
- small and fixed.
302
+ match on resume.
291
303
 
292
304
  The local tests use Pi sessions against a deterministic local provider to exercise
293
305
  all 18 loadouts and the cross-component mechanics. Model quality and real benchmark