On this page

On this page

Tools

Auto Review

autoreview is an optional bundled plugin tool for the canonical Auto Review skill. The installed helper captures and rechecks repository changes inside the calling session's sandbox. The Gateway runs the selected reviewer through restricted openclaw agent exec, then returns the complete output to the same helper for validation.

Enable

Enable the autoreview plugin and add autoreview to the intended agent's tool policy. If that agent has a sandbox tool allowlist, allow it there too. Existing deny rules still apply.

json
{  "plugins": { "entries": { "autoreview": { "enabled": true } } },  "tools": { "alsoAllow": ["autoreview"] }}

Install a current canonical Auto Review package in the Gateway user’s ~/.agents/skills/autoreview, through the managed skill installation, or in a skill library. The personal ~/.agents/skills directory is discovered only when the Gateway uses its default state directory; a custom state directory needs a managed installation or skill library. The sandbox must provide /usr/bin/python3 and a protected, read-only copy of the selected package. A repository-local skill named autoreview does not qualify. The tool is unavailable when those bindings or the calling user's model authority are absent. The backend must enforce read-only resource mounts; SSH sandbox file uploads do not qualify. Mounts or tmpfs overlays that replace the selected package also make it unavailable. The original selected package must not be writable through the guest's workspace or mounts. A read-only synchronized copy does not make a guest-writable source trusted. Installer symlinks remain supported when their canonical targets are host-only or read-only; writable aliases of either the original or copied package disqualify it. Move an affected installation to a host-only or read-only location.

The canonical skill discovers the enabled tool and calls it at its required checkpoint. If the tool is unavailable, enable the narrow capability or repair the installation. Do not substitute host shell access or a reviewer child.

Inputs and results

Supply the review target and only explicitly requested overrides. The installed canonical helper owns model, thinking, severity, prompts, pass planning, and review timeout settings. Updating that helper updates its defaults without an OpenClaw release. mode, base, commit, model, thinking, maxPriority, passes, timeoutSeconds, prompt, promptFiles, datasets, sourceContext, and sourceContextFiles map to its matching options. File inputs are relative to the current sandbox repository. The original session deadline and cancellation still apply.

Under Codex, the whole call follows the initiating run's existing execution lifetime, covering preparation, every planned pass, and report completion. It is not shortened to the generic 90-second tool default or 600-second cap. An unlimited initiating run stays unlimited; Stop and authority revocation still cancel the review. With an updated helper, an explicit timeout limits each reviewer process from launch through exit; OpenClaw owns that timer, and preparation and delivery of an exited reviewer's result use the parent lifetime instead of starting another copy of the reviewer timer. An explicit timeout also bounds the whole call: helper capture, prepared-pass admission, every reviewer pass, and delivery. When the budget is exceeded, the call ends with an error naming the stalled phase instead of staying pending. An omitted timeout leaves each pass on openclaw agent exec's default deadline (agents.defaults.timeoutSeconds) and adds no whole-call deadline. /btw retains its separate ten-minute parent deadline.

Older helpers remain supported with finite limits and keep their existing timeout behavior. Their handoff timer can still expire before launch or result delivery finishes; update the shared Auto Review helper to remove that race. The tool does not refuse an older helper merely because it lacks host-owned timeout support.

Embedded runs, including nested Code Mode calls, publish the parent's finite execution deadline as a liveness allowance for the reply watchdog. For an unlimited parent, the allowance is the default 48-hour agent budget measured from tool execution start. The allowance itself adds no tool abort timer: the parent's existing timeout, an explicit timeoutSeconds, per-pass limits, Stop, and authority revocation still apply. A review that stays quiet beyond its allowance plus the watchdog's fifteen-minute quiet window can still be recovered as stalled.

An allowed configured reviewer model is preserved. If the caller cannot use that configured preference, the Gateway selects the caller's existing permitted default before execution and the helper records the effective model. An explicit prohibited model override is rejected; an empty permitted selection is an error. There is no model substitution after reviewer execution fails.

The operation fixes the protected helper, engine, interpreter, executable, current sandbox working directory, and private exchange paths. Native openclaw agent exec inherits normal configuration and authentication; per-run overrides enforce the actual sandbox caller's host-execution restrictions without rewriting saved configuration. Sandbox output cannot supply host configuration, credentials, executable paths, or runtime grants. The reviewer gets an empty private workspace, no host tools, no selected skills, and no injected workspace context. Provider credentials stay on the host. No host Git operation substitutes for the sandbox's staged, unstaged, or untracked state.

The result contains the helper-validated report and status. Findings are a completed review. A failed, interrupted, oversized, mismatched, or incomplete execution is an error and never triggers another engine. Stop and model-policy revocation cancel this operation's processes; concurrent calls own separate exchanges and results. This integration supports POSIX sandboxes with the required protected Python helper.

The complete report and status are limited to 8 MiB, below Code Mode's default 10 MiB full-value inbox. Larger results fail with a split-review diagnostic; findings and preserved provider/pass reports are never silently truncated. Lower operator-configured Code Mode limits still apply. Direct tool calls must also fit the initiating model's existing output budget. Larger direct reports fail explicitly with instructions to use Code Mode or split the review.

Was this useful?