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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
小众软件
小众软件
I
InfoQ
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Martin Fowler
Martin Fowler
月光博客
月光博客
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
V
Visual Studio Blog
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research

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
chore: rename codex review skill to autoreview · openclaw...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -0,0 +1,128 @@

1+

---

2+

name: autoreview

3+

description: "Autoreview closeout: local dirty changes, PR branch vs main, parallel tests."

4+

---

5+6+

# Autoreview

7+8+

Run Codex's built-in code review as a closeout check. This is code review (`codex review`), not Guardian `auto_review` approval routing.

9+10+

Use when:

11+

- user asks for Codex review / autoreview / second-model review

12+

- after non-trivial code edits, before final/commit/ship

13+

- reviewing a local branch or PR branch after fixes

14+15+

## Contract

16+17+

- Treat review output as advisory. Never blindly apply it.

18+

- Verify every finding by reading the real code path and adjacent files.

19+

- Read dependency docs/source/types when the finding depends on external behavior.

20+

- Reject unrealistic edge cases, speculative risks, broad rewrites, and fixes that over-complicate the codebase.

21+

- Prefer small fixes at the right ownership boundary; no refactor unless it clearly improves the bug class.

22+

- Keep going until the selected review path returns no accepted/actionable findings.

23+

- If a review-triggered fix changes code, rerun focused tests and rerun the review helper.

24+

- Default to Codex review. If Codex is unavailable or exits with an error, the helper may fall back to `claude -p`; `pi -p` and `opencode run` are explicit reviewer/fallback options. The helper runs nested Codex review in yolo/full-access mode by default; use `--no-yolo` only when intentionally testing sandbox behavior.

25+

- Stop as soon as the review command/helper exits 0 with no accepted/actionable findings. Do not run an extra direct `codex review` just to get a nicer "clean" line, a second opinion, or clearer closeout wording.

26+

- Treat the helper's successful exit plus absence of actionable findings as the clean review result, even if the underlying Codex CLI output is terse.

27+

- If rejecting a finding as intentional/not worth fixing, add a brief inline code comment only when it explains a real invariant or ownership decision that future reviewers should know.

28+

- Do not push just to review. Push only when the user requested push/ship/PR update.

29+30+

## Pick Target

31+32+

Dirty local work:

33+34+

```bash

35+

codex review --uncommitted

36+

```

37+38+

Use this only when the patch is actually unstaged/staged/untracked in the

39+

current checkout. For committed, pushed, or PR work, point Codex at the commit

40+

or branch diff instead; do not force `--mode local` / `--uncommitted` just

41+

because the helper docs mention dirty work first. A clean `--uncommitted` review

42+

only proves there is no local patch.

43+44+

Branch/PR work:

45+46+

```bash

47+

git fetch origin

48+

codex review --base origin/main

49+

```

50+51+

Do not pass an inline prompt with `--base`; current CLI rejects `--base` + `[PROMPT]` even though help text is ambiguous. If custom instructions are needed, run the plain base review first, then do a local/manual follow-up pass.

52+53+

If an open PR exists, use its actual base:

54+55+

```bash

56+

base=$(gh pr view --json baseRefName --jq .baseRefName)

57+

codex review --base "origin/$base"

58+

```

59+60+

Committed single change:

61+62+

```bash

63+

codex review --commit HEAD

64+

```

65+66+

or with the helper:

67+68+

```bash

69+

.agents/skills/autoreview/scripts/autoreview --mode commit --commit HEAD

70+

```

71+72+

Use commit review for already-landed or already-pushed work on `main`. Reviewing

73+

clean `main` against `origin/main` is usually an empty diff after push. For a

74+

small stack, review each commit explicitly or review the branch before merging

75+

with `--base`.

76+77+

## Parallel Closeout

78+79+

Format first if formatting can change line locations. Then it is OK to run tests and review in parallel:

80+81+

```bash

82+

.agents/skills/autoreview/scripts/autoreview --parallel-tests "<focused test command>"

83+

```

84+85+

Tradeoff: tests may force code changes that stale the review. If tests or review lead to code edits, rerun the affected tests and rerun review until no accepted/actionable findings remain. Once that rerun exits cleanly, stop; do not spend another long review cycle on redundant confirmation.

86+87+

## Context Efficiency

88+89+

Codex review is usually noisy. Default to a subagent filter when subagents are available. Ask it to run the review and return only:

90+

- actionable findings it accepts

91+

- findings it rejects, with one-line reason

92+

- exact files/tests to rerun

93+94+

Run inline only for tiny changes or when subagents are unavailable.

95+96+

## Helper

97+98+

Bundled helper:

99+100+

```bash

101+

.agents/skills/autoreview/scripts/autoreview --help

102+

```

103+104+

The helper:

105+

- chooses dirty `--uncommitted` first

106+

- otherwise uses current PR base if `gh pr view` works

107+

- otherwise uses `origin/main` for non-main branches

108+

- use `--mode commit --commit <ref>` for already-committed work, especially clean `main` after landing

109+

- should be left in `--mode auto` or forced to `--mode branch` for PR/branch work; do not force `--mode local` after committing

110+

- supports `--reviewer codex|claude|pi|opencode|auto`; `auto` runs Codex first

111+

- supports `--fallback-reviewer claude|pi|opencode|none`; default is `claude`

112+

- falls back only when Codex is unavailable or exits nonzero, not when Codex reports findings

113+

- writes only to stdout unless `--output` or `AUTOREVIEW_OUTPUT` is set

114+

- supports `--dry-run`, `--parallel-tests`, and commit refs

115+

- runs nested review with `--dangerously-bypass-approvals-and-sandbox` by default

116+

- keeps accepting `--full-access`; use `--no-yolo` or `AUTOREVIEW_YOLO=0` to opt out

117+

- still accepts legacy `CODEX_REVIEW_*` env vars when the matching `AUTOREVIEW_*` var is unset

118+

- prints `autoreview clean: no accepted/actionable findings reported` when the selected review command exits 0

119+120+

## Final Report

121+122+

Include:

123+

- review command used

124+

- tests/proof run

125+

- findings accepted/rejected, briefly why

126+

- the clean review result from the final helper/review run, or why a remaining finding was consciously rejected

127+128+

Do not run another Codex review solely to improve the final report wording. If the final helper run exited 0 and produced no accepted/actionable findings, report that exact run as clean.