claude-code-action icon indicating copy to clipboard operation
claude-code-action copied to clipboard

Allowing multiple specialized bot in the same PR (using smart invisible tags)

Open FreCap opened this issue 1 month ago • 2 comments

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 https://github.com/anthropics/claude-code-action/pull/411 with a simplified approach

FreCap avatar Dec 31 '25 16:12 FreCap

related issue -- https://github.com/anthropics/claude-code-action/issues/419

TosinAF avatar Jan 04 '26 18:01 TosinAF

here's my take on this -- https://github.com/anthropics/claude-code-action/pull/789

TosinAF avatar Jan 04 '26 22:01 TosinAF