Skip to main content
GitHub
Git Integration (formerly Qodo Merge) – AI code review agents for pull requests. This documentation describes the Qodo v1 experience, which is being sunset. Review the sunset plan for the timeline, affected commands, and migration guidance.
The scan_repo_discussions tool analyzes past PR discussions and metadata to identify recurring feedback patterns, then generates a best_practices.md file with key insights and recommendations. The best_practices.md file captures patterns specific to your team’s workflow, based on real PR discussions. Qodo uses it to give more tailored, context-aware suggestions in future pull requests.

Learn more about the best practices file.

Active repositories are neededThe tool is designed to work with real-life repositories, as it relies on actual discussions to generate meaningful insights.Notice that at least 50 merged PRs are required to generate a best_practices.md file.

How to use the /scan_repo_discussions tool

Manual usage Comment on the PR:
Qodo will create a new PR that contains an auto-generated best_practices.md file.
Note: Since up to 250 PRs are scanned, the scan could take several minutes to complete.

Configuration options

To force generating a PR with a new best_practices.md file, even if it already exists, use:
To specify how many days of discussions should be included in the scan, use:
To specify the minimum number of merged PRs needed to generate the best_practices.md file, use:

Example usage

The PR created by the bot:
The best_practices.md file in the PR: