From af88ec3fbc7552346565ea4930c7f694247381bd Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Thu, 18 Dec 2025 23:45:02 +0800 Subject: [PATCH] chore: add guideline in AGENTS.md --- .github/workflows/claude.yml | 8 +++----- AGENTS.md | 8 ++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index d300267f185..cfb8e0dc444 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -43,8 +43,6 @@ jobs: # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it. # prompt: 'Update the pull request description to include a summary of changes.' - # Optional: Add claude_args to customize behavior and configuration - # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md - # or https://code.claude.com/docs/en/cli-reference for available options - # claude_args: '--allowed-tools Bash(gh pr:*)' - + claude_args: | + --allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)" + --model "claude-opus-4-5" diff --git a/AGENTS.md b/AGENTS.md index 017a7c58c6a..7d862eecd2d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -144,6 +144,14 @@ Tests: ## Review Guidelines +Please note that the attention of contributors and maintainers is the MOST valuable resource. +Less is more: focus on the most important aspects. + +- Your review output SHOULD be concise and clear. +- You SHOULD only highlight P0 and P1 level issues, such as severe bugs, performance degradation, or security concerns. +- You MUST not reiterate detailed changes in your review. +- You MUST not repeat aspects of the PR that are already well done. + Please consider the following when reviewing code contributions. ### Rust API design