Skip to content

Conversation

@FreCap
Copy link

@FreCap FreCap commented Dec 31, 2025

Allowing multiple Claude Reviewers in the same PR by changing the bot_name (e.g. security_review vs science_skills)

  Usage Example

  Configure each workflow with a unique bot_name:

  # .github/workflows/claude-code-review.yml
  - uses: anthropics/claude-code-action@main
    with:
      github_token: ${{ secrets.GITHUB_TOKEN }}
      use_sticky_comment: true
      bot_name: "claude-code-review"  # Unique identifier

  # .github/workflows/claude-security-review.yml
  - uses: anthropics/claude-code-action@main
    with:
      github_token: ${{ secrets.GITHUB_TOKEN }}
      use_sticky_comment: true
      bot_name: "claude-security"  # Different identifier

Implementation detail

Adding an hidden Header Identification (src/github/operations/comments/common.ts)
- Adds header when useStickyComment=true
- Invisible to users, used for bot identification

Following up on the previous request #411 with a simplified approach

  Critical fix for multi-bot support. When multiple bots use the same bot ID
  (e.g., Claude's official bot ID 41898282), they were matching each other's
  comments due to the OR logic in comment matching.

  New logic:
  - If comment has a hidden header, require BOTH header AND ID to match
  - This prevents Bot A from matching Bot B's comment when they share an ID
  - Maintains backward compatibility for old comments without headers

  Without this fix, claude-security and claude-code-review would overwrite
  each other's comments.
@TosinAF
Copy link

TosinAF commented Jan 4, 2026

related issue -- #419

@TosinAF
Copy link

TosinAF commented Jan 4, 2026

here's my take on this -- #789

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.

2 participants