<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lokesh</title>
    <description>The latest articles on DEV Community by Lokesh (@lokeshagarwal).</description>
    <link>https://dev.to/lokeshagarwal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3785563%2Febfe5fe0-387d-46e5-ac40-63b8a3be72c9.jpg</url>
      <title>DEV Community: Lokesh</title>
      <link>https://dev.to/lokeshagarwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lokeshagarwal"/>
    <language>en</language>
    <item>
      <title>PR Bot: AI-Powered PR Reviews for Azure DevOps, GitHub &amp; Bitbucket</title>
      <dc:creator>Lokesh</dc:creator>
      <pubDate>Sun, 22 Feb 2026 23:32:15 +0000</pubDate>
      <link>https://dev.to/lokeshagarwal/pr-bot-ai-powered-pr-reviews-for-azure-devops-github-bitbucket-4gib</link>
      <guid>https://dev.to/lokeshagarwal/pr-bot-ai-powered-pr-reviews-for-azure-devops-github-bitbucket-4gib</guid>
      <description>&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; prbot is a CLI that uses Claude, GPT, or Cursor to review pull requests on Azure DevOps, GitHub, or Bitbucket. It posts structured feedback as PR comments, including inline feedback on specific lines. Configure once, run &lt;code&gt;prbot review 42&lt;/code&gt;, and get AI-powered code reviews aligned with your team's standards.&lt;/p&gt;




&lt;p&gt;Code reviews are critical for software quality — but they’re often slow, repetitive, and inconsistent.&lt;/p&gt;

&lt;p&gt;What if a CLI tool could:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fetch your PR&lt;/li&gt;
&lt;li&gt;Apply your team’s coding standards&lt;/li&gt;
&lt;li&gt;Send everything to Claude, GPT, or Cursor&lt;/li&gt;
&lt;li&gt;Post structured feedback directly on the PR&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s what &lt;strong&gt;prbot&lt;/strong&gt; does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;prbot&lt;/strong&gt; does exactly that. It's a lightweight CLI that fetches PR metadata and diffs from your source control platform, sends them to an AI (Claude, GPT, or Cursor), and posts the review as comments—including inline feedback on specific lines.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why prbot?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;prbot fetches PR metadata and diffs from your source control platform.&lt;/li&gt;
&lt;li&gt;It loads your &lt;code&gt;CodeStandard.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It sends structured input to the selected AI provider (Claude, GPT, or Cursor).&lt;/li&gt;
&lt;li&gt;The AI returns schema-validated JSON.&lt;/li&gt;
&lt;li&gt;prbot posts the review as structured PR comments (including inline feedback).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No servers. No webhooks. Just a CLI.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Multi-platform&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Azure DevOps, GitHub, and Bitbucket Cloud&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Your standards&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Reviews against a custom &lt;code&gt;CodeStandard.md&lt;/code&gt; file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Choice of AI&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Claude (Anthropic), GPT (OpenAI), or Cursor Cloud Agents&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Inline comments&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Issues posted on the exact lines of code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Replace mode&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Re-run reviews and replace old AI comments with fresh ones&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Zero infrastructure&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Just a CLI; no servers or webhooks to manage&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clone and install&lt;/span&gt;
git clone https://github.com/mrlokeshagarwal/pr-bot.git
&lt;span class="nb"&gt;cd &lt;/span&gt;pr-bot
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run build

&lt;span class="c"&gt;# Make it global (optional)&lt;/span&gt;
npm &lt;span class="nb"&gt;link&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Setup in 3 Steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Choose your platform
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Repo format&lt;/th&gt;
&lt;th&gt;Auth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;owner/repo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Personal Access Token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Azure DevOps&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;repo-name&lt;/code&gt; or GUID&lt;/td&gt;
&lt;td&gt;PAT&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bitbucket&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;workspace/repo-slug&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;App Password&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;prbot &lt;span class="nb"&gt;set &lt;/span&gt;platform github
prbot &lt;span class="nb"&gt;set &lt;/span&gt;repo owner/repo
prbot &lt;span class="nb"&gt;set &lt;/span&gt;github-token    &lt;span class="c"&gt;# Prompts for your token&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Azure DevOps:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;prbot &lt;span class="nb"&gt;set &lt;/span&gt;platform ado
prbot &lt;span class="nb"&gt;set &lt;/span&gt;org https://dev.azure.com/YourOrg
prbot &lt;span class="nb"&gt;set &lt;/span&gt;project YourProject
prbot &lt;span class="nb"&gt;set &lt;/span&gt;repo YourRepo
prbot &lt;span class="nb"&gt;set &lt;/span&gt;pat            &lt;span class="c"&gt;# Prompts for PAT&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Bitbucket:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;prbot &lt;span class="nb"&gt;set &lt;/span&gt;platform bitbucket
prbot &lt;span class="nb"&gt;set &lt;/span&gt;repo workspace/repo-slug
prbot &lt;span class="nb"&gt;set &lt;/span&gt;bitbucket-token
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Add your coding standard
&lt;/h3&gt;

