Skip to content

Claude fix02#1252

Merged
sbryngelson merged 2 commits intoMFlowCode:masterfrom
sbryngelson:claude-fix02
Feb 23, 2026
Merged

Claude fix02#1252
sbryngelson merged 2 commits intoMFlowCode:masterfrom
sbryngelson:claude-fix02

Conversation

@sbryngelson
Copy link
Member

@sbryngelson sbryngelson commented Feb 23, 2026

User description

Description

Summarize your changes and the motivation behind them.

Fixes #(issue)

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other: describe

Testing

How did you test your changes?

Checklist

  • I added or updated tests for new behavior
  • I updated documentation if user-facing behavior changed

See the developer guide for full coding standards.

GPU changes (expand if you modified src/simulation/)
  • GPU results match CPU results
  • Tested on NVIDIA GPU or AMD GPU

CodeAnt-AI Description

Improve Claude automated code review workflow and allowed CLI tools

What Changed

  • The review workflow now permits and restricts the exact GitHub CLI actions the bot can run (including viewing PRs/diffs and posting PR comments), so the review can read the diff and publish a comment.
  • The review output must be a single top-level PR comment titled "Claude Code Review" and follow a strict structure: files changed + up to 15 paths, a 3–6 bullet summary, and findings or at least three concrete improvement opportunities.
  • If the bot cannot access files or cannot post a comment, it must state exactly what is blocked and fall back to writing the full review to the GitHub Actions job summary.

Impact

✅ One consolidated "Claude Code Review" PR comment
✅ Fewer blocked reviews due to missing CLI permissions
✅ More actionable reviews with file paths and concrete suggestions

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Chores
    • Enhanced code review workflow with expanded analysis capabilities and standardized output format, ensuring more consistent and comprehensive review reports.

Updated the CLAUDE review workflow to include additional allowed tools and refined output requirements for PR comments.
Copilot AI review requested due to automatic review settings February 23, 2026 01:56
@codeant-ai
Copy link
Contributor

codeant-ai bot commented Feb 23, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@sbryngelson sbryngelson merged commit a028536 into MFlowCode:master Feb 23, 2026
21 of 22 checks passed
@sbryngelson sbryngelson deleted the claude-fix02 branch February 23, 2026 01:57
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 23, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR expands the allowed tools for Claude code review by updating two configuration files. The .claude/settings.json file replaces its basic allowedTools set with a comprehensive array including GitHub CLI commands (gh pr view/diff/comment, gh api, gh search code) and common Unix utilities (cat, ls, grep, python3, git). The workflow file also updates Claude's arguments and refines the code review prompt to require structured output formatting and clearer error reporting.

Changes

Cohort / File(s) Summary
Tool allowlist expansion
.claude/settings.json, .github/workflows/claude-code-review.yml
Expanded allowed tools across both files to include GitHub PR-related commands (gh pr view, diff, comment), gh api, gh search code, and common utilities (cat, ls, grep, python3, git). Updated workflow prompt to require structured PR comment format with file counts, summaries, findings, and clearer blocking behavior documentation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

size:M

Poem

🐰 With tools expanded wide and bright,
Claude now comments left and right!
GitHub commands and grep so keen,
The best code reviews ever seen! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codeant-ai codeant-ai bot added the size:S This PR changes 10-29 lines, ignoring generated files label Feb 23, 2026
@codeant-ai
Copy link
Contributor

codeant-ai bot commented Feb 23, 2026

CodeAnt AI finished reviewing your PR.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Claude code review workflow configuration to improve the automated review process with more specific tool permissions and detailed output requirements.

Changes:

  • Enhanced allowed tools configuration with explicit command patterns
  • Added structured output requirements for the code review comment
  • Specified fallback behavior when posting comments is blocked

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/claude-code-review.yml Added gh pr comment tool permission, removed outdated comment, and added detailed output format requirements with fallback instructions
.claude/settings.json Restructured allowed tools from wildcard patterns to explicit command patterns matching the workflow configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files

Development

Successfully merging this pull request may close these issues.

2 participants