@enderfga/claw-orchestrator 4.5.1 → 4.7.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 +4 -3
- package/dist/bin/cli.js +1 -1
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/agy-conversation.d.ts +2 -0
- package/dist/src/agy-conversation.js +10 -0
- package/dist/src/agy-conversation.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +14 -9
- package/dist/src/index.js.map +1 -1
- package/dist/src/models.js +93 -5
- package/dist/src/models.js.map +1 -1
- package/dist/src/persistent-agy-session.d.ts +60 -0
- package/dist/src/persistent-agy-session.js +225 -0
- package/dist/src/persistent-agy-session.js.map +1 -0
- package/dist/src/persistent-cursor-session.js +2 -4
- package/dist/src/persistent-cursor-session.js.map +1 -1
- package/dist/src/persistent-custom-session.js +5 -32
- package/dist/src/persistent-custom-session.js.map +1 -1
- package/dist/src/persistent-gemini-session.js +3 -5
- package/dist/src/persistent-gemini-session.js.map +1 -1
- package/dist/src/persistent-opencode-session.js +2 -6
- package/dist/src/persistent-opencode-session.js.map +1 -1
- package/dist/src/persistent-session.js +2 -8
- package/dist/src/persistent-session.js.map +1 -1
- package/dist/src/sanitize.d.ts +23 -0
- package/dist/src/sanitize.js +57 -0
- package/dist/src/sanitize.js.map +1 -0
- package/dist/src/session-manager.d.ts +8 -0
- package/dist/src/session-manager.js +67 -20
- package/dist/src/session-manager.js.map +1 -1
- package/dist/src/types.d.ts +5 -2
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -1
- package/package.json +1 -1
- package/skills/SKILL.md +7 -5
- package/skills/references/claude-cli-tracking.md +3 -1
- package/skills/references/cli.md +4 -3
- package/skills/references/getting-started.md +1 -1
- package/skills/references/mcp.md +1 -1
- package/skills/references/multi-engine.md +47 -5
- package/skills/references/sessions.md +2 -2
- package/skills/references/tools.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enderfga/claw-orchestrator",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Claw Orchestrator — run Claude Code, Codex, Gemini, Cursor Agent, OpenCode and custom coding CLIs as one unified runtime. Drop into Hermes Agent, Claude Desktop, Cursor, Cline, Continue, Zed, Windsurf, Goose or any Model Context Protocol (MCP) host, install as an OpenClaw plugin, or run standalone. Persistent sessions, multi-agent council, ultraplan, ultrareview, autoloop, tool orchestration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/src/index.js",
|
package/skills/SKILL.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: claw-orchestrator
|
|
3
|
-
description: Manage persistent coding sessions across Claude Code, Codex, Gemini, Cursor, and OpenCode engines. Use when orchestrating multi-engine coding agents, starting/sending/stopping sessions, running multi-agent council collaborations, cross-session messaging, ultraplan deep planning, ultrareview parallel code review, autoloop autonomous workspace iteration, ultraapp building deployable web apps from a structured Q&A interview, switching models/tools at runtime, or exposing the orchestrator's 65 tools as an MCP server to Hermes Agent / Claude Desktop / Cursor / Cline / Continue / Zed / Windsurf / Goose. Triggers on "start a session", "send to session", "run council", "ultraplan", "ultrareview", "autoloop", "ultraapp", "Forge tab", "build a web app", "one-click app", "AppSpec", "autonomous iteration", "iterate until goal", "deep paper review", "auto research", "switch model", "multi-agent", "coding session", "session inbox", "cursor agent", "opencode", "mcp server", "clawo-mcp", "hermes mcp", "model context protocol", "ultracode", "dynamic workflow", "fanout", "fan-out", "best-of-N", "steer turn", "interrupt turn", "fork thread", "rollback turns".
|
|
3
|
+
description: Manage persistent coding sessions across Claude Code, Codex, Gemini, Antigravity (agy), Cursor, and OpenCode engines. Use when orchestrating multi-engine coding agents, starting/sending/stopping sessions, running multi-agent council collaborations, cross-session messaging, ultraplan deep planning, ultrareview parallel code review, autoloop autonomous workspace iteration, ultraapp building deployable web apps from a structured Q&A interview, switching models/tools at runtime, or exposing the orchestrator's 65 tools as an MCP server to Hermes Agent / Claude Desktop / Cursor / Cline / Continue / Zed / Windsurf / Goose. Triggers on "start a session", "send to session", "run council", "ultraplan", "ultrareview", "autoloop", "ultraapp", "Forge tab", "build a web app", "one-click app", "AppSpec", "autonomous iteration", "iterate until goal", "deep paper review", "auto research", "switch model", "multi-agent", "coding session", "session inbox", "cursor agent", "opencode", "mcp server", "clawo-mcp", "hermes mcp", "model context protocol", "ultracode", "dynamic workflow", "fanout", "fan-out", "best-of-N", "steer turn", "interrupt turn", "fork thread", "rollback turns".
|
|
4
4
|
metadata:
|
|
5
5
|
{
|
|
6
6
|
"openclaw":
|
|
7
7
|
{
|
|
8
8
|
"emoji": "🤖",
|
|
9
|
-
"requires": { "anyBins": ["claude", "codex", "gemini", "agent"] },
|
|
9
|
+
"requires": { "anyBins": ["claude", "codex", "gemini", "agy", "agent"] },
|
|
10
10
|
"install":
|
|
11
11
|
[
|
|
12
12
|
{
|
|
@@ -52,6 +52,7 @@ Claw Orchestrator — persistent multi-engine coding session manager for claw-st
|
|
|
52
52
|
| `claude` | `claude` | Persistent subprocess | Multi-turn, complex tasks |
|
|
53
53
|
| `codex` | `codex exec` | Per-message spawn | One-shot execution |
|
|
54
54
|
| `gemini` | `gemini -p` | Per-message spawn | One-shot execution |
|
|
55
|
+
| `agy` | `agy -p` | Per-message spawn | Antigravity (Gemini CLI successor); plain-text, auto conversation resume |
|
|
55
56
|
| `cursor` | `agent -p` | Per-message spawn | One-shot execution |
|
|
56
57
|
| `opencode` | `opencode run` | Per-message spawn | Provider-agnostic (`provider/model`) |
|
|
57
58
|
|
|
@@ -62,6 +63,7 @@ Claw Orchestrator — persistent multi-engine coding session manager for claw-st
|
|
|
62
63
|
session_start({ name: "myproject", cwd: "/path/to/project", engine: "claude" })
|
|
63
64
|
session_start({ name: "codex-task", cwd: "/path/to/project", engine: "codex" })
|
|
64
65
|
session_start({ name: "gemini-task", cwd: "/path/to/project", engine: "gemini" })
|
|
66
|
+
session_start({ name: "agy-task", cwd: "/path/to/project", engine: "agy" })
|
|
65
67
|
session_start({ name: "cursor-task", cwd: "/path/to/project", engine: "cursor" })
|
|
66
68
|
session_start({ name: "opencode-task", cwd: "/path/to/project", engine: "opencode", model: "anthropic/claude-sonnet-4" })
|
|
67
69
|
|
|
@@ -80,9 +82,9 @@ session_stop({ name: "myproject" })
|
|
|
80
82
|
|
|
81
83
|
| Parameter | Description |
|
|
82
84
|
|-----------|-------------|
|
|
83
|
-
| `engine` | `claude` (default), `codex`, `gemini`, `cursor`, `opencode` |
|
|
84
|
-
| `model` | Model name or alias (`opus`, `sonnet`, `haiku`, `gpt-5.5`, `gemini-pro`, `composer-2`) |
|
|
85
|
-
| `permissionMode` | `acceptEdits`, `auto`, `plan`, `bypassPermissions`, `default` |
|
|
85
|
+
| `engine` | `claude` (default), `codex`, `gemini`, `agy`, `cursor`, `opencode` |
|
|
86
|
+
| `model` | Model name or alias (`fable`, `opus`, `sonnet`, `haiku`, `gpt-5.5`, `gemini-pro`, `composer-2`) |
|
|
87
|
+
| `permissionMode` | `acceptEdits`, `auto`, `plan`, `bypassPermissions`, `manual`, `dontAsk` (`default` = legacy alias for `manual`) |
|
|
86
88
|
| `effort` | `low`, `medium`, `high`, `xhigh`, `max`, `auto` (`xhigh` is Opus 4.7-only, between `high` and `max`) |
|
|
87
89
|
| `maxBudgetUsd` | Cost limit in USD |
|
|
88
90
|
| `allowedTools` | List of allowed tool names |
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This document tracks which Claude Code CLI version Claw Orchestrator is currently synced to, and which features have been integrated.
|
|
4
4
|
|
|
5
|
-
## Currently tracked: **Claude Code CLI 2.1.
|
|
5
|
+
## Currently tracked: **Claude Code CLI 2.1.206** (as of 2026-07-10, plugin v4.7.0)
|
|
6
6
|
|
|
7
7
|
## Sync history
|
|
8
8
|
|
|
9
9
|
| Plugin Version | Claude CLI Version | Date | Notable integrations |
|
|
10
|
+
| v4.7.0 | 2.1.206 | 2026-07-10 | **Antigravity engine ships + permission-mode sync.** Main feature is the community-contributed first-class `engine: 'agy'` (PR #71, reviewed + hardened: layered resume-ID gating, `agy/` prefix routing, shared `sanitize.ts` across all six engines, ENGINE_TYPES single source). Weekly CLI sync: CC 2.1.200 renamed the `default` permission mode to **`manual`** — verified against 2.1.206 that the choices are now `acceptEdits/auto/bypassPermissions/manual/dontAsk/plan`, that `default` is still accepted (hidden compat), and that **`delegate` is hard-rejected at spawn** — so PermissionMode gains `manual`, drops `delegate`, and agy/gemini map `manual` like `default` (→ `--sandbox`). Codex 0.143.0: empirically re-tested `-c model_reasoning_effort=max` — still 400-rejected for gpt-5.5 (the "first-class max" note is Bedrock GPT-5.6-only), so the `max`→`xhigh` map stays. GPT-5.6 Sol/Terra/Luna registered with official pricing ($5/$30, $2.50/$15, $1/$6; 1M/1M/400K ctx) after the user reported using it — it's a limited preview on API/Codex-auth paths (empirically: ChatGPT-account Codex auth gets a 400, which is why the first probe on this box misread it as Bedrock-only; lesson — an auth-path rejection is not model non-existence). Codex default stays gpt-5.5. Free upside: CC 2.1.205 fixed `--json-schema` invalid-schema silent fallback + `format` keyword rejection; CC 2.1.203 fixed background sessions dropping shell-exported `ANTHROPIC_BASE_URL`. Pins → CC 2.1.206 / Codex 0.143.0 (installed; npm has 0.144.1, exec surface unchanged per release notes). |
|
|
11
|
+
| v4.6.0 | 2.1.199 | 2026-07-03 | **Model registry sync — Claude Fable 5.** Registered `claude-fable-5` (first Claude 5-family model, tier above Opus; standard $10/$50 per Mtok, cache read $1, full 1M context at standard rates per the official pricing page) with new `fable` alias; taught the `isClaudeModel`/`resolveProvider` heuristics to recognize `fable`/`mythos` strings (they only matched claude/opus/sonnet/haiku). Mythos 5 not listed (same price, limited availability). CC 2.1.198–199 are subagent/background-agent reliability fixes — no invocation-surface change; free upside for us: subagent partial output on rate-limit/server error is now returned instead of silently dropped, and API errors in subagents are reported to the parent. Codex unchanged (0.142.5 is a log-scrub patch; pin stays 0.142.4 as installed). |
|
|
10
12
|
| v4.5.0 | 2.1.197 | 2026-07-01 | **Model registry sync — Claude Sonnet 5 + gpt-5.5 pricing.** CLI 2.1.197 shipped Sonnet 5 as the new default (native 1M-token context; standard $3/$15 per Mtok, launch promo $2/$10 through 2026-08-31 — we price the standard rate). Registered `claude-sonnet-5` in `models.ts` and moved the `sonnet` alias to it (was pinned to `claude-sonnet-4-6`), so `--model sonnet` tracks the CLI's own default and cost/context accounting stays correct; `claude-sonnet-4-6` stays selectable by full id. Also corrected `gpt-5.5` (the default Codex model) from placeholder pricing to OpenAI's published $5/$30 per Mtok + 1M context, and updated docs/examples off `gpt-5.4`. The CC 2.1.179→2.1.197 and Codex 0.138→0.142.x ranges are otherwise bug-fix / TUI / remote-executor / plugin-marketplace work that doesn't touch our invocation flags or the stream-json / codex-exec event schema — no wrapper change. Free upside (no code change): 2.1.181 fixed prompt-caching on custom `ANTHROPIC_BASE_URL` (helps proxy mode), 2.1.187 fixed `--json-schema` StructuredOutput infinite-recall, 2.1.196 turned the 5-min streaming idle watchdog on by default; Codex 0.139 preserves `oneOf`/`allOf` in `--output-schema`. Bumped tested versions Claude 2.1.197 / Codex 0.142.4. |
|
|
11
13
|
| v4.3.0 | 2.1.178 | 2026-06-16 | **Parity batch 2 + legacy-subsystem upgrades (local-only, no cloud).** Claude `--fallback-model` array form (CSV, verified via `claude --help`). Codex-app `codex_threads` (`thread/list`) and `thread/resume` on start when `resumeSessionId` is set (param shapes from `generate-json-schema`). Council agents gain per-agent `effort`/`ultracode`. `ultrareview` re-implemented on the new cross-engine `fanout` primitive (opt-in `engines`, default claude-only). Consensus parsing exposes match source for observability. Dropped on purpose: `codex cloud exec`/best-of-N (cloud/managed — loses local control), `--bg` (we own the subprocess), `--output-last-message` (we already capture final text), ultraplan `ultracode` (violates its plan-only contract). Autoloop mid-turn steer deferred — the loop is strictly sequential (Coder fully completes before the Reviewer runs), so steer would always fall back to a fresh turn; a real version needs concurrent review. |
|
|
12
14
|
| v4.2.0 | 2.1.178 | 2026-06-16 | **`ultracode` integration + binary-verified parity pass.** Added the `ultracode` option on `session_start` — Claude Code's dynamic-workflow mode, wired as the `ultracode: true` settings key merged into `--settings` (confirmed by spawning: it activates `workflow_agent` events in headless stream-json; `--effort ultracode` is rejected by the CLI). Added `claude_agents_list` (wraps `claude agents --json`). Verified against the binary that `claude continue/respawn/stop/logs` do **not** exist as headless subcommands (session continuation stays on `--resume`). Codex 0.137 side: app-server RPC tools `codex_interrupt`/`codex_steer`/`codex_fork`/`codex_rollback`/`codex_models`, `codex exec` reasoning-effort (`-c model_reasoning_effort`) + `--profile` passthrough, and a cross-engine `fanout_*` primitive. Bumped tested versions Claude 2.1.178 / Codex 0.137.0. |
|
package/skills/references/cli.md
CHANGED
|
@@ -43,7 +43,8 @@ The server exposes an OpenAI-compatible chat completions endpoint, enabling any
|
|
|
43
43
|
- `claude-*`, `opus`, `sonnet`, `haiku` → Claude engine
|
|
44
44
|
- `gpt-*` → Codex engine
|
|
45
45
|
- `composer-*` → Cursor engine
|
|
46
|
-
- `gemini
|
|
46
|
+
- `gemini-3.5-flash`, `gemini-3.1-pro`, `agy-*`, `agy/*` → Antigravity (`agy`) engine
|
|
47
|
+
- other `gemini-*` → Gemini engine
|
|
47
48
|
|
|
48
49
|
**CORS:** `/v1/` paths allow cross-origin requests by default. Set `OPENCLAW_CORS_ORIGINS=*` to allow all origins on all paths.
|
|
49
50
|
|
|
@@ -60,9 +61,9 @@ clawo session-start [name] [options]
|
|
|
60
61
|
| Flag | Description |
|
|
61
62
|
|------|-------------|
|
|
62
63
|
| `-d, --cwd <dir>` | Working directory |
|
|
63
|
-
| `-e, --engine <engine>` | Engine: `claude` (default), `codex`,
|
|
64
|
+
| `-e, --engine <engine>` | Engine: `claude` (default), `codex`, `codex-app`, `gemini`, `agy`, `cursor`, `opencode`, or `custom` |
|
|
64
65
|
| `-m, --model <model>` | Model name or alias |
|
|
65
|
-
| `--permission-mode <mode>` | `acceptEdits`, `plan`, `auto`, `bypassPermissions` |
|
|
66
|
+
| `--permission-mode <mode>` | `acceptEdits`, `plan`, `auto`, `bypassPermissions`, `manual`, `dontAsk` |
|
|
66
67
|
| `--effort <level>` | `low`, `medium`, `high`, `max`, `auto` |
|
|
67
68
|
| `--allowed-tools <tools>` | Comma-separated tool whitelist |
|
|
68
69
|
| `--max-turns <n>` | Max agent loop turns |
|
|
@@ -87,7 +87,7 @@ Quick config for any client:
|
|
|
87
87
|
|---------|-------|
|
|
88
88
|
| API Base URL | `http://127.0.0.1:18796/v1` |
|
|
89
89
|
| API Key | The value of `OPENCLAW_SERVER_TOKEN`, or any string if auth is disabled |
|
|
90
|
-
| Model | `claude-opus-4-8`, `claude-sonnet-5`, `gpt-5.5`, `gemini-3.1-pro-preview`, etc. |
|
|
90
|
+
| Model | `claude-fable-5`, `claude-opus-4-8`, `claude-sonnet-5`, `gpt-5.5`, `gemini-3.1-pro-preview`, etc. |
|
|
91
91
|
|
|
92
92
|
See [openai-compat.md](./openai-compat.md) for the full session-keying rules, `X-Session-Reset` semantics, the legacy-heuristic env var, and the `/v1/sessions` inspection endpoint.
|
|
93
93
|
|
package/skills/references/mcp.md
CHANGED
|
@@ -223,7 +223,7 @@ Hosts deliberately do not forward your full shell environment to MCP subprocesse
|
|
|
223
223
|
| `CLAWO_MCP_TOOLS` | Comma-separated allowlist of tool names; unlisted tools are not advertised |
|
|
224
224
|
| `CLAWO_NO_EMBEDDED_SERVER` | Suppresses port 18796 binding. `clawo-mcp` sets this automatically |
|
|
225
225
|
|
|
226
|
-
The engines themselves (`claude`, `codex`, `gemini`, `agent`, `opencode`) must also be installed and authenticated on the host machine — `clawo-mcp` spawns them as subprocesses, it does not bundle them.
|
|
226
|
+
The engines themselves (`claude`, `codex`, `gemini`, `agy`, `agent`, `opencode`) must also be installed and authenticated on the host machine — `clawo-mcp` spawns them as subprocesses, it does not bundle them.
|
|
227
227
|
|
|
228
228
|
---
|
|
229
229
|
|
|
@@ -14,6 +14,8 @@ SessionManager
|
|
|
14
14
|
│ └── Wraps: codex app-server --listen stdio:// (long-running JSON-RPC; required for /goal)
|
|
15
15
|
├── engine: 'gemini' → PersistentGeminiSession
|
|
16
16
|
│ └── Wraps: gemini -p --output-format stream-json (per-message spawning)
|
|
17
|
+
├── engine: 'agy' → PersistentAgySession
|
|
18
|
+
│ └── Wraps: agy -p (Google Antigravity CLI, per-message spawning, plain-text output)
|
|
17
19
|
├── engine: 'cursor' → PersistentCursorSession
|
|
18
20
|
│ └── Wraps: agent -p --force --trust --output-format stream-json (per-message spawning)
|
|
19
21
|
├── engine: 'opencode' → PersistentOpencodeSession
|
|
@@ -26,7 +28,7 @@ SessionManager
|
|
|
26
28
|
|
|
27
29
|
### Claude Code (`engine: 'claude'`)
|
|
28
30
|
|
|
29
|
-
Default engine. Long-running subprocess with streaming JSON I/O. Tested with Claude Code CLI **2.1.
|
|
31
|
+
Default engine. Long-running subprocess with streaming JSON I/O. Tested with Claude Code CLI **2.1.206**.
|
|
30
32
|
|
|
31
33
|
- Persistent multi-turn conversations
|
|
32
34
|
- Real-time streaming (text, tool_use, tool_result, system events)
|
|
@@ -52,7 +54,7 @@ await manager.startSession({
|
|
|
52
54
|
|
|
53
55
|
### OpenAI Codex (`engine: 'codex'`)
|
|
54
56
|
|
|
55
|
-
Wraps the `codex exec` subcommand. Each `send()` spawns a new process. Tested with `codex` CLI **0.
|
|
57
|
+
Wraps the `codex exec` subcommand. Each `send()` spawns a new process. Tested with `codex` CLI **0.143.0**.
|
|
56
58
|
|
|
57
59
|
- Non-interactive execution via `codex exec --sandbox workspace-write --json` (replaces the deprecated `--full-auto` flag from earlier Codex versions)
|
|
58
60
|
- Real per-turn `usage` from the `turn.completed` JSON event (input, output, cached, reasoning tokens)
|
|
@@ -126,6 +128,45 @@ await manager.startSession({
|
|
|
126
128
|
});
|
|
127
129
|
```
|
|
128
130
|
|
|
131
|
+
### Google Antigravity (`engine: 'agy'`)
|
|
132
|
+
|
|
133
|
+
Wraps Google's **Antigravity CLI** (`agy`) — the successor to Gemini CLI (consumer
|
|
134
|
+
Gemini CLI tiers stopped serving 2026-06-18). Each `send()` spawns a new process
|
|
135
|
+
in print mode. Verified against `agy` **1.0.16**.
|
|
136
|
+
|
|
137
|
+
- One-shot execution per message (no persistent subprocess)
|
|
138
|
+
- **Plain-text output** — agy has no structured/stream-json mode, so stdout is
|
|
139
|
+
forwarded as streaming text and **token counts are estimated** (~4 chars/token)
|
|
140
|
+
- **Real conversation continuity**: agy logs `Created conversation <uuid>` to its
|
|
141
|
+
log file; the engine passes a private `--log-file`, harvests the ID after the
|
|
142
|
+
first turn, and resumes with `--conversation <id>` on subsequent sends. Seed it
|
|
143
|
+
externally via `resumeSessionId` (bare UUID only); read it back from
|
|
144
|
+
`getStats().agyConversationId`
|
|
145
|
+
- Permission modes: `bypassPermissions` → `--dangerously-skip-permissions`,
|
|
146
|
+
`default` → `--sandbox` (terminal-restricted). Other modes run agy's own
|
|
147
|
+
approval flow, which blocks in headless print mode — use `bypassPermissions`
|
|
148
|
+
for autonomous work
|
|
149
|
+
- agy enforces its own print timeout (default 5m); the engine derives
|
|
150
|
+
`--print-timeout` from the send timeout so the wrapper timer decides
|
|
151
|
+
- Unknown `--model` slugs do **not** error — agy silently falls back to its
|
|
152
|
+
default model. Registered slugs: `gemini-3.5-flash` (alias `agy-flash`),
|
|
153
|
+
`gemini-3.1-pro` (alias `agy-pro`); agy also proxies Claude and GPT-OSS
|
|
154
|
+
models (`agy models` lists them) which pass through unregistered. The
|
|
155
|
+
`agy/` prefix forces Antigravity routing for provider-like model strings
|
|
156
|
+
- Consumer auth is a one-time `agy` Google OAuth login (subscription quotas, no
|
|
157
|
+
per-token billing — registry pricing mirrors Gemini API rates as a value proxy)
|
|
158
|
+
- Requires `agy` installed: `curl -fsSL https://antigravity.google/cli/install.sh | bash`
|
|
159
|
+
- Binary: `agy` (set `AGY_BIN` env var to override)
|
|
160
|
+
|
|
161
|
+
```typescript
|
|
162
|
+
await manager.startSession({
|
|
163
|
+
name: 'antigravity-task',
|
|
164
|
+
engine: 'agy',
|
|
165
|
+
model: 'gemini-3.5-flash',
|
|
166
|
+
cwd: '/project',
|
|
167
|
+
});
|
|
168
|
+
```
|
|
169
|
+
|
|
129
170
|
### Cursor Agent (`engine: 'cursor'`)
|
|
130
171
|
|
|
131
172
|
Wraps the Cursor Agent CLI (`agent`) with `--print --force --output-format stream-json`. Each `send()` spawns a new process.
|
|
@@ -384,9 +425,10 @@ await manager.startSession({
|
|
|
384
425
|
|
|
385
426
|
### Example: Google Antigravity CLI (`agy`)
|
|
386
427
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
428
|
+
> **Note:** `agy` now has first-class support — use [`engine: 'agy'`](#google-antigravity-engine-agy)
|
|
429
|
+
> instead, which adds conversation resume and timeout coherence the recipe below
|
|
430
|
+
> lacks. This recipe remains as a reference for driving older agy builds or
|
|
431
|
+
> forks with a diverged flag surface:
|
|
390
432
|
|
|
391
433
|
```typescript
|
|
392
434
|
await manager.startSession({
|
|
@@ -29,9 +29,9 @@ Key options:
|
|
|
29
29
|
|
|
30
30
|
| Option | Description |
|
|
31
31
|
|--------|-------------|
|
|
32
|
-
| `engine` | `'claude'` (default), `'codex'`,
|
|
32
|
+
| `engine` | `'claude'` (default), `'codex'`, `'codex-app'`, `'gemini'`, `'agy'`, `'cursor'`, `'opencode'`, or `'custom'` — see [Multi-Engine](./multi-engine.md) |
|
|
33
33
|
| `model` | Model alias (`opus`, `sonnet`, `haiku`, `gemini-pro`) or full name |
|
|
34
|
-
| `permissionMode` | `acceptEdits`, `bypassPermissions`, `plan`, `auto`, `default` |
|
|
34
|
+
| `permissionMode` | `acceptEdits`, `bypassPermissions`, `plan`, `auto`, `manual`, `dontAsk` (`default` = legacy alias for `manual`) |
|
|
35
35
|
| `effort` | `low`, `medium`, `high`, `max`, `auto` |
|
|
36
36
|
| `bare` | Skip hooks, LSP, auto-memory, CLAUDE.md |
|
|
37
37
|
| `worktree` | Run in isolated git worktree |
|
|
@@ -12,9 +12,9 @@ Start a persistent coding session with full CLI flag support.
|
|
|
12
12
|
|-----------|------|-------------|
|
|
13
13
|
| `name` | string | Session name (auto-generated if omitted) |
|
|
14
14
|
| `cwd` | string | Working directory |
|
|
15
|
-
| `engine` | `'claude'` \| `'codex'` \| `'gemini'` \| `'cursor'` \| `'opencode'` \| `'custom'` | Engine to use (default: `claude`). `opencode` wraps sst/opencode (pass model as `provider/model`). Use `custom` with `customEngine` for any CLI. |
|
|
15
|
+
| `engine` | `'claude'` \| `'codex'` \| `'codex-app'` \| `'gemini'` \| `'agy'` \| `'cursor'` \| `'opencode'` \| `'custom'` | Engine to use (default: `claude`). `agy` wraps Google Antigravity CLI. `opencode` wraps sst/opencode (pass model as `provider/model`). Use `custom` with `customEngine` for any CLI. |
|
|
16
16
|
| `model` | string | Model alias or full name |
|
|
17
|
-
| `permissionMode` | string | `acceptEdits`, `bypassPermissions`, `plan`, `auto`, `default` |
|
|
17
|
+
| `permissionMode` | string | `acceptEdits`, `bypassPermissions`, `plan`, `auto`, `manual`, `dontAsk` (`default` = legacy alias for `manual`) |
|
|
18
18
|
| `effort` | string | `low`, `medium`, `high`, `max`, `auto` |
|
|
19
19
|
| `allowedTools` | string[] | Tools to auto-approve |
|
|
20
20
|
| `disallowedTools` | string[] | Tools to deny |
|