From 57019c1105e92f74ca4e556c7a3a03f7468b853e Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 26 Mar 2026 17:10:11 -0400 Subject: [PATCH] ci(ai-review): add --bare flag to prevent CLAUDE.md pollution in reviews Review prompt already contains self-contained CCS-specific rules. Loading project CLAUDE.md caused dev-oriented rules (no-emoji, quality gates, branching) to leak into review output. --bare makes the review prompt the sole source of truth and saves ~2K tokens per run. --- .github/workflows/ai-review.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index b3305dbb..9c8b47fd 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -277,6 +277,7 @@ jobs: - Use simple, single-purpose bash commands only claude_args: | + --bare --model ${{ env.REVIEW_MODEL }} --allowedTools "Edit,Glob,Grep,LS,Read,Write,Bash(gh pr diff *),Bash(gh pr view *),Bash(gh issue view *),Bash(git diff *),Bash(git log *),Bash(git status *),Bash(cat *),Bash(ls *)"