@qwen-code/qwen-harness 0.1.12 → 0.1.14
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 +26 -9
- package/dist/entrypoint.js +1144 -707
- package/dist/entrypoint.js.map +4 -4
- package/package.json +1 -1
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 |
|
|
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
|
|
@@ -226,8 +231,13 @@ The concrete adaptations are:
|
|
|
226
231
|
tool-only model turns. The safe turn boundary retains Notes and user task anchors
|
|
227
232
|
without a summary call. The JSONL log is authoritative; a `.notes.md` projection
|
|
228
233
|
beside it is available for inspection. A stale checkpoint or pending user input
|
|
229
|
-
prevents a handoff.
|
|
230
|
-
|
|
234
|
+
prevents a handoff. When estimated remaining capacity is at most 6,144 tokens,
|
|
235
|
+
C2 records one instruction for that context window. Pi maps its internal `system`
|
|
236
|
+
role to the provider's supported `developer`/`system` instructions (Anthropic uses
|
|
237
|
+
the top-level `system` field). The same historical reminder is retained without
|
|
238
|
+
duplication across requests, retries, and resume; only a committed context switch
|
|
239
|
+
allows another reminder. `get_context_remaining` remains available for current
|
|
240
|
+
estimates. Its context tools follow TC.
|
|
231
241
|
- **C3:** follows Headlong's implemented tiered recap (`2e39a3f`). A segment becomes
|
|
232
242
|
a leaf summary; three adjacent summaries of one level form the next level. The
|
|
233
243
|
live context contains older coarse summaries plus newer fine summaries and recent
|
|
@@ -249,12 +259,20 @@ The concrete adaptations are:
|
|
|
249
259
|
Scaling profiles use Pi's default Shell setup and omit user-configured command prefixes.
|
|
250
260
|
Execution opens in the next model turn, including when the plan was submitted
|
|
251
261
|
through TC2 or TC3.
|
|
252
|
-
- **W3:**
|
|
253
|
-
|
|
254
|
-
|
|
262
|
+
- **W3:** `subagent` starts a child and returns its `agent_id` immediately. `list_agents`
|
|
263
|
+
lists child status, `wait_agents` collects results (a wait timeout leaves the child
|
|
264
|
+
running), and `send_message` submits additional facts or constraints through Pi's
|
|
265
|
+
steering queue. Submission is distinct from child completion. At most one child runs
|
|
266
|
+
at a time; the parent can continue independent work. Each child starts with the supplied
|
|
267
|
+
task description, uses the parent's model route and S/TS/TC/O/C, shares the project
|
|
268
|
+
directory, and has none of the four collaboration tools. It inherits the parent's Pi settings, including retries and cache warming;
|
|
255
269
|
C2/C3 retain their selected context policy. Child sessions are retained under the
|
|
256
270
|
parent's session directory. Parent, child, and summarization usage are recorded
|
|
257
|
-
in one ledger, with no extra call or child-count ceiling.
|
|
271
|
+
in one ledger, with no extra call or child-count ceiling. Creation, waits and message
|
|
272
|
+
submission are recorded as `scaling-agent-operation` entries. If the parent tries to
|
|
273
|
+
finish before collecting child results, the host waits, delivers the results through O,
|
|
274
|
+
and requests integration. Parent cancellation or shutdown stops live children. Completed
|
|
275
|
+
records survive session resume; interrupted children are recorded as cancelled.
|
|
258
276
|
|
|
259
277
|
All configurations use an 8,000-character observation preview and a 64,000-character
|
|
260
278
|
ceiling for an individual feedback text payload. O applies only immediately before model
|
|
@@ -286,8 +304,7 @@ tokens, and one hour per task. The token limit is checked between requests: a fi
|
|
|
286
304
|
in-flight response can cross it, after which further calls stop. The ledger includes
|
|
287
305
|
summary calls and child usage. API callers can pass shared `limits` to
|
|
288
306
|
`createScalingRuntime`; configuration and limits are pinned in the session and must
|
|
289
|
-
match on resume.
|
|
290
|
-
small and fixed.
|
|
307
|
+
match on resume.
|
|
291
308
|
|
|
292
309
|
The local tests use Pi sessions against a deterministic local provider to exercise
|
|
293
310
|
all 18 loadouts and the cross-component mechanics. Model quality and real benchmark
|