Prompt to Make Agents Stricter in PR Reviews

hwchase17 · x · 2026-07-11

A highly practical tip: when having an agent review PRs generated by other agents, set the context as "this is a PR submitted by a colleague you don't quite trust and don't think is very bright." This encourages the agent to proactively seek improvements and optimization opportunities. Such role-playing alters the agent's review style, shifting it from passive checking to actively hunting for flaws, bugs, and optimizations.

Related event: Prompt Trick Makes Agents Harsher PR Reviewers(2 posts)→

Original post →

More from coding & agent

coding & agent channel →