<?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: Paul van der lei</title>
    <description>The latest articles on DEV Community by Paul van der lei (@0pilatos0).</description>
    <link>https://dev.to/0pilatos0</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%2F978536%2Fab6e908c-1d30-4e45-8a3b-5abe64cb35e2.png</url>
      <title>DEV Community: Paul van der lei</title>
      <link>https://dev.to/0pilatos0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/0pilatos0"/>
    <language>en</language>
    <item>
      <title>My AI Coding Agent Couldn't Read Bitbucket PRs, So I Fixed That</title>
      <dc:creator>Paul van der lei</dc:creator>
      <pubDate>Mon, 29 Dec 2025 13:00:45 +0000</pubDate>
      <link>https://dev.to/0pilatos0/my-ai-coding-agent-couldnt-read-bitbucket-prs-so-i-fixed-that-3lhc</link>
      <guid>https://dev.to/0pilatos0/my-ai-coding-agent-couldnt-read-bitbucket-prs-so-i-fixed-that-3lhc</guid>
      <description>&lt;p&gt;Here's a frustrating thing I ran into.&lt;/p&gt;

&lt;p&gt;I'm using Claude Code (Anthropic's terminal-based coding agent) and it's genuinely helpful. It can run commands, read files, and help me work through problems. When I was on a GitHub project, it could even check PR status and help with reviews using &lt;code&gt;gh pr view&lt;/code&gt; and friends.&lt;/p&gt;

&lt;p&gt;Then I switched to a Bitbucket project.&lt;/p&gt;

&lt;p&gt;And suddenly my AI assistant was blind. "Sorry, I can't access that" over and over. No CLI tool meant no way to get PR diffs, check statuses, or do any of the Git platform stuff that makes AI-assisted development actually flow.&lt;/p&gt;

&lt;p&gt;So I built one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;gh&lt;/code&gt;-style CLI for Bitbucket Cloud. Nothing fancy, just the thing that was missing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# authenticate once&lt;/span&gt;
bb auth login

&lt;span class="c"&gt;# now your terminal (and any AI agent) can interact with Bitbucket&lt;/span&gt;
bb &lt;span class="nb"&gt;pr &lt;/span&gt;list
bb &lt;span class="nb"&gt;pr &lt;/span&gt;view 42
bb &lt;span class="nb"&gt;pr &lt;/span&gt;diff 42
bb repo list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when I ask Claude Code "can you check the open PRs and summarize them", it actually can. It runs &lt;code&gt;bb pr list --json&lt;/code&gt;, parses the output, and gives me what I need. Same with "review the diff on PR #15" - it runs &lt;code&gt;bb pr diff 15&lt;/code&gt; and we're in business.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stuff that matters
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Context detection&lt;/strong&gt; - if you're in a git repo with a Bitbucket remote, it figures out the workspace and repo automatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;my-bitbucket-project
bb &lt;span class="nb"&gt;pr &lt;/span&gt;list  &lt;span class="c"&gt;# just works, no flags needed&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;JSON output everywhere&lt;/strong&gt; - critical for both scripting and AI agents:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bb &lt;span class="nb"&gt;pr &lt;/span&gt;list &lt;span class="nt"&gt;--json&lt;/span&gt; | jq &lt;span class="s1"&gt;'.[] | select(.state == "OPEN")'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Standard npm install&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;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @pilatos/bitbucket-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What it covers
&lt;/h2&gt;

&lt;p&gt;The daily stuff: authentication, repositories (clone, create, list, view, delete), and pull requests (create, list, view, edit, diff, merge, approve, decline, checkout).&lt;/p&gt;

&lt;p&gt;What it doesn't have yet: pipelines, no issue tracker integration, no code search. The 80% use case, basically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I'm sharing this
&lt;/h2&gt;

&lt;p&gt;If you're using AI coding tools on Bitbucket projects and hitting the same wall I did, this exists now.&lt;/p&gt;

&lt;p&gt;And if you want to contribute - it's open source, TypeScript, clean architecture. Adding new commands is pretty straightforward. Pipeline support would be cool if anyone wants to tackle it.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/0pilatos0/bitbucket-cli" rel="noopener noreferrer"&gt;github.com/0pilatos0/bitbucket-cli&lt;/a&gt;&lt;br&gt;
Docs: &lt;a href="https://bitbucket-cli.paulvanderlei.com" rel="noopener noreferrer"&gt;bitbucket-cli.paulvanderlei.com&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Not affiliated with Atlassian. Just a dev who wanted his AI tools to actually work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ai</category>
      <category>typescript</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
