协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
aireview【开发与工程】Professional Codex-native multi-agent code review with confidence scoring
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
aireview is the advanced review layer. Use normal code-review for fast baseline findings, then escalate to aireview when the diff is large, sensitive, cross-cutting, security-relevant, or release-blocking.
All review output should be in Chinese unless the user asks otherwise.
Codex supports read-only child agents. Delegate with spawn_agent, collect with wait_agent, and clean up with close_agent.
spawn_agent -> wait_agent -> close_agent
No external model CLI is required. Deep mode is implemented with Codex child agents.
aireview --diff
aireview --diff --staged
aireview HEAD~1..HEAD
aireview origin/feature-branch
aireview origin/feature-branch --quick
aireview origin/feature-branch --deep
aireview --pr 123
Use for small diffs. Main Codex performs a focused review:
Use for ordinary PRs. Dispatch read-only perspectives:
| Perspective | Agent | Focus |
|---|---|---|
| Context explorer | explorer | Changed files, local conventions, execution path |
| Owner reviewer | reviewer | Correctness, security, regressions, missing tests |
| Docs verifier | docs-researcher | API/version claims and external behavior when needed |
Use for large or high-risk changes. Run multiple focused review passes:
explorer: trace architecture and integration impactreviewer: lead with concrete bugs and risksdocs-researcher: verify version-sensitive claimsRun:
git status --short
git diff --stat
git diff
git diff --staged
For branch reviews:
git fetch --all --prune
git diff --stat main...<branch>
git diff main...<branch>
Read applicable repo instructions and changed files before judging.
Example prompts:
spawn_agent(agent_type="explorer", message="
Read-only. Trace the changed execution paths and cite files/symbols.
Focus on architecture impact, coupling, and hidden integration points.
")
spawn_agent(agent_type="reviewer", message="
Read-only. Review like an owner.
Lead with correctness, security, regressions, and missing tests.
Return only concrete findings with file/line references when possible.
")
spawn_agent(agent_type="docs-researcher", message="
Read-only. Verify any framework/API/version-sensitive claims against primary docs
or local package/config versions. Cite sources.
")
For each finding:
Filter out findings below 80 confidence unless the risk is severe and clearly labeled uncertain.
Lead with findings:
## Findings
1. [P1] Title
- File: `path:line`
- Evidence: ...
- Impact: ...
- Fix: ...
- Confidence: 90
## Open Questions
## Test Gaps
## Summary
If child agents are unavailable, produce the same review in one response using:
[EXPLORER]
[REVIEWER]
[DOCS]
[SYNTHESIS]