@enderfga/claw-orchestrator 4.1.2 → 4.3.0
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 +11 -7
- package/dist/src/consensus.d.ts +9 -0
- package/dist/src/consensus.js +11 -3
- package/dist/src/consensus.js.map +1 -1
- package/dist/src/council.js +9 -2
- package/dist/src/council.js.map +1 -1
- package/dist/src/fanout.d.ts +81 -0
- package/dist/src/fanout.js +146 -0
- package/dist/src/fanout.js.map +1 -0
- package/dist/src/index.js +205 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/persistent-codex-app-session.d.ts +34 -0
- package/dist/src/persistent-codex-app-session.js +112 -3
- package/dist/src/persistent-codex-app-session.js.map +1 -1
- package/dist/src/persistent-codex-session.d.ts +8 -0
- package/dist/src/persistent-codex-session.js +39 -2
- package/dist/src/persistent-codex-session.js.map +1 -1
- package/dist/src/persistent-session.d.ts +8 -0
- package/dist/src/persistent-session.js +34 -4
- package/dist/src/persistent-session.js.map +1 -1
- package/dist/src/session-manager.d.ts +59 -0
- package/dist/src/session-manager.js +172 -20
- package/dist/src/session-manager.js.map +1 -1
- package/dist/src/types.d.ts +18 -1
- package/openclaw.plugin.json +10 -0
- package/package.json +2 -2
- package/skills/SKILL.md +9 -3
- package/skills/references/claude-cli-tracking.md +3 -1
- package/skills/references/multi-engine.md +8 -3
- package/skills/references/sessions.md +18 -0
- package/skills/references/tools.md +63 -1
|
@@ -31,6 +31,7 @@ Start a persistent coding session with full CLI flag support.
|
|
|
31
31
|
| `jsonSchema` | string | JSON Schema for structured output. Claude: `--json-schema` (inline). Codex: `--output-schema` (written to a temp file, requires Codex 0.132+). Other engines ignore it. |
|
|
32
32
|
| `mcpConfig` | string \| string[] | MCP server config file(s) |
|
|
33
33
|
| `settings` | string | Settings.json path or inline JSON |
|
|
34
|
+
| `ultracode` | boolean | Claude only. Enable "ultracode" / dynamic workflows — Claude plans a JS orchestration script per substantive task and fans out to subagents. Injected as the `ultracode:true` settings key (merged into `settings`), **not** a `--effort` value (the CLI rejects `--effort ultracode`). |
|
|
34
35
|
| `noSessionPersistence` | boolean | Do not save session to disk |
|
|
35
36
|
| `betas` | string \| string[] | Custom beta headers |
|
|
36
37
|
| `enableAgentTeams` | boolean | Enable experimental agent teams |
|
|
@@ -210,7 +211,7 @@ Returns the regular turn result; goal info is in the assistant's reply text.
|
|
|
210
211
|
|
|
211
212
|
---
|
|
212
213
|
|
|
213
|
-
## Codex (
|
|
214
|
+
## Codex (13)
|
|
214
215
|
|
|
215
216
|
Tools targeting OpenAI's `codex` CLI. The `codex_resume` and `codex_review` tools are one-shot wrappers and work without a managed session. The `codex_goal_*` tools require a session started with `engine: "codex-app"` (see [multi-engine.md](./multi-engine.md)) — the legacy `engine: "codex"` (which uses `codex exec`) has no slash-command surface.
|
|
216
217
|
|
|
@@ -283,6 +284,67 @@ Returns `{ ok, text, goal }`.
|
|
|
283
284
|
|
|
284
285
|
> **Stability note:** Codex's `goals` feature is flagged "under development" in 0.128.0 and has known bugs (issue #20591). The slash-command parsing on the server side may also evolve. The wrapper is intentionally a thin sugar layer so upstream changes only affect the slash-text we send, not the protocol structure.
|
|
285
286
|
|
|
287
|
+
### `codex_interrupt` / `codex_steer` / `codex_fork` / `codex_rollback` / `codex_models`
|
|
288
|
+
|
|
289
|
+
Codex app-server v2 RPCs (require `engine: "codex-app"`). Method names + param shapes verified against `codex app-server generate-json-schema` (Codex 0.137).
|
|
290
|
+
|
|
291
|
+
| Tool | RPC | Params | Returns |
|
|
292
|
+
|------|-----|--------|---------|
|
|
293
|
+
| `codex_interrupt` | `turn/interrupt` | `name` | `{ ok, interrupted }` — cancels the in-flight turn (no-op if idle) |
|
|
294
|
+
| `codex_steer` | `turn/steer` | `name`, `message` | `{ ok, steered, turnId? , text? }` — adds input to the in-flight turn; falls back to a normal turn when idle |
|
|
295
|
+
| `codex_fork` | `thread/fork` | `name` | `{ ok, threadId }` — branches the thread; returns the forked id |
|
|
296
|
+
| `codex_rollback` | `thread/rollback` | `name`, `numTurns` | `{ ok, numTurns }` — drops the last N turns |
|
|
297
|
+
| `codex_models` | `model/list` | `name` | `{ ok, models }` — incl. each model's `supportedReasoningEfforts` |
|
|
298
|
+
| `codex_threads` | `thread/list` | `name`, `searchTerm?`, `cwd?`, `archived?`, `cursor?`, `limit?` | `{ ok, data, nextCursor }` — list threads with filters + pagination |
|
|
299
|
+
|
|
300
|
+
To **resume** a codex-app thread, start a session with `engine: "codex-app"` and
|
|
301
|
+
`resumeSessionId: "<threadId>"` — it loads the existing thread via `thread/resume` instead of
|
|
302
|
+
opening a fresh one.
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## Claude CLI (1)
|
|
307
|
+
|
|
308
|
+
### `claude_agents_list`
|
|
309
|
+
|
|
310
|
+
Wraps `claude agents --json` — lists Claude Code background agent sessions (state/model/title/progress). One-shot spawn, not tied to a managed session. (`claude continue/respawn/stop/logs` do not exist as headless subcommands; use `resumeSessionId` on `session_start` to resume.)
|
|
311
|
+
|
|
312
|
+
| Parameter | Type | Description |
|
|
313
|
+
|-----------|------|-------------|
|
|
314
|
+
| `all` | boolean | Include completed sessions (`--all`). |
|
|
315
|
+
| `cwd` | string | Scope to sessions started under this directory (`--cwd`). |
|
|
316
|
+
|
|
317
|
+
Returns `{ ok, agents }`.
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## Fan-out (3)
|
|
322
|
+
|
|
323
|
+
Run one task across N engine/model agents **in parallel** and collect their answers, with an optional synthesis pass. Cross-engine best-of-N / diverse-perspective primitive — no rounds, votes, or git worktrees. For isolated parallel *editing*, use Council.
|
|
324
|
+
|
|
325
|
+
### `fanout_start`
|
|
326
|
+
|
|
327
|
+
| Parameter | Type | Required | Description |
|
|
328
|
+
|-----------|------|----------|-------------|
|
|
329
|
+
| `task` | string | yes | Shared prompt sent to every agent (unless an agent overrides via its own `prompt`). |
|
|
330
|
+
| `projectDir` | string | yes | Working directory all agents run in. |
|
|
331
|
+
| `agents` | array | yes | Specs: `{ name, engine?, model?, prompt?, baseUrl?, permissionMode?, customEngine? }`. |
|
|
332
|
+
| `synthesize` | boolean | | Run a final synthesis pass over the successful results (needs ≥2). |
|
|
333
|
+
| `synthesisModel` / `synthesisEngine` | string | | Model/engine for the synthesis pass (default engine `claude`). |
|
|
334
|
+
| `agentTimeoutMs` | number | | Per-agent timeout (default 600000). |
|
|
335
|
+
| `maxTurnsPerAgent` | number | | Max agent loop turns (default 30). |
|
|
336
|
+
| `maxBudgetUsd` | number | | Per-agent spend cap. |
|
|
337
|
+
|
|
338
|
+
Runs in the background; returns `{ ok, id, status, ... }`. Poll with `fanout_status`.
|
|
339
|
+
|
|
340
|
+
### `fanout_status`
|
|
341
|
+
|
|
342
|
+
Poll a fan-out by `id`. Returns `{ ok, id, status, results: [{ agent, engine, model, ok, output, error?, durationMs }], synthesis? }`.
|
|
343
|
+
|
|
344
|
+
### `fanout_abort`
|
|
345
|
+
|
|
346
|
+
Abort a running fan-out by `id` (already-started agents finish; synthesis is skipped).
|
|
347
|
+
|
|
286
348
|
---
|
|
287
349
|
|
|
288
350
|
## Agent Teams (3)
|