Skip to content

ci: add Agent Review workflow for core source PRs - #164

Merged
ULookup merged 6 commits into
mainfrom
fix/test-failures
Jun 19, 2026
Merged

ULookup merged 6 commits into
mainfrom
fix/test-failures

Conversation

@ULookup

@ULookup ULookup commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

PR 涉及核心 C++(libs/{core,loop,app,worldbuilding,tools,runtime})或 WebUI 代码时,自动触发 anthropics/claude-code-action 进行代码审查。以 PR Review 形式贴评论,根据结果打 ai-reviewed/needs-changes 标签,status check 阻挡 merge。

审查维度融合了 superpowers code-reviewer 和 everything-claude-code cpp-reviewer/security-reviewer 的提示词。

Files

  • .github/workflows/agent-review.yml (新增)

Post-Merge Setup

  1. Settings → Secrets → Actions 添加 ANTHROPIC_AUTH_TOKEN
  2. Settings → Branches → main branch protection 勾选 Agent Review 为 required check
  3. 标签 ai-reviewed / needs-changes 首次触发后自动出现

ULookup added 6 commits June 19, 2026 18:28
Automatically triggers anthropics/claude-code-action on PRs touching
libs/{core,loop,app,worldbuilding,tools,runtime}/** or webui/**.
Posts PR review, adds ai-reviewed/needs-changes label, and blocks
merge via status check when issues are found.
Update env vars for deepseek-v4-pro model via api.deepseek.com/anthropic
Structured output: Strengths → Issues (Critical/Important/Minor) →
Assessment with verdict. Added calibration guidance, project-specific
architecture patterns, and C++/TS security checkpoints.
…ent Review prompt

Add cpp-reviewer checks (Rule of Five, RAII, const correctness, reserve,
reinterpret_cast), security-reviewer false-positive awareness,
confidence-based filtering (>80%), AI-generated code addendum, and
summary table with per-severity counts.
@ULookup
ULookup merged commit b45dc02 into main Jun 19, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant