惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
量子位
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Y
Y Combinator Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
博客园 - 聂微东
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat: extend autoreview fallback reviewers · openclaw/ope...
steipete · 2026-05-18 · via Recent Commits to openclaw:main

@@ -10,14 +10,16 @@ Options:

1010

Target selection. Default: auto.

1111

--base REF Base ref for branch review. Default: PR base or origin/main.

1212

--commit REF Commit ref for commit review. Default: HEAD.

13-

--reviewer codex|claude|pi|opencode|auto

13+

--reviewer codex|claude|pi|opencode|droid|copilot|auto

1414

Review engine. Default: auto (Codex, fallback reviewer on error).

15-

--fallback-reviewer claude|pi|opencode|none

15+

--fallback-reviewer claude|pi|opencode|droid|copilot|none

1616

Fallback when Codex is unavailable or exits nonzero. Default: claude.

1717

--codex-bin PATH Codex binary. Default: codex.

1818

--claude-bin PATH Claude binary. Default: claude.

1919

--pi-bin PATH Pi binary. Default: pi.

2020

--opencode-bin PATH OpenCode binary. Default: opencode.

21+

--droid-bin PATH Droid binary. Default: droid.

22+

--copilot-bin PATH GitHub Copilot binary. Default: copilot.

2123

--full-access Keep yolo/full-access mode enabled. Default.

2224

--no-yolo Run nested Codex review with normal sandbox/approval prompts.

2325

--output FILE Also save output to file.

@@ -42,6 +44,8 @@ codex_bin=${CODEX_BIN:-codex}

4244

claude_bin=${CLAUDE_BIN:-claude}

4345

pi_bin=${PI_BIN:-pi}

4446

opencode_bin=${OPENCODE_BIN:-opencode}

47+

droid_bin=${DROID_BIN:-droid}

48+

copilot_bin=${COPILOT_BIN:-copilot}

4549

codex_args=()

4650

yolo=${AUTOREVIEW_YOLO:-${CODEX_REVIEW_YOLO:-1}}

4751

output=${AUTOREVIEW_OUTPUT:-${CODEX_REVIEW_OUTPUT:-}}

@@ -86,6 +90,14 @@ while [[ $# -gt 0 ]]; do

8690

opencode_bin=${2:-}

8791

shift 2

8892

;;

93+

--droid-bin)

94+

droid_bin=${2:-}

95+

shift 2

96+

;;

97+

--copilot-bin)

98+

copilot_bin=${2:-}

99+

shift 2

100+

;;

89101

--full-access)

90102

yolo=1

91103

shift

@@ -131,15 +143,15 @@ case "$mode" in

131143

esac

132144133145

case "$reviewer" in

134-

auto|codex|claude|pi|opencode) ;;

146+

auto|codex|claude|pi|opencode|droid|copilot) ;;

135147

*)

136148

echo "invalid --reviewer: $reviewer" >&2

137149

exit 2

138150

;;

139151

esac

140152141153

case "$fallback_reviewer" in

142-

claude|pi|opencode|none) ;;

154+

claude|pi|opencode|droid|copilot|none) ;;

143155

*)

144156

echo "invalid --fallback-reviewer: $fallback_reviewer" >&2

145157

exit 2

@@ -198,6 +210,15 @@ printf 'reviewer: %s\n' "$reviewer"

198210

if [[ "$reviewer" == auto ]]; then

199211

printf 'fallback-reviewer: %s\n' "$fallback_reviewer"

200212

fi

213+

case "$reviewer" in

214+

codex) ;;

215+

auto)

216+

printf 'note: Codex native review mode is the recommended and best-supported review path; fallback reviewers use a generated diff prompt.\n'

217+

;;

218+

*)

219+

printf 'note: Codex native review mode is the recommended and best-supported review path; %s uses a generated diff prompt.\n' "$reviewer"

220+

;;

221+

esac

201222

if [[ "$reviewer" == auto || "$reviewer" == codex ]]; then

202223

printf 'review:'

203224

printf ' %q' "${review_cmd[@]}"

@@ -284,10 +305,14 @@ Base: ${base_ref:-}

284305

Commit: ${commit_ref:-}

285306286307

Rules:

287-

- Review only the diff below.

308+

- Review the proposed code change as a closeout reviewer.

309+

- Focus on the diff below. If your CLI exposes read-only repository tools, inspect surrounding code and tests to verify findings; never modify files.

288310

- Do not modify files.

289-

