Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/ce-code-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The prerequisite is a peer agent CLI. The pass drives a read-only agent CLI (`co

### Requirements and trust boundary

Peers run through [acpx](https://github.com/openclaw/acpx), which talks to each agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the peer's own CLI. On native Windows, OpenCode and Pi are reported unavailable, because they cannot be launched there yet. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, that peer is reported as not run and nothing is sent.
Peers run through [acpx](https://github.com/openclaw/acpx), which talks to each agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the peer's own CLI. On native Windows, OpenCode and Pi are reported unavailable, because they cannot be launched there yet. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, that peer is reported as not run and nothing is sent. A codex peer on macOS or Linux launches `codex-acp` 2.12.0 directly through `--agent`, because the 1.x adapter acpx pins is refused by the Codex service for current models; native Windows keeps acpx's built-in 1.x launch.

Each peer runs from the repository root so it can read surrounding code. Its read requests are approved, every other permission request is denied, and each agent runs in its read-only mode where it has one. This is best effort rather than a sandbox. Codex, Claude, and the Cursor routes can read any file your account can read. Codex can also run shell commands and write files, because its adapter does not enforce read-only mode. The native Grok CLI can write files on a large diff, when it reads the diff with its own tools. The native Grok CLI can still search and fetch from the web. Claude peers start in safe mode and OpenCode peers ignore the repository's OpenCode config, so the repository's project settings and hooks do not apply to them. Pi asks no permission before using a tool, so Pi peers run with only its read, search, and list tools, no MCP servers, and none of the repository's Pi settings or extensions. On a diff too large to inline, every peer gets the path of the full staged diff instead of the diff itself. Served models are recorded from what each adapter reports. Codex, Claude, and the native Grok CLI report one; Cursor, OpenCode, and Pi routes stay unverified.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ce-doc-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ The pass embeds the document into the peer prompt and sends it to an external pr

#### Requirements and trust boundary

Peers run through [acpx](https://github.com/openclaw/acpx), which talks to each agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the peer's own CLI. On native Windows, OpenCode and Pi are reported unavailable, because they cannot be launched there yet. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, that peer is reported as not run and nothing is sent.
Peers run through [acpx](https://github.com/openclaw/acpx), which talks to each agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the peer's own CLI. On native Windows, OpenCode and Pi are reported unavailable, because they cannot be launched there yet. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, that peer is reported as not run and nothing is sent. A codex peer on macOS or Linux launches `codex-acp` 2.12.0 directly through `--agent`, because the 1.x adapter acpx pins is refused by the Codex service for current models; native Windows keeps acpx's built-in 1.x launch.

Each peer runs from an empty workspace, and every permission request it makes is denied. This is best effort rather than a sandbox. Claude, the native Grok CLI, and OpenCode cannot read files outside that empty workspace or write files. Pi asks no permission before using a tool, so Pi peers run with no tools, no MCP servers, and none of the repository's Pi settings or extensions. The native Grok CLI can still search and fetch from the web. Codex and the Cursor routes can still read any file your account can read, because their adapters do not ask permission before a read, and the Codex adapter can still write. Claude peers start in safe mode, so the repository's project settings and hooks do not apply to them. Served models are recorded from what each adapter reports. Codex, Claude, and the native Grok CLI report one; Cursor, OpenCode, and Pi routes stay unverified.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ce-pov.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Cursor Auto is labeled unverified unless a serving-model receipt exists. Without

### Requirements and trust boundary

Peers run through [acpx](https://github.com/openclaw/acpx), which talks to each agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the peer's own CLI. On native Windows, OpenCode, Antigravity, and Pi are reported unavailable, because they cannot be launched there yet. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, that peer is reported as not run and nothing is sent.
Peers run through [acpx](https://github.com/openclaw/acpx), which talks to each agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the peer's own CLI. On native Windows, OpenCode, Antigravity, and Pi are reported unavailable, because they cannot be launched there yet. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, that peer is reported as not run and nothing is sent. A codex peer on macOS or Linux launches `codex-acp` 2.12.0 directly through `--agent`, because the 1.x adapter acpx pins is refused by the Codex service for current models; native Windows keeps acpx's built-in 1.x launch.

Antigravity needs Google's Antigravity ACP runtime (`agy_acp_server.par`) on `PATH` and its `localharness_external` helper from the same release beside it, or at `ANTIGRAVITY_HARNESS_PATH`. The runtime is a separate download from the `agy` CLI; `ce-setup` links to it. The runtime has its own Google sign-in, separate from the `agy` CLI's: put `{"auth":{"type":"oauth-personal"}}` in `~/.gemini/antigravity-acp/settings.json`, then run `acpx antigravity exec ok` once in a terminal and finish the browser sign-in (the skip message gives the supported version-range command). If the runtime is not signed in, the peer is skipped before anything is sent. Each run gets a private Gemini home that is deleted afterward, and Google API key and cloud project variables are removed from its environment, so it bills your Antigravity subscription.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ce-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The example config refresh happens on its own (it is the committed template copy
- Offers to add a line about the `<root>/solutions/` knowledge store to your root agent-instructions file (`AGENTS.md`, `CLAUDE.md`, or equivalent) when the file does not already convey it, placed in the file's own structure. Then offers the standing compounding instruction from the [ce-compound guide](./ce-compound.md#make-capture-automatic), offer-first or automatic, inserted verbatim. Only when the store is tracked in this repo, and never creates the file. Then offers the `ce-noslop` chat-register instruction, inserted verbatim, so agent reports and summaries to you lead with the outcome and carry no acknowledgements, offers of more help, or process narration. Skipped only when the file already covers the report boundary, that register, and the exclusions (code, config, verbatim quotes, text you asked to post as written); a partial or unrelated writing rule still gets the offer.
- Offers, in one question, to draft or update `CODING_STANDARDS.md` and `REVIEW.md` from your recent pull requests, plus a line in your agent-instructions file pointing agents to each. See [Review docs](#review-docs).
- Repairs an invalid CE Work implementation-engine block in the config layer that supplied the bad value.
- Offers to warm the npm cache for cross-model peers when Node 22.13 or newer and `npx` are present. On approval it downloads an eligible acpx version from the supported range and the codex and claude adapters associated with its upper bound without starting them (npm still runs any install scripts they declare, as a first peer run would), reducing first-run downloads in `ce-pov`, `ce-doc-review`, `ce-code-review`, and `ce-work`; an older policy-selected acpx release may fetch different adapter packages. Declining fetches nothing; the first peer run downloads them instead.
- Offers to warm the npm cache for cross-model peers when Node 22.13 or newer and `npx` are present. On approval it downloads an eligible acpx version from the supported range, acpx's codex and claude adapters, and the codex-acp 2.12.0 adapter the codex route pins, without starting them (npm still runs any install scripts they declare, as a first peer run would), reducing first-run downloads in `ce-pov`, `ce-doc-review`, `ce-code-review`, and `ce-work`; an older policy-selected acpx release may fetch different adapter packages. Declining fetches nothing; the first peer run downloads them instead.
- Repairs an invalid `docs_root`. This one is a real project issue: CE artifacts will not be written until it is fixed. See [Artifact root](./configuration.md#artifact-root).

Each question uses the host's blocking question tool when one exists. It never silently auto-configures.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ce-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ A candidate is usable only after its unattended, write-capable, isolated-workspa

Before any repository material leaves the host, `ce-work` discloses the instruction or config source, the fixed recipient, what bounded unit material is exposed, and which restrictions are adapter-enforced versus cooperative. The adapter uses the CLI's existing authentication, receives a minimized environment, and cannot switch recipients, widen scope, push, open a PR, or choose fallback.

Every external worker runs through [acpx](https://github.com/openclaw/acpx), which talks to the agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the route's own CLI. On native Windows, OpenCode and Pi are reported unavailable, because they cannot be launched there yet. Antigravity needs its ACP runtime (`agy_acp_server.par`) on `PATH` with the `localharness_external` helper beside it, a separate download from the `agy` CLI that `ce-setup` links to; it is not yet supported on native Windows. The runtime has its own Google sign-in, separate from the `agy` CLI's: put `{"auth":{"type":"oauth-personal"}}` in `~/.gemini/antigravity-acp/settings.json`, then run `acpx antigravity exec ok` once in a terminal and finish the browser sign-in (the skip message gives the supported version-range command). Each Antigravity run uses a private settings home, so your own Antigravity or Gemini settings, skills, and API keys are not used. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, the route is reported unavailable and nothing is sent. The worker runs in the unit's workspace with its permission requests approved, so no route confines it to that workspace: each is recorded as cooperative. Codex's shell commands still run in its sandbox, with no network access and no writes outside the workspace and temp directories, but its edit tool can write elsewhere when Codex's own review approves. Claude runs in safe mode, so the checkout's project settings and hooks do not apply to it. Pi asks no permission before using a tool and ignores the checkout's Pi settings and extensions. Served models are recorded from what each adapter reports. Codex, Claude, and the native Grok CLI report one; Cursor, OpenCode, Antigravity, and Pi routes stay unverified.
Every external worker runs through [acpx](https://github.com/openclaw/acpx), which talks to the agent CLI over the Agent Client Protocol. It needs Node 22.13 or newer with `npx`, `jq`, and the route's own CLI. On native Windows, OpenCode and Pi are reported unavailable, because they cannot be launched there yet. Antigravity needs its ACP runtime (`agy_acp_server.par`) on `PATH` with the `localharness_external` helper beside it, a separate download from the `agy` CLI that `ce-setup` links to; it is not yet supported on native Windows. The runtime has its own Google sign-in, separate from the `agy` CLI's: put `{"auth":{"type":"oauth-personal"}}` in `~/.gemini/antigravity-acp/settings.json`, then run `acpx antigravity exec ok` once in a terminal and finish the browser sign-in (the skip message gives the supported version-range command). Each Antigravity run uses a private settings home, so your own Antigravity or Gemini settings, skills, and API keys are not used. npm selects the newest acpx release from the tested compatibility range that satisfies its `min-release-age`/`before` policy. The range starts at 0.18.0, which fixes unsafe read-approval handling in older releases, and stops at the newest validated release. If none qualifies, the peer is unavailable; npm policy is never relaxed. Downloads are reused from the npm cache. Resolution failures receive one metadata refresh without changing npm policy. If npm still reports a date cutoff, the worker names the `min-release-age`/`before` settings to check. When a prerequisite is missing, the route is reported unavailable and nothing is sent. A codex peer on macOS or Linux launches `codex-acp` 2.12.0 directly through `--agent`, because the 1.x adapter acpx pins is refused by the Codex service for current models; native Windows keeps acpx's built-in 1.x launch. The worker runs in the unit's workspace with its permission requests approved, so no route confines it to that workspace: each is recorded as cooperative. Codex's shell commands still run in its sandbox, with no network access and no writes outside the workspace and temp directories, but its edit tool can write elsewhere when Codex's own review approves. Claude runs in safe mode, so the checkout's project settings and hooks do not apply to it. Pi asks no permission before using a tool and ignores the checkout's Pi settings and extensions. Served models are recorded from what each adapter reports. Codex, Claude, and the native Grok CLI report one; Cursor, OpenCode, Antigravity, and Pi routes stay unverified.

Each external unit starts from a clean recorded SHA in a detached linked worktree under `/tmp/compound-engineering-<effective-uid>/ce-work/<run-id>/` (or `$TMPDIR/compound-engineering-<effective-uid>/ce-work/<run-id>/` when `/tmp` cannot host a writable private root, as in a sandbox that only allowlists `$TMPDIR`). This is same-user concurrency and accidental-mutation containment, **not a security sandbox**. Synchronous native units still use the active checkout; `ce-work` does not create a temporary worktree for every unit. If the selected plan is the only dirty path, `ce-work` discloses and creates a plan-only checkpoint commit first. Any unrelated dirt makes the external route unavailable.

Expand Down
22 changes: 20 additions & 2 deletions skills/ce-code-review/scripts/cross-model-adversarial-review.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ acpx_unavailable() { # <shared|route> <reason>
acpx_config_guard() { # <route> <cwd>
local agent file
[ "$1" = opencode ] && return 0
# The POSIX codex route launches its own --agent command, which no acpx config
# entry can replace; native Windows still uses acpx's built-in agent.
if [ "$1" = codex ]; then
case "$(uname -s 2>/dev/null)" in
MINGW*|MSYS*|CYGWIN*) ;;
*) return 0 ;;
esac
fi
agent="$(acpx_agent "$1")" || return 1
for file in "${HOME:-}/.acpx/config.json" "$2/.acpxrc.json"; do
[ -e "$file" ] || continue
Expand Down Expand Up @@ -355,8 +363,18 @@ acpx_base_argv() { # <route> <cwd> <mcp-config> <timeout-secs> <claude-wrapper
acpx_agent_argv() { # <route>
# The preflight refuses opencode when it is not installed; the bare name keeps
# --emit-adapter output readable on a machine without it.
if [ "$1" = opencode ]; then printf '%s\0' --agent "$(command -v opencode || printf opencode) acp" exec
else printf '%s\0' "$(acpx_agent "$1")" exec; fi
case "$1" in
# acpx pins codex-acp 1.x, whose bundled core the service refuses for every
# gpt-6.1/6.2 model; launch the 2.x adapter that serves them (#2098). acpx
# rejects a raw --agent launch on native Windows, so keep its own there.
codex)
case "$(uname -s 2>/dev/null)" in
MINGW*|MSYS*|CYGWIN*) printf '%s\0' "$(acpx_agent codex)" exec ;;
*) printf '%s\0' --agent "npx -y @agentclientprotocol/codex-acp@2.12.0" exec ;;
esac ;;
opencode) printf '%s\0' --agent "$(command -v opencode || printf opencode) acp" exec ;;
*) printf '%s\0' "$(acpx_agent "$1")" exec ;;
esac
}

# The run's outcome is the result of its own session/prompt request, matched by
Expand Down
Loading
Loading