<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Chaidir's engineering notes]]></title><description><![CDATA[Personal notes from my career journey in the software engineering.]]></description><link>https://chaidir.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6af0534728f250bd82b1323d/421cae59-9a6e-45be-8e3d-35c26a84624a.jpg</url><title>Chaidir&apos;s engineering notes</title><link>https://chaidir.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:33:54 GMT</lastBuildDate><atom:link href="https://chaidir.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[We Shipped 9 MRs a Day Then Code Review Broke": How We Built an AI Review Loop (Part-2)]]></title><description><![CDATA[See how we fixed our 9-MR-a-day code review bottleneck using Clean Architecture, custom Go skills, and an Opus reviewer sub-agent loop in Claude Code.]]></description><link>https://chaidir.hashnode.dev/we-shipped-9-mrs-a-day-then-code-review-broke-how-we-built-an-ai-review-loop-part-2</link><guid isPermaLink="true">https://chaidir.hashnode.dev/we-shipped-9-mrs-a-day-then-code-review-broke-how-we-built-an-ai-review-loop-part-2</guid><category><![CDATA[AI]]></category><category><![CDATA[Software Engineering]]></category><category><![CDATA[code review]]></category><category><![CDATA[golang]]></category><category><![CDATA[claude-code]]></category><dc:creator><![CDATA[Chaidir Yahya]]></dc:creator><pubDate>Tue, 01 Dec 2026 23:47:45 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af0534728f250bd82b1323d/9bb98d2e-9783-49ac-b27d-d8b43ebd8689.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Previously, I shared how we started wiring Claude Code into our daily SDLC (if you haven't read <a href="https://chaidir.hashnode.dev/if-we-don-t-start-now-we-ll-fall-behind-how-we-wired-claude-code-into-our-sdlc-part-1">Part 1</a> yet, I recommend starting there). At the end of that post, I mentioned that while our development velocity skyrocketed, we hit a brand-new wall: <strong>code review</strong>.</p>
<p>Now, our goal was to have Claude cover the <strong>Merge Request (MR) Review</strong> and <strong>Fix Feedback</strong> stages as well.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6af0534728f250bd82b1323d/ba8981ae-dbc0-452b-862b-1c74a00a5f2d.png" alt="" style="display:block;margin:0 auto" />

