From 27dc927d42c800841995fbf53f97c62a1c2cbc03 Mon Sep 17 00:00:00 2001 From: Sergiy Kulanov Date: Thu, 19 Mar 2026 18:02:09 +0200 Subject: [PATCH] EPMDEDP-16581: fix: Tune claudecode to work with subagents result Signed-off-by: Sergiy Kulanov --- .github/workflows/claude-review.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index c900433..299b547 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -121,6 +121,10 @@ jobs: FILE:LINE | SEVERITY(critical/important) | CONFIDENCE(0-100) | description. Maximum 15 findings. Do NOT include full file contents or verbose analysis." + When reading background agent results, do NOT use the Read tool on output + files — they contain full execution traces and will exceed token limits. + Use `Bash(tail:*)` or `Bash(grep:*)` to extract the agent's final answer. + 1. "Review for bugs, logic errors, security vulnerabilities, race conditions, and functional correctness. Changed files: [LIST]. Use `git diff ${{ env.BASE_BRANCH }}...HEAD -- ` and Read tool to examine each file." @@ -194,7 +198,7 @@ jobs: Do not execute /review as a slash command — this prompt IS the review. claude_args: | --max-turns 20 - --allowedTools "Agent,Read,Write,Grep,Glob,Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git blame:*),Bash(git fetch:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr comment:*),Bash(go:*),Bash(python3:*),Bash(find:*),mcp__github_inline_comment__create_inline_comment" + --allowedTools "Agent,Read,Write,Grep,Glob,Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git blame:*),Bash(git fetch:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr comment:*),Bash(go:*),Bash(python3:*),Bash(find:*),Bash(tail:*),Bash(grep:*),Bash(head:*),Bash(wc:*),mcp__github_inline_comment__create_inline_comment" - name: Post review summary if: always() && steps.review.outcome != 'skipped'