&lt;p&gt;Create a &lt;code&gt;CodeStandard.md&lt;/code&gt; with your team's guidelines. prbot sends this to the AI so reviews align with your rules.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;prbot &lt;span class="nb"&gt;set &lt;/span&gt;standard C:&lt;span class="se"&gt;\p&lt;/span&gt;ath&lt;span class="se"&gt;\t&lt;/span&gt;o&lt;span class="se"&gt;\C&lt;/span&gt;odeStandard.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Configure AI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Claude (default)&lt;/span&gt;
prbot &lt;span class="nb"&gt;set &lt;/span&gt;provider claude
prbot &lt;span class="nb"&gt;set &lt;/span&gt;claude-key

&lt;span class="c"&gt;# Or OpenAI&lt;/span&gt;
prbot &lt;span class="nb"&gt;set &lt;/span&gt;provider openai
prbot &lt;span class="nb"&gt;set &lt;/span&gt;openai-key
prbot &lt;span class="nb"&gt;set &lt;/span&gt;model gpt-4o
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Run a Review
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Review PR #42&lt;/span&gt;
prbot review 42

&lt;span class="c"&gt;# Dry run (see output without posting)&lt;/span&gt;
prbot review 42 &lt;span class="nt"&gt;--dry-run&lt;/span&gt;

&lt;span class="c"&gt;# Replace old AI comments with a fresh review&lt;/span&gt;
prbot review 42 &lt;span class="nt"&gt;--replace&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Use &lt;code&gt;--dry-run&lt;/code&gt; on production PRs first to verify the output before posting comments.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What You Get
&lt;/h2&gt;

&lt;p&gt;Each review includes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Summary&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;High-level overview of the changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Risk assessment&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Potential issues or concerns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Questions&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Clarifications the AI suggests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Issues&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Specific findings with severity, file, line, and code snippets&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All comments are prefixed with &lt;code&gt;[AI Review]&lt;/code&gt; so you can easily identify and filter them.&lt;/p&gt;




&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;TypeScript&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Type-safe, modern JavaScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Node.js 18+&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Native &lt;code&gt;fetch&lt;/code&gt;, no extra HTTP libs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Commander&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;CLI framework&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Zod&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Schema validation for AI responses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;diff&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unified diff generation for Azure DevOps&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/mrlokeshagarwal/pr-bot" rel="noopener noreferrer"&gt;github.com/mrlokeshagarwal/pr-bot&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/mrlokeshagarwal/pr-bot.git
&lt;span class="nb"&gt;cd &lt;/span&gt;pr-bot
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run build
prbot status   &lt;span class="c"&gt;# Verify setup&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Project Status
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;This is an early-stage project. The code has not been formally tested across all platforms and edge cases. Use with caution on production PRs—consider running with &lt;code&gt;--dry-run&lt;/code&gt; first to verify output before posting comments.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Disclaimers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Trademarks:&lt;/strong&gt; Azure DevOps, GitHub, and Bitbucket are trademarks of their respective owners. Claude, GPT, and Cursor are trademarks of Anthropic, OpenAI, and Cursor, respectively. This project is not affiliated with or endorsed by Microsoft, GitHub, Inc., Atlassian, Anthropic, OpenAI, or Cursor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terms of Service:&lt;/strong&gt; Use of prbot is subject to the terms of service of the AI providers (Anthropic, OpenAI, Cursor) and source control platforms (Azure DevOps, GitHub, Bitbucket) you connect to. Ensure your usage complies with their respective policies.&lt;/p&gt;




&lt;p&gt;If you use Azure DevOps, GitHub, or Bitbucket and want consistent, AI-assisted code reviews, give prbot a try.&lt;/p&gt;

&lt;p&gt;⭐ Star the repo if you find it useful&lt;br&gt;&lt;br&gt;
💬 Feedback and contributions are welcome&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>devops</category>
      <category>ai</category>
      <category>codereview</category>
    </item>
  </channel>
</rss>
