Agents[.]md

Let a Baz agent code review based on your instruction files (AGENTS.md, Claude.md, RULE.md and more)

Review from Guidelines lets Baz convert agent rule files and Cursor rules into scoped coding guidelines and run an AI code reviewer against pull requests based on those guidelines.

AI Coding Guidelines

How it works

  1. Setup: Baz automatically discovers and analyzes existing instructions files in markdown format. The reviewer is named “AI Coding Guidelines” and is centrally managed under Recommended Reviewers.

  2. Discovery: Baz continuously scans for agent updates in PRs. When instructions are found Baz converts each agent file deterministically into a normalized guideline object. The converted guideline are then persisted to the as custom agent prompts.

  3. Reviewer runtime: The “AI Coding Guidelines” agent loads the specific relevant instructions to a given PR PR based on the modified directory paths and module mapping. The reviewer runs the model with the matched guidelines and emits findings as comments.

Configuration and behavior

  • The “AI Coding Guidelines” Reviewer runs automatically for repos that have converted guidelines and where the reviewer has been enabled.

  • The reviewer will not run if there are no applicable guidelines for the PR.

  • Guidelines selection: only guidelines matching the PR paths or module scope are loaded.

Limitations

  • Guardrails are applied in cases where the a prompt injection risk is detected. If a converted guideline instructs the reviewer to read other files that themselves contain malicious instructions, additional mitigations are required

FAQ

How do I see which guideline produced a comment?

No. The prompts for the reviewer are only controlled by instructions files found in your codebase.

How do I enable this reviewer?

Activate the “AI Coding Guidelines” reviewer on your repo from the Recommended Agents tab.

Last updated