Suggested Rules

Suggested rules help teams formalize standards that already exist in their codebase and review process. Rules directly affect pull request reviews, so Qodo does not enforce them automatically. Instead, Qodo surfaces suggested rules as recommendations, giving you visibility into recurring review feedback and best practices, while leaving the decision to review, adjust, and activate each rule in your hands.

What are suggested rules?

Suggested rules are rules generated by Qodo but not enforced until explicitly reviewed and approved by an admin.

They appear under Rules → Suggestions and act as a recommendation layer between informal practices and enforced standards.

Suggested rules help teams:

  • Capture repeated review feedback as formal rules

  • Align enforcement with real codebase behavior

  • Reduce reliance on tribal knowledge and reviewer memory

What you see in the Suggestions table

Each suggested rule appears as a pending rule in the Suggestions table, along with the key details you need to evaluate it. This information helps you quickly assess context, relevance, and priority before deciding whether to activate the rule.

Sources of suggestions

Qodo generates suggested rules from codebase patterns, providing a strong baseline for teams getting started or expanding their rule coverage.

Codebase patterns

Qodo analyzes your organization’s pull request history to identify repeated patterns, including:

  • Retroactive PR analysis (last ~500 PRs)

  • Repeated review comments or fixes

  • Recurring implementation or compliance behaviors

Links to the pull requests that informed a suggestion are included to provide context and traceability.

This enables teams to turn what reviewers already care about into explicit, enforceable rules.

Triggering suggested rule discovery manually

circle-info

Rule discovery is currently in beta. Today, you can enhance suggested rules by using the /scan_repo_discussions command. Automatic, ongoing discovery will be available soon.

As review practices evolve, you can trigger additional discovery to expand your rule coverage.

Add the following command to a pull request comment in any PR in any repository you want Qodo to analyze:

/scan_repo_discussions

This command analyzes pull request discussions in the repository to identify new patterns and generate additional suggested rules.

Reviewing and activating suggestions

To review suggested rules:

  1. Go to Rules → Suggestions.

  2. Open a suggestion.

  3. Review the rule content, examples, and source.

  4. Set the scope of the rule.

  5. Edit the rule if needed.

  6. Click Accept & activate or Dismiss.

Suggestions can also be accepted from the actions menu (⋮) in the Suggestions table.

Once accepted, a suggested rule becomes a standard rule and follows the same lifecycle as any other rule.

Last updated