<p><em>(Quick disclaimer: This setup is tailored to my team's specific needs and stack. Your mileage may vary depending on how your team operates.)</em></p>
<p>Let's dive into how we tackled it.</p>
<h2>Rethinking Code Review: What Should Humans Actually Check?</h2>
<p>Our backend codebase enforces <strong>Clean Architecture</strong> alongside strict <strong>Dependency Injection</strong>. Historically, we treated code reviews just like writing code itself, reading changes almost line by line to maintain shared context across the team. Specifically, we strictly checked three things:</p>
<ol>
<li><strong>Core business &amp; use-case logic</strong></li>
<li><strong>Project structure:</strong> Where new files live and where logic belongs (<code>handler</code>, <code>usecase</code>, <code>repository</code>, utility functions, infrastructure, etc.)</li>
<li><strong>Code conventions:</strong> Variable, constant, and function/method naming</li>
</ol>
<p>Doing this manually for 9+ MRs a day was exhausting. So, as a team, we made a deliberate trade-off:</p>
<ul>
<li><strong>Items #2 and #3 (Structure &amp; Conventions):</strong> Hand off <strong>100%</strong> of the enforcement to Claude Code.</li>
<li><strong>Item #1 (Business Logic):</strong> Let Claude handle <strong>50%</strong> of the verification, while engineers focus their human supervision on the remaining <strong>50%</strong> especially when introducing brand-new business rules.</li>
</ul>
<p>We also categorized our MRs by risk level:</p>
<ol>
<li><strong>New Features</strong> → Requires extra human supervision on business logic.</li>
<li><strong>Bug Fixes</strong> → 100% reviewed by Claude Code (with test verification).</li>
<li><strong>Documentation</strong> → 100% reviewed by Claude Code.</li>
</ol>
<h2>Setting Guardrails: <code>golang-pattern</code> Skills &amp; Strict Test Contracts</h2>
<p>Before letting an AI review code, you have to teach it what "good" looks like in your repository.</p>
<p>First, we built our <code>golang-pattern</code> <strong>skill</strong> (since Go is our primary backend language). Instead of writing it from scratch, we used <a href="https://skillsmp.com/creators/affaan-m/ecc/kiro-skills-golang-patterns">this community Go patterns skill</a> as our baseline and customized it with our team's specific code conventions and formatting preferences (such as Uber's Go style guide and stanza style). This tailored skill acts as the single source of truth for how the <code>planner</code> designs changes and how the <code>implementer</code> writes them.</p>
<p><em>(Pro tip: Don't overload your setup with dozens of generic skills that just adds context noise. Only add skills that directly solve friction in your repo, such as a dedicated skill for database migrations if your project relies heavily on them.)</em></p>
<p>Second, for new features, we enforce <strong>100% unit test coverage on the use-case layer</strong>. While unit tests don't cover end-to-end integration between external APIs, they guarantee that the core business logic works as expected. And once again, this starts in the <code>planner</code> stage: inputs, expected processing steps, and return responses must all be explicitly defined before a single line of code is written.</p>
<h2>The Local Review Loop: Introducing the <code>reviewer</code> Sub-Agent</h2>
<p>To shift code review left (before an MR is even opened) we introduced a fourth custom sub-agent called <code>reviewer</code>, powered by <strong>Claude Opus</strong>.</p>
<p>We chose Opus here to replicate the deep, line-by-line reasoning an engineer does manually, just orders of magnitude faster. The <code>reviewer</code> spawns automatically right after <code>implementer</code> finishes and before <code>finalizer</code> runs. It audits the diff against two benchmarks:</p>
<ol>
<li><strong>Functional &amp; Technical Alignment:</strong> Does the code actually match the low-level plan and edge cases?</li>
<li><strong>Architectural Compliance:</strong> Does it strictly follow our <code>golang-pattern</code> conventions?</li>
</ol>
<p>If the <code>reviewer</code> catches an issue, it doesn't just dump warnings on us, it kicks off an automated <strong>fix loop</strong>. It reports the findings back to the main orchestrator agent, which re-spawns <code>implementer</code> to patch the issues, and then re-runs <code>reviewer</code> until the code passes cleanly. Only then does <code>finalizer</code> cut the branch, push the code, and open the MR with a compact summary.</p>
<p>Here is how our four-agent local pipeline looks now:</p>
<pre><code class="language-plaintext">You ──▶ main agent ──▶ planner ──▶ report
             │                      │
             │     (asks if plan needs human review)
             │                      │
             ├──▶ implementer ──▶ report
             ├──▶ reviewer ─────▶ report ──▶ [fix loop if findings]
             │       ▲               │
             │       └──implementer ◄┘
             │
             └──▶ finalizer ────▶ report ──▶ summary + branch + push + MR
</code></pre>
<p>We codified this exact orchestration flow inside our project's <a href="http://CLAUDE.md"><code>CLAUDE.md</code></a>, making it our default workflow every time we start a task.</p>
<p>Of course, we didn't blindly trust it on day one. During the first week, we manually double-checked its work and continuously tuned the sub-agents and skills until the output matched our standards. Today, for structural and convention checks, we rely almost entirely on those automated guardrails, focusing our manual review energy on the core business logic before merging to staging, where our automated test suites and real user-perspective scenarios catch any integration issues.</p>
<h2>Fixing MR Feedback (Human + SRE Bot)</h2>
<p>Even with a clean local pipeline, real MRs still get comments. Our SRE team also configured an independent <strong>Opus-powered review agent</strong> that runs automatically on GitLab whenever an MR is opened, meaning we get feedback from both our peers and an automated SRE reviewer.</p>
<p>When review comments land on an MR, our workflow stays fast:</p>
<ol>
<li>We ask Claude to fetch all open MR comments and evaluate their validity against the codebase.</li>
<li>For valid feedback, we trigger the <code>implementer</code> <strong>→</strong> <code>reviewer</code> <strong>→</strong> <code>finalizer</code> sequence again to apply the fixes, verify them locally, and push the updates directly to the existing branch.</li>
</ol>
<p><strong>Do we need the</strong> <code>planner</code> <strong>when fixing feedback?</strong> It depends on the scope. Small, straightforward tweaks go straight to <code>implementer</code>, while major architectural feedback loops back through <code>planner</code> first. And if a comment sparks an open product question with no decision yet, we simply note it as out-of-scope for now and ship what is already agreed upon.</p>
<h2>One Last Thing: Why Not Just Use an All-in-One Framework Like Superpowers</h2>
<p>Some of you might wonder why we built our own lightweight sub-agents instead of installing a popular, all-in-one agent framework like Superpowers.</p>
<p>It came down to two practical trade-offs:</p>
<ol>
<li>Transparency over "black-box" magic: Heavy frameworks bundle opinionated prompts and rigid workflows under the hood. For our team, it was critical to understand and explicitly control every rule guarding our codebase inside our own <code>CLAUDE.md</code> and custom skills.</li>
<li>Token efficiency: All-in-one skill suites inject massive system instructions and extra multi-step loops into the context window, burning significantly more tokens per task. Keeping our sub-agents lean and tailored strictly to our Go architecture gave us predictable behavior without unnecessary token overhead.</li>
</ol>
<h2>Did It Actually Break the Bottleneck?</h2>
<p>Short answer: <strong>yes.</strong></p>
<p>By shifting structural and convention checks left into a local <code>implementer</code> ↔ <code>reviewer</code> loop, our peer code reviews changed completely:</p>
<ul>
<li><strong>Less nitpicking, faster approvals:</strong> Engineers no longer spend mental energy hunting for misplaced files, naming mismatches, or missing unit tests those are caught before the MR even opens.</li>
<li><strong>Human focus stays where it matters:</strong> When we open a peer's MR now, we jump straight to evaluating core business logic, edge cases, and product trade-offs.</li>
<li><strong>High velocity without sacrificing stability:</strong> We kept our 3-9 MRs/day pace while keeping staging stable and review fatigue manageable.</li>
</ul>
<h2>Final Thoughts</h2>
<p>Looking back at that spontaneous chat with my HoE in March, the biggest lesson wasn't about prompting tricks or chasing the newest model, it was about <strong>foundation</strong>.</p>
<p>AI agents amplify whatever codebase you put them in. If your repository has messy folder boundaries and inconsistent patterns, autonomous sub-agents will just generate chaos faster. Because we already enforced <strong>Clean Architecture</strong>, <strong>Dependency Injection</strong>, and clear <strong>TDDs</strong>, our sub-agents had strict rails to run on.</p>
<p>In the AI era, strong software architecture isn't becoming obsolete, it's the exact thing that makes autonomous engineering possible.</p>
<p><em>How is your team handling the code review bottleneck as AI speeds up your development? Drop your thoughts in the comments. I'd love to compare notes.</em></p>
]]></content:encoded></item><item><title><![CDATA["If We Don't Start Now, We'll Fall Behind": How We Wired Claude Code Into Our SDLC (Part-1)]]></title><description><![CDATA[Learn how our engineering team wired Claude Code sub-agents (Opus,Sonnet,Haiku) across TDDs, planning, and MRs and the code review bottleneck we hit.]]></description><link>https://chaidir.hashnode.dev/if-we-don-t-start-now-we-ll-fall-behind-how-we-wired-claude-code-into-our-sdlc-part-1</link><guid isPermaLink="true">https://chaidir.hashnode.dev/if-we-don-t-start-now-we-ll-fall-behind-how-we-wired-claude-code-into-our-sdlc-part-1</guid><category><![CDATA[AI]]></category><category><![CDATA[Software Engineering]]></category><category><![CDATA[claude]]></category><category><![CDATA[System Design]]></category><dc:creator><![CDATA[Chaidir Yahya]]></dc:creator><pubDate>Fri, 27 Nov 2026 03:13:43 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af0534728f250bd82b1323d/9e2578c7-50c9-420e-ba8e-714dc63cc629.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>One afternoon in early March 2026, my Head of Engineering (HoE) and I had a quick chat about Claude. He said something spontaneously that stuck with me:</p>
<blockquote>
<p><em>"Dude, if we're not starting now, we will fall behind in the coming months"</em></p>
</blockquote>
<p>He wasn't talking about shipping a new feature or product release. He was talking about integrating AI into our Software Development Life Cycle (SDLC). He encouraged me to do a focused, deep-dive exploration into how Claude Code and its models could actually help our daily engineering workflow. He gave me one week to figure it out and present my findings to the entire engineering org.</p>
<p>At that time, our AI usage was pretty basic. We mostly relied on autocomplete or copy-pasting snippets into a Cursor Text Editor chat window and asking, <em>"What's wrong with this block of code?"</em></p>
<p>In this post, I won't cover basic setup, prompt templates, or general Claude Code features (you can find those <a href="https://code.claude.com/docs/en/overview">here</a>). Instead, I want to share how we actually wired Claude into our end-to-end engineering workflow. What worked, what didn't, and the unexpected bottleneck we hit along the way.</p>
<p><em>(Quick disclaimer: This setup is tailored to my team's specific needs and stack. Your mileage may vary depending on how your team operates.)</em></p>
<p>Let's dive in</p>
<h1>Our Baseline Development Flow</h1>
<p>Below is the basic development flow that we follow in daily basis :</p>
<img src="https://cdn.hashnode.com/uploads/covers/6af0534728f250bd82b1323d/642e22eb-9ee0-42bf-ad19-b8b520b244d9.jpg" alt="" style="display:block;margin:0 auto" />

<p>For our first milestone, our goal was to have Claude Code assist with at least 50% of the steps highlighted in blue and up to 100% wherever possible. Here is how each stage played out.</p>
<h2>TDD &amp; Grooming (What worked)</h2>
<p>It is no surprise that <strong>Claude Opus</strong> -Anthropic's most capable reasoning model- became our primary sparring partner for writing Technical Design Documents (TDDs).</p>
<p>We built a custom Claude Code sub-agent called <code>planner</code>, powered by Opus and spawned by our main orchestrator agent. Here is how it works:</p>
<ol>
<li><strong>Context Gathering:</strong> We feed the <code>planner</code> our core objective. It automatically explores our existing data sources such as database schemas, API contracts, legacy code, and past implementations.</li>
<li><strong>Clarification:</strong> It processes that context and asks us for missing pieces (like the PRD) or flags ambiguities that need human confirmation.</li>
<li><strong>Drafting &amp; Iteration:</strong> Once aligned, it generates the TDD. We review it carefully to ensure shared context, and if we aren't satisfied, we push back and challenge its edge cases until the design is solid.</li>
</ol>
<p>This back-and-forth alignment is the most critical step in the entire pipeline, because every downstream agent relies on the clarity of this document.</p>
<p>Once the TDD is locked in, we have Claude break it down into actionable tasks. These aren't just coding tasks but any unclear technical dependency gets converted into a tracked task too. The goal is a clear dependency graph: what needs to be built first, what is blocked, and what can run in parallel. Our Product Manager (PM) and Engineering Manager (EM) then set the final priorities.</p>
<h2>Sprint Planning (What Didn't Work)</h2>
<p>Initially, we hoped to connect Claude to our ticket board via MCP (Model Context Protocol) and let it auto-assign tasks based on team capacity.</p>
<p>In practice, we decided <strong>not</strong> to automate ticket assignment. Real-world team dynamics like shifting priorities, urgent hotfixes and who has the best context for a specific service change too rapidly (you could just call it <em>Agile</em> :D). Because Claude lacks that live organizational context, letting it assign tickets created more friction than value. So, sprint planning stayed strictly human.</p>
<h2>Task Pickup : Planning &amp; Implementation (What Worked)</h2>
<p>With our prioritized <code>To Do</code> backlog ready, we move into execution. Before Claude, we picked up tasks sequentially one by one. Now, while we still respect priority levels (<code>Urgent</code>, <code>High</code>, <code>Normal</code>, <code>Low</code>), we can run multiple independent tasks in parallel.</p>
<h3>Low-Level Planning (<code>planner</code> + Opus)</h3>
<p>The tasks generated during TDD grooming are usually high-level. Before writing code, we run the <code>planner</code> sub-agent again on a specific ticket to sharpen it into a low-level execution plan. It maps out the exact files to create, update, or delete, and flags out-of-repo infrastructure work (like adding a new Pub/Sub topic/subscriber or configuring keys in Secret Manager).</p>
<p>Just like with the TDD, we review the plan carefully and if we aren't satisfied, we push back and challenge its assumptions. It is another critical back-and-forth alignment step before any code is written.</p>
<h3>Implementation (<code>implementer</code> + Sonnet)</h3>
<p>Next, we hand that granular plan to a second custom sub-agent called <code>implementer</code>, running on <strong>Claude Sonnet</strong>.</p>
<p>We deliberately downgraded the model from Opus to Sonnet here. During implementation, the agent shouldn't be overthinking architecture, it just needs to execute the low-level plan accurately and write clean code. The <code>implementer</code>also writes unit tests targeting 100% use-case coverage (roughly 85% overall repository coverage) and automatically moves the ticket status from <code>To Do</code> to <code>IN PROGRESS</code>.</p>
<h1>Merge Request Creation (What Work)</h1>
<p>For the final step, we use a third sub-agent called <code>finalizer</code>, powered by <strong>Claude Haiku</strong>. Since Git operations don't require heavy reasoning, Haiku is fast, cheap, and more than enough for the job.</p>
<p>The <code>finalizer</code> handles the repetitive wrap-up:</p>
<ul>
<li>Cuts a feature branch from <code>main</code></li>
<li>Commits and pushes the changes</li>
<li>Opens a Merge Request (MR) with a clean, structured description</li>
<li>Posts the MR link back to the ticket and updates its status to <code>IN CODE REVIEW</code></li>
</ul>
<h1>The New Bottleneck</h1>
<p>Can you guess where everything suddenly slowed down?</p>
<img src="https://cdn.hashnode.com/uploads/covers/6af0534728f250bd82b1323d/e35a775f-2de9-4fb0-91a6-2cfb0539687d.jpg" alt="" style="display:block;margin:0 auto" />

<h3><strong>Code review.</strong></h3>
<p>Chaining planning, implementation, and MR creation into a semi-autonomous pipeline made development insanely fast. Before Claude, an engineer might ship 1 to 3 MRs a day. With this setup, shipping 3 to 6 MRs (even 10 MRs) a day became normal. If you have three peers on your team, that suddenly means reviewing at least <strong>9 MRs every single day</strong>, which quickly becomes exhausting.</p>
<p>How did we solve this code review bottleneck without sacrificing quality? I'll break that down in <a href="https://chaidir.hashnode.dev/we-shipped-9-mrs-a-day-then-code-review-broke-how-we-built-an-ai-review-loop-part-2">Part 2</a>.</p>
]]></content:encoded></item></channel></rss>