- Prioritize correctness bugs, regressions, security issues, and missing tests.

290-

- Ignore speculative edge cases and broad rewrites.

311+

- Report only discrete, actionable issues introduced by this change.

312+

- Prioritize correctness, regressions, security, data loss, performance cliffs, and missing tests that would catch a real bug.

313+

- Do not report pre-existing issues, speculative risks, broad rewrites, style nits, changelog gaps, or findings that depend on unstated assumptions.

314+

- Identify the concrete scenario where the issue appears, and keep the line reference as small as possible.

315+

- A finding should overlap changed code or clearly cite changed code as the cause.

291316

- For each accepted/actionable finding, use exactly this format:

292317

[P<0-3>] Short title

293318

File: path:line

@@ -302,8 +327,15 @@ EOF

302327

} > "$prompt_file" || return

303328

}

304329330+

reviewer_output_has_clean_marker() {

331+

local path=$1

332+

grep -Eq '^[^[:alnum:]]*autoreview clean: no accepted/actionable findings reported[[:space:]]*$' "$path"

333+

}

334+305335

run_prompt_reviewer() {

306336

local selected=$1

337+

local copilot_prompt=

338+

local prompt_bytes=0

307339

local reviewer_output

308340

local status=0

309341

@@ -343,13 +375,46 @@ run_prompt_reviewer() {

343375

echo "fallback reviewer unavailable: $opencode_bin" >&2

344376

status=127

345377

elif printf 'fallback: opencode run\n' | tee -a "$review_output"; then

346-

"$opencode_bin" run --pure --dir "$(dirname "$prompt_file")" --file "$prompt_file" \

347-

"Review the attached prompt file. Do not modify files." 2>&1 | tee -a "$review_output" "$reviewer_output"

378+

"$opencode_bin" run --pure --dir "$repo_root" \

379+

"Review the attached prompt file. Do not modify files." \

380+

--file "$prompt_file" 2>&1 | tee -a "$review_output" "$reviewer_output"

348381

status=$?

349382

else

350383

status=$?

351384

fi

352385

;;

386+

droid)

387+

if ! command -v "$droid_bin" >/dev/null 2>&1; then

388+

echo "fallback reviewer unavailable: $droid_bin" >&2

389+

status=127

390+

elif printf 'fallback: droid exec\n' | tee -a "$review_output"; then

391+

"$droid_bin" exec --cwd "$repo_root" -f "$prompt_file" 2>&1 | tee -a "$review_output" "$reviewer_output"

392+

status=$?

393+

else

394+

status=$?

395+

fi

396+

;;

397+

copilot)

398+

if ! command -v "$copilot_bin" >/dev/null 2>&1; then

399+

echo "fallback reviewer unavailable: $copilot_bin" >&2

400+

status=127

401+

elif printf 'fallback: copilot\n' | tee -a "$review_output"; then

402+

prompt_bytes=$(wc -c < "$prompt_file" | tr -d '[:space:]')

403+

if (( prompt_bytes > 120000 )); then

404+

echo "copilot reviewer unavailable: generated prompt is too large for copilot -p; use codex, droid, or another file/stdin-capable reviewer" \

405+

2>&1 | tee -a "$review_output" "$reviewer_output"

406+

status=1

407+

else

408+

copilot_prompt=$(< "$prompt_file")

409+

"$copilot_bin" -C "$repo_root" --available-tools=none --stream off --output-format text --silent \

410+

-p "$copilot_prompt" \

411+

2>&1 | tee -a "$review_output" "$reviewer_output"

412+

status=$?

413+

fi

414+

else

415+

status=$?

416+

fi

417+

;;

353418

*)

354419

echo "unsupported prompt reviewer: $selected" >&2

355420

status=2

@@ -360,7 +425,7 @@ run_prompt_reviewer() {

360425

status=1

361426

elif ! grep -q '[^[:space:]]' "$reviewer_output"; then

362427

status=1

363-

elif ! grep -Fxq 'autoreview clean: no accepted/actionable findings reported' "$reviewer_output"; then

428+

elif ! reviewer_output_has_clean_marker "$reviewer_output"; then

364429

status=1

365430

fi

366431

fi

@@ -380,7 +445,7 @@ run_selected_review() {

380445

fi

381446

run_review

382447

;;

383-

claude|pi|opencode)

448+

claude|pi|opencode|droid|copilot)

384449

run_prompt_reviewer "$selected"

385450

;;

386451

*)