<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aniket Mukherjee on Medium]]></title>
        <description><![CDATA[Stories by Aniket Mukherjee on Medium]]></description>
        <link>https://medium.com/@mukherjee-aniket?source=rss-f399084c415c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lpfN6XV5cBnOBcg69gOcpw@2x.jpeg</url>
            <title>Stories by Aniket Mukherjee on Medium</title>
            <link>https://medium.com/@mukherjee-aniket?source=rss-f399084c415c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:24:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mukherjee-aniket/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stop letting AI do your learning for you]]></title>
            <link>https://mukherjee-aniket.medium.com/stop-letting-ai-do-your-learning-for-you-862d58a39bae?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/862d58a39bae</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 18:15:32 GMT</pubDate>
            <atom:updated>2026-11-06T18:15:32.739Z</atom:updated>
            <content:encoded><![CDATA[<p>How I use agentic coding tools to learn a new stack, not just ship it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7rbCv0r_zdfb3aNvVJrPjQ.png" /><figcaption>Build it. Learn it.</figcaption></figure><blockquote>“How should a newcomer learn SDLC properly?”</blockquote><blockquote>“How do I get real depth in a new stack, fast?”</blockquote><p>I hear both questions a lot, from very different people.</p><p>I’ve tried a few ways of working with agentic coding tools. Most gave me working code and very little understanding. This one did better. It’s not perfect, and I keep tweaking it, but it’s the best I’ve found so far.</p><p>The agent does the boring parts and leaves the parts that teach to me. It works with any agentic coding tool. I used Claude Code. The template is at the end.</p><h3>The one rule that matters</h3><p>Every step in the roadmap is split in two:</p><blockquote>**** boilerplate. The agent does it.</blockquote><blockquote>**** the code with real learning value. I write it. The agent reviews it and is not allowed to rewrite it.</blockquote><p>Everything else in the template supports that split.</p><h3>How a step runs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AOz8mtHfjBkZ4B1s1JxMOw.png" /><figcaption>the 6-step workflow</figcaption></figure><ol><li>Before any code gets written, the agent writes the plan for the step.</li><li>Then a separate reviewer checks that plan against current practice. The reviewer can be a sub-agent or a fresh session. Either way, it uses web search, because libraries get deprecated between the day you write the design and the day you build the step.</li><li>I read the plan and the review, and only then does anyone write code.</li></ol><h3>The documents that make it stick</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jspn2Pj1TaWr-158ZoA8qg.png" /><figcaption>the six repo documents</figcaption></figure><p>Session 0 produces design documents only, with no code. After that, the documents grow with the project.</p><p>The agent rules file holds the working agreement. Most tools load one automatically: CLAUDE.md in Claude Code, AGENTS.md or .github/copilot-instructions.md elsewhere. Because the file lives in the repo, every new session follows the same rules.</p><p>The document I value most is KNOWLEDGEBASE.md, because only I write in it. That&#39;s where the learning stays.</p><h3>Why it works</h3><p>Newcomers <em>live</em> the SDLC instead of reading about it: design, decisions, TDD, runbooks and reviews.</p><p>Architects get breadth fast: security, observability, deployment and data for a new stack, all in one project.</p><p>Both end up with a working system and notes they wrote themselves.</p><h3>Three things I learned using it</h3><ul><li>Be honest about your priorities. The roadmap goes deepest on whatever you rank first.</li><li>Don’t hand over your [U] work when you’re tired. That’s exactly when the template stops working.</li><li>A “reject” from the reviewer is good news. It caught a problem before you wrote the code.</li></ul><p>AI writes code faster than any of us. It can’t learn for us.</p><p>This is where I’ve got to so far. If you try it and find a better way, tell me. I’ll happily steal it for the next version.</p><h3>The template</h3><p>Paste it as your first message to your agentic coding tool in an empty repo, and fill in the [PLACEHOLDERS].</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0904180aa1fa8550a51891750dbefb99/href">https://medium.com/media/0904180aa1fa8550a51891750dbefb99/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=862d58a39bae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the Harness: How the Hook Chain, Lesson Files, and Audit Trail Actually Work — Part 2]]></title>
            <link>https://mukherjee-aniket.medium.com/inside-the-harness-how-the-hook-chain-lesson-files-and-audit-trail-actually-work-part-2-636437e54aae?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/636437e54aae</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[loop-engineering]]></category>
            <category><![CDATA[harness-engineering]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 17:52:48 GMT</pubDate>
            <atom:updated>2026-07-05T17:52:48.399Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/704/0*yDLmO6CUUQfStf7b" /><figcaption>Harness — the Hook Chain</figcaption></figure><h3>The thirty-second recap</h3><p>Part 1 made one claim: you can run an autonomous coding loop where broken code cannot exit, not because you trust the AI to be careful, but because a deterministic process enforces correctness independently of the agent. That deterministic process is the harness, the layer of hooks, rules, and gates that sits between the orchestrator and the agent.</p><p>The harness is built from four components.</p><ol><li>A dependency-ordered backlog (prd.json) with a per-story cost cap.</li><li>A CLAUDE.md context file under 200 lines that gives every fresh session the same architectural invariants.</li><li>Three hooks wired into .claude/settings.json — access control before tool calls, formatting after every edit, and a quality gate at session end.</li><li>And a bounded retry system that promotes repeated failures to path-scoped lesson files rather than retrying indefinitely.</li></ol><p>The gate is the load-bearing component of the harness. The rest of this post explains exactly how it works, what happens when it fails, and what the evidence trail looks like when something goes wrong.</p><p><strong>Part 1</strong> : <a href="https://medium.com/@mukherjee-aniket/the-gate-not-the-ai-the-one-architectural-decision-that-determines-whether-you-can-trust-5f519160bea5">https://medium.com/@mukherjee-aniket/the-gate-not-the-ai-the-one-architectural-decision-that-determines-whether-you-can-trust-5f519160bea5</a></p><p>Here is the most counterintuitive thing the loop does: when it cannot make progress on a story, it doesn’t retry indefinitely. It encodes what it learned into a path-scoped lesson file, halts cleanly, and leaves a full evidence trail.</p><p><strong>The halt is the correct output when something is genuinely wrong — not a failure of the system, a signal from it.</strong></p><p>Everything that follows explains how that signal is generated, what it contains, and how the rest of the loop is designed to prevent the false signals that would make it untrustworthy.</p><h3>The audit trail — start here, not at the end</h3><p>Every story implementation attempt produces two artefacts. This is the evidence the loop runs on — worth seeing before the mechanism that generates it.</p><pre>.ralph/logs/STORY-002/attempt-1.meta.json<br>.ralph/logs/STORY-002/attempt-1.transcript.jsonl</pre><p>meta.json contains:</p><pre>{<br>  &quot;story&quot;: &quot;STORY-002&quot;,<br>  &quot;attempt&quot;: 1,<br>  &quot;exit_code&quot;: 0,<br>  &quot;cost_gbp&quot;: 0.47,<br>  &quot;input_tokens&quot;: 12400,<br>  &quot;output_tokens&quot;: 3100,<br>  &quot;timestamp&quot;: &quot;2026-06-27T09:14:22Z&quot;,<br>  &quot;gate_result&quot;: &quot;pass&quot;<br>}</pre><p>transcript.jsonl is the complete sequence of every tool call and file edit the agent made, in order. It is the answer to &quot;why did the agent do that on Thursday&quot; — not an approximation, the actual record.</p><p>cost_gbp accumulates in prd.json across all attempts per story. At programme scale, this becomes: <strong>&quot;we spent £847 in agent compute across 340 stories in Q2, 94% within budget</strong>.&quot; That is a governance number, not a technology number. It belongs on the same board report as your DORA metrics.</p><h3>The repo is two things at once</h3><p>The factory and the product live in the same repository. Not for convenience, because the factory needs to read the product to know what to build next. Lesson files in .claude/rules/lessons/ are path-scoped to files in app/. The backlog in prd.json references routes that will land in app/routers/. Separating them breaks the context chain.</p><pre>app/            FastAPI backend — routers, services, models, llm/<br>frontend/       Vite + React + TypeScript SPA<br>tests/          pytest — 80% coverage floor<br>migrations/     Alembic async, append-only<br>loops/          orchestrator.py<br>.ralph/         prd.json · config.json · logs/ · last_failure.txt<br>.claude/        rules/ · skills/ · hooks/ · settings.json<br>CLAUDE.md       agent context — under 200 lines</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/0*w4YXj8sXtq9jUthB" /><figcaption>The dual-layer repo — product and factory coexisting</figcaption></figure><h3>The loop execution model</h3><p>The orchestrator selects the next story with all dependencies satisfied, opens a fresh claude -p session, and runs the full hook chain. Here is the complete execution path — including the two branches almost every other agentic loop gets wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/0*qZSZWMunm-Jpl_yA" /><figcaption>Loop execution flow — select, implement, gate, commit or learn</figcaption></figure><ol><li><strong>The failure signature branch.</strong> When the stop hook fails, the orchestrator writes last_failure.txt with a category and the first failing path. If the same hash(category + first failing path) appears on a second attempt, the failure is promoted to a path-scoped lesson file under .claude/rules/lessons/. Future sessions touching that path inherit the lesson. The loop does not retry forever hoping the agent figures it out — it encodes what it can, then halts.</li><li><strong>The halt branch.</strong> When attempts are exhausted or the per-story cost ceiling is hit, the loop halts cleanly. It does not lower the gate. It does not auto-proceed. It leaves last_failure.txt and the full session transcript as evidence. A human reviews it. This is the correct output.</li></ol><h3>The hook chain</h3><p>Three hooks, each doing exactly one job. These are the harness’s enforcement layer, none are LLM-mediated. They are deterministic subprocesses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/0*D9bKAaE1Sm3sFY77" /><figcaption>The three-hook chain — PreToolUse, agent, PostToolUse, Stop hook</figcaption></figure><ol><li><strong>PreToolUse</strong> fires before every tool call. Its only job: deny reads or writes to .env and any secrets file. The agent cannot accidentally read credentials because it literally cannot access them.</li><li><strong>PostToolUse</strong> fires after every file write. It runs ruff --fix and ruff format for Python, eslint --fix and prettier --write for TypeScript. The agent never manages formatting — the hook enforces it on every write automatically.</li><li><strong>Stop hook</strong> is the gate. It runs the full quality suite — both surfaces, regardless of what the agent touched. Tools are resolved from the project .venv. A missing tool is a failure, not a skip. Zero file changes is a failure, not a pass.</li></ol><p>This is the only hook that cannot be weakened without breaking the trust model. The other two serve it.</p><h3>The <a href="https://claude.md/">CLAUDE.md</a> file — what it contains and why it’s bounded</h3><p>Every claude -p session starts with no memory of previous sessions. CLAUDE.md is the persistent context injected at session start. It stays under 200 lines — beyond that, the agent starts deprioritizing rules from the middle of the document.</p><p>Four sections, nothing else:</p><ol><li><strong>Section 1 — Architectural invariants</strong> (each one enforced by the stop hook):</li></ol><ul><li>Money is stored as integer pence in a Numeric column. Never float. A float in a financial calculation is a test failure.</li><li>user_id on every owned table from migration 1. Auth is a later phase; the schema is multi-tenant-ready before auth exists.</li><li>All LLM calls go through app/llm/llm_client.py. No router or service imports a provider SDK directly.</li></ul><p><strong>2. Section 2 — Story format and done criteria.</strong> What a prd.json entry looks like, what fields are required, what &quot;done&quot; means operationally: gate passes, no-op guard passes, cost_gbp recorded.</p><p><strong>3. Section 3 — Rules system index.</strong> Where path-scoped rules live, how they are named, which paths trigger which files. The agent reads this before reading code.</p><p><strong>4. Section 4 — Gate commands.</strong> The exact commands to run before considering any implementation complete. Written explicitly so a fresh session cannot guess wrong.</p><h3>Path-scoped lessons — what makes them work and what doesn’t</h3><p>When the same failure signature hits twice, the orchestrator writes a lesson file. Here is what a useful one looks like:</p><pre># Lesson: async-session-execute — app/routers/</pre><pre>## Failure pattern<br>Using session.execute() directly on an async SQLAlchemy session.</pre><pre>## Correct pattern<br>Always await session.execute(). The sync form silently returns<br>a coroutine object instead of a result set — passing type checks<br>but failing at runtime.</pre><pre>## Applies to<br>app/routers/, app/services/</pre><p>When the orchestrator starts a new session, it scans lesson files whose path scope overlaps the current story’s target paths and prepends them to the context. A session working on frontend/src/ does not see lessons scoped to app/routers/.</p><p>A good lesson file has three properties: it identifies a specific code pattern, it names the path scope explicitly, and it provides the correct pattern — not just the wrong one. “Write better code” is not a lesson. “Don’t use session.execute() without await&quot; is. The mechanism works when all three properties are present. When they&#39;re absent, the file is noise.</p><p><strong>One honest note on scale:</strong> lesson files accumulate without automatic pruning. At Lighthouse scale, 50–100 stories, this has not been a problem in practice. At 2,500-engineer scale it becomes a governance process: quarterly review, prune resolved lessons, archive patterns that have been absorbed into CLAUDE.md invariants. That process does not exist yet in this harness. Build it before you scale.</p><h3>Running it</h3><pre>cp .env.example .env                              # add ANTHROPIC_API_KEY</pre><pre>python loops/prd_check.py                         # validate the backlog<br>python loops/orchestrator.py                      # run the full ready backlog<br>python loops/orchestrator.py --story STORY-002    # run one story explicitly</pre><pre># inspect a run<br>cat .ralph/logs/STORY-002/attempt-1.meta.json<br>cat .ralph/logs/STORY-002/attempt-1.transcript.jsonl</pre><p>The loop runs without <strong>supervision</strong>. When it halts, last_failure.txt and the session transcript tell you exactly what happened, in sequence, at exact cost.</p><p><em>Part 3 is the implementation guide — the actual GitHub Actions YAML, the FastAPI microservice, and the full </em><em>CLAUDE.md so you can clone, run, and adapt this harness for your own project.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=636437e54aae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Gate, Not the AI: The One Architectural Decision That Determines Whether You Can Trust…]]></title>
            <link>https://mukherjee-aniket.medium.com/the-gate-not-the-ai-the-one-architectural-decision-that-determines-whether-you-can-trust-5f519160bea5?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f519160bea5</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[agentic-coding]]></category>
            <category><![CDATA[loop-engineering]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 22:47:45 GMT</pubDate>
            <atom:updated>2026-06-28T22:47:45.287Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Gate, Not the AI: The One Architectural Decision That Determines Whether You Can Trust Autonomous Code Generation — Part 1</h3><figure><img alt="The trust gap — trusting the AI vs trusting the gate" src="https://cdn-images-1.medium.com/max/944/0*6Ke4e0r07_P1ZYKB" /></figure><h3>The rework nobody is logging</h3><p>Your AI adoption metrics look good. Copilot acceptance is up. Developers say they’re moving faster.</p><p>Your change failure rate is roughly where it was.</p><p>That gap has a name: <strong>unlogged rework.</strong> Forrester’s 2025 analysis found that 22–38% of self-reported AI productivity gains are absorbed by correction work that never gets logged, code that was accepted, then quietly fixed before review, or after review, or after deployment. The productivity number is real. The net number is smaller. Most organizations aren’t measuring the difference.</p><p>This isn’t a criticism of AI tooling. It’s a measurement problem that becomes a governance problem at scale. When you move from individual Copilot usage to autonomous agentic loops running across your delivery pipeline, unlogged rework doesn’t stay invisible and it shows up in your DORA metrics. Lead time climbs. Change failure rate drifts. And the audit trail that regulated industries require for AI-assisted delivery simply doesn’t exist.</p><p>The question isn’t whether AI can write code. It clearly can. The question is: <strong>what does your verification layer look like when the AI writes the tests too?</strong></p><p><em>If the agent has a systematic blind spot, it writes that blind spot into its own test suite. The tests pass. The gate is green. The code ships. You find the problem in production or in an audit.</em></p><h3>The architectural answer</h3><p>The answer is not a better prompt. It’s not a more capable model.</p><p>It’s a verification layer the agent cannot influence.</p><p>I built a coding harness on top of Claude Code where a story cannot be marked complete unless a deterministic quality gate passes: pytest at 80% coverage, mypy for types, ruff for lint on the Python backend; tsc --noEmit, vitest, and eslint on the TypeScript frontend. These run as Claude Code stop hooks, subprocesses that execute independently of the agent. The agent does not run them. The harness does.</p><blockquote><strong>You don’t trust the AI. You trust the gate.</strong></blockquote><p>One clarification worth making explicit: this harness enforces <strong>structural correctness</strong>, not semantic correctness. A logically wrong implementation that satisfies structurally sound tests will still pass. The gate is not a substitute for human-authored acceptance tests derived from a real specification. It is the floor below which nothing can ship — a necessary control, not a sufficient one.</p><p>That scoping matters. A gate that claims to do more than it does is a false confidence generator. This one doesn’t.</p><figure><img alt="The four-layer hook architecture" src="https://cdn-images-1.medium.com/max/944/0*aW9h_l0UuLXFaVnL" /></figure><h3>What moves on your DORA scorecard</h3><p>Your DORA metrics don’t care whether code was written by a human or an agent. They care about outcomes. An autonomous coding loop where broken code cannot exit, not because the AI is careful, but because a deterministic process blocks it — is a change failure rate story. A lead time story. Specifically, it’s the story of what happens when you move verification from “engineer reviews the diff” to “gate enforces the invariant before the diff exists.”</p><p>The human gate doesn’t disappear. It moves upstream. Instead of reviewing every PR, a Conductor Engineer (a senior engineer responsible for harness architecture and story quality rather than individual diffs) reviews hook definitions, CLAUDE.md design, and backlog decomposition. The leverage shifts from throughput to design. One well-designed gate replaces hundreds of individual PR checks.</p><p>That is a different operating model, not an incremental one. It is what Phase 3–4 of the agentic maturity model looks like in practice, the model worth proving in a Lighthouse sprint before you scale it to 2,500 engineers.</p><p><strong>Scope note:</strong> this describes the development phase of the SDLC — Phase 3 of seven in the DORA-aligned agentic framework. This harness is not a full agentic SDLC. It is a proven implementation of one phase. The planning agent, architecture review gate, security scanning integration, and deployment loop are adjacent work. This is the foundation.</p><h3>The insight that took longest to internalize</h3><p>From the business case to the hardest practical lesson: the one thing that distinguishes a sophisticated agentic loop from a naive one.</p><p><strong>A </strong>claude -p<strong> run that changes nothing is a failure.</strong></p><p>Not a pass. Not a skip. A failure treated identically to a test failure, logged, counted against the story’s attempt budget.</p><p>Before I added this guard, the agent would occasionally conclude that an existing implementation already satisfied the story’s requirements i.e. inspect the codebase, find code that looked close enough, exit cleanly. Technically defensible. Practically useless. The story was marked done. No work had been produced. The backlog advanced.</p><p>The no-op guard closes that degenerate case. An agent that produces nothing either made a genuine mistake (retry) or the story was already done in which case it should not have been in the ready backlog. There is no third option. Document it. Build the guard. It matters more than any prompt optimization you will do.</p><figure><img alt="The loop in 60 seconds" src="https://cdn-images-1.medium.com/max/953/0*DahRCwdPbD9HJobd" /></figure><h3>What this is, and what it isn’t</h3><p>This is a implementation of the development phase of an agentic SDLC. It enforces structural correctness autonomously. It produces a full cost and decision audit trail. It does not replace human-authored acceptance tests. It does not cover planning, architecture review, security scanning, or deployment.</p><p>Here’s where this post sits in the full journey and what Parts 2 &amp; 3 is going to cover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*IQwF4zZzFDQDvv9B0quy9w.png" /></figure><p>The claim is specific: within the development phase, you can move from “human reviews every PR” to “deterministic gate enforces quality before the PR exists” and that move is auditable, governable, and measurable against your DORA baseline.</p><p>The specific claim is worth making. The overstated version — “I built an agentic SDLC” — is not. The specific version is what you can prove in a Lighthouse sprint. Prove it there before you scale it.</p><blockquote>Part 2 has the full hook chain, the path-scoped lesson injection diagram, and the exact audit trail format , for engineers who want to build this rather than evaluate it.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f519160bea5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three levels of agent autonomy in regulated environments]]></title>
            <link>https://mukherjee-aniket.medium.com/three-levels-of-agent-autonomy-in-regulated-environments-522928336454?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/522928336454</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[engineering-leadership]]></category>
            <category><![CDATA[ai-governance]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Fri, 29 May 2026 18:45:29 GMT</pubDate>
            <atom:updated>2026-05-29T18:47:39.302Z</atom:updated>
            <content:encoded><![CDATA[<p>Most “human-in-the-loop” systems aren’t. A field guide to classifying what your agent is actually allowed to do — before security review does it for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DdoMN-QO5giCMcgQ.png" /></figure><p>Originally posted in <a href="https://thecontrolplane.beehiiv.com/p/three-levels-of-agent-autonomy-in-regulated-environments">https://thecontrolplane.beehiiv.com/p/three-levels-of-agent-autonomy-in-regulated-environments</a>. Subscribe to get the latest updates.</p><p>A customer messages support at 9pm. Their order arrived damaged. They want a refund for £47.</p><p>There are three ways the next five minutes can go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DMHp7ik0ohzLfUNT" /></figure><p>From the outside, these can look like the same feature at different levels of sophistication.</p><h3>They are not.</h3><p>They are different systems with different architectures, governance models, and failure modes.</p><p>By “regulated environments,” I mean places where misclassifying autonomy becomes a compliance conversation: banks, insurers, healthcare providers, government, and large enterprises with formal risk controls.</p><h3>The mistake most teams make</h3><ul><li>Most teams classify autonomy too late.</li><li>They build the demo first and only later ask:</li><li><em>What is this agent actually allowed to do without a human?</em></li><li>By then, the architecture has usually already made the decision for them.</li><li>The important thing to understand is this:</li></ul><p><strong>Autonomy level is not a feature setting. It is an architectural decision.</strong></p><p>And there is one failure mode that shows up constantly in regulated environments.</p><p>Teams think they have built a <strong>“human-in-the-loop” s</strong>ystem.</p><p>In reality, the human is clicking approve on a summary generated by the agent itself.</p><p>The human is approving the agent’s description of what the agent intends to do — not the action itself.</p><p>That is not meaningful oversight. <strong>It is approval theatre.</strong></p><h3>The three levels</h3><h3>1. Human-only</h3><p>The agent does not act.</p><p>It drafts, summarizes, retrieves context, or recommends options. A human owns the action end-to-end.</p><p><strong>Refund example:</strong></p><ul><li>the agent drafts the response,</li><li>the human sends it,</li><li>the human issues the refund manually.</li></ul><p>Use when:</p><ul><li>consequences are high,</li><li>situations are novel,</li><li>or accuracy matters more than speed.</li></ul><p>A good Human-only system is often more valuable than a badly designed autonomous one.</p><h3>2. Hybrid</h3><p>The agent recommends a specific action. A human approves the action itself, and the agent executes it.</p><p>Refund example:</p><ul><li>the agent prepares the £47 refund,</li><li>the human reviews the exact action,</li><li>the human authorizes it.</li></ul><p>This is where most regulated-environment AI systems actually sit today.</p><p>The common failure mode is the approval theatre we already named:</p><ul><li>the human lacks context,</li><li>the approval is rushed,</li><li>the agent frames the decision.</li></ul><p>At that point, the “human oversight” is mostly decorative.</p><h3>3. Autonomous-within-guardrails</h3><p>The agent acts without per-action human approval inside a tightly defined operational envelope.</p><p>Refund example:</p><ul><li>refunds under £50,</li><li>accounts in good standing,</li><li>known claim patterns.</li></ul><p>The agent processes the refund automatically.</p><p>Oversight becomes systemic:</p><ul><li>metrics,</li><li>anomaly detection,</li><li>sampling,</li><li>circuit breakers.</li></ul><p>The important thing here is that the envelope is enforced in code, not policy documents.</p><p>The £50 limit is not guidance.</p><p>It is architecture.</p><h3>What actually changes between levels</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fsq2G0VtNUOF2TUv" /></figure><p>The autonomy level changes much more than who clicks the final button.</p><p><strong>Human-only</strong></p><ul><li><strong>Identity:</strong> the user’s own identity is enough</li><li><strong>Oversight:</strong> standard application logging</li><li><strong>Blast radius:</strong> small — the outputs are drafts, not actions</li></ul><p><strong>Hybrid</strong></p><ul><li><strong>Identity:</strong> the agent needs its own identity</li><li><strong>Oversight:</strong> every action traceable to both agent and human approver; the approval gate is the primary control point</li><li><strong>Blast radius:</strong> bounded by what a human would have approved</li></ul><p><strong>Autonomous-within-guardrails</strong></p><ul><li><strong>Identity:</strong> a first-class operational actor, with permissions tightly scoped and enforced in code</li><li><strong>Oversight:</strong> real-time monitoring and anomaly detection become mandatory</li><li><strong>Blast radius:</strong> the size of the operational envelope itself</li></ul><p>If your agent can autonomously refund up to £50, your exposure is not one mistaken refund.</p><p>It is the total amount the system could process before someone notices.</p><h3>The useful exercise</h3><p>Pick one agentic system your team is building.</p><p>Classify it honestly:</p><ul><li>Human-only</li><li>Hybrid</li><li>Autonomous-within-guardrails</li></ul><p>Not the level in the deck.</p><p>The level the system actually operates at once you look at how oversight works in practice.</p><p>Most teams discover they are operating at a higher autonomy level than they thought.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=522928336454" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an End-to-End Cloud Platform in Hours: A DevSecOps Experience with Claude Code]]></title>
            <link>https://mukherjee-aniket.medium.com/building-an-end-to-end-cloud-platform-in-hours-a-devsecops-experience-with-claude-code-39e2b067e6e0?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e2b067e6e0</guid>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 11:33:41 GMT</pubDate>
            <atom:updated>2026-02-14T12:36:10.032Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*_NqRshdlRxWEHUZzwFxe5A@2x.jpeg" /><figcaption>Pic generated by Chatgpt</figcaption></figure><p>I recently had one of those rare engineering experiences that fundamentally changes how you look at your craft.</p><p>Within hours, I managed to build a full end-to-end React application backed by 12 independent backend services, complete with:</p><p>•	CI/CD pipelines</p><p>•	Infrastructure as Code (IaC)</p><p>•	Secure configurations</p><p>•	Kubernetes deployment</p><p>•	A fully managed cloud environment</p><p>And the most surprising part?</p><p>I didn’t do it alone. I did it with Claude Code, powered by Anthropic.</p><h4>From Idea to Production-Ready Stack – Fast</h4><p>Traditionally, standing up this kind of system would take days – sometimes weeks.</p><p>You know the drill:</p><p>•	Writing Terraform modules</p><p>•	Debugging IAM policies</p><p>•	Wrestling with Kubernetes manifests</p><p>•	Fixing CI pipelines that break for no obvious reason</p><p>•	Hunting vulnerabilities after the fact</p><h4>This time was different.</h4><p>Claude didn’t just generate code. It:</p><p>•	Diagnosed configuration issues on its own</p><p>•	Fixed broken Kubernetes manifests</p><p>•	Identified security vulnerabilities before deployment</p><p>•	Suggested better architectural patterns</p><p>•	Tuned CI/CD workflows to actually work end-to-end</p><p>It felt less like pair programming – and more like having an entire platform team condensed into a single interface.</p><blockquote>Watching Kubernetes Troubleshooting in Real Time</blockquote><p>Anyone who has managed Kubernetes in production knows the pain.</p><ul><li>Finding the right kubectl commands.</li><li>Digging through logs across namespaces.</li><li>Figuring out why a pod is in CrashLoopBackOff at 2 a.m.</li></ul><p>Honestly?</p><p>It’s a nightmare.</p><p>What stunned me was watching Claude troubleshoot the cluster:</p><p>•	Inspecting logs</p><p>•	Identifying misconfigured services</p><p>•	Adjusting resource definitions</p><p>•	Explaining why things were failing</p><blockquote>All of this happened in minutes.</blockquote><p>While I used to jump between terminals, dashboards, and documentation, Claude stitched everything together instantly.</p><blockquote>I wasn’t debugging anymore. I was observing.</blockquote><p>And that, for me, was a moment of pure spectacle.</p><h4>DevSecOps, Reimagined</h4><p>Security didn’t feel bolted on – it felt native.</p><p>Claude:</p><p>•	Flagged insecure configurations</p><p>•	Suggested hardened defaults</p><p>•	Helped align infrastructure with least-privilege principles</p><p>•	Ensured vulnerabilities were addressed before exposure</p><blockquote>This wasn’t reactive security. This was DevSecOps by design.</blockquote><h4>Key Learnings</h4><p>As powerful as this experience was, it came with important lessons.</p><ol><li>Power Requires Boundaries</li></ol><p>Claude is incredibly capable – but human judgment is still essential.</p><p>You must define constraints, security boundaries, and architectural intent clearly.</p><p>2. Deploy to Test Environments Early</p><p>The faster you deploy – even imperfectly – the faster you uncover real-world issues.</p><p>Claude excels when it can reason against actual environments.</p><p>3. Record and Reinforce Rules Frequently</p><p>Claude gets better when you consistently document:</p><p>•	Coding standards</p><p>•	Security rules</p><p>•	Infrastructure conventions</p><p>Treat those rules as living documentation.</p><h4>Final Thoughts</h4><p>This wasn’t just about speed.</p><p>It was about changing the nature of engineering work.</p><p>Less time spent fighting tools.</p><p>More time spent making decisions that matter.</p><p>For the first time in a long while, managing cloud infrastructure felt… enjoyable.</p><p>And that’s something I didn’t expect to say about Kubernetes 😀.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e2b067e6e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Changed My Mind About Monorepos]]></title>
            <link>https://mukherjee-aniket.medium.com/how-ai-changed-my-mind-about-monorepos-cb76d3d1110d?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb76d3d1110d</guid>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Sat, 07 Feb 2026 18:30:33 GMT</pubDate>
            <atom:updated>2026-02-07T18:38:00.970Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*gL28t-PvltJKn9tGE02ycQ@2x.jpeg" /><figcaption>Image generated by Chatgpt</figcaption></figure><p>For years, the monorepo vs. multirepo debate revolved around human limitations – team coordination, cognitive load, CI pain. But AI doesn’t get overwhelmed by repo size – it gets blocked by missing context.</p><p>I used to think monorepos were overkill.</p><p>Too big. Too slow. Too hard to manage.</p><p>Then I started using agentic AI tools like Claude Code – and suddenly, the old debate felt outdated.</p><blockquote>The Small Task That Opened My Eyes</blockquote><p>I was tweaking an API response and updating the frontend to match. Nothing dramatic, just a routine change.</p><p>I pointed claude at it. In a few minutes, it:</p><p>•	updated the backend handler</p><p>•	fixed the shared types</p><p>•	updated all frontend usages</p><p>•	ran tests and fixed failing snapshots</p><p>All in one clean commit.</p><p>No handoffs. No coordination. Just context.</p><blockquote>Why Multirepos Would’ve Slowed Me Down</blockquote><p>I’ve done similar tasks across multiple repos before. It usually looks like:</p><p>1.	Backend PR</p><p>2.	Publish shared-types update</p><p>3.	Frontend PR</p><p>4.	Wait for CI</p><p>5.	Merge</p><p>6.	Pray nothing broke 😀</p><p>That workflow exists to protect humans from complexity – but it’s friction for AI.</p><p>The AI doesn’t care about team boundaries. It cares about having full context.</p><blockquote>Repo Boundaries Were Made for Humans</blockquote><p>Most repo splits exist for good reasons:</p><p>•	team autonomy</p><p>•	access control</p><p>•	cognitive load</p><p>AI doesn’t get overwhelmed by code size. It gets blocked by missing information.</p><p>Monorepos remove those artificial walls. They let AI reason across the system end-to-end.</p><blockquote>Monorepos Aren’t Magic</blockquote><p>A messy monorepo is still a mess:</p><p>•	unclear structure</p><p>•	weak CI</p><p>•	inconsistent patterns</p><p>But a well-structured monorepo + AI:</p><p>•	reduces handoffs</p><p>•	makes atomic changes easy</p><p>•	keeps everything in context</p><p>Humans focus on architecture. AI handles the mechanics.</p><blockquote>The Shift I Didn’t Expect</blockquote><p>Monorepos optimize for machines.</p><p>Multirepos optimize for humans.</p><p>With agentic AI, mechanical work isn’t the bottleneck anymore – coordination is.</p><p>Monorepos didn’t suddenly get better. AI just made fragmentation more expensive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb76d3d1110d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Real Problem With Code Review – and What Happens When AI Writes the Code]]></title>
            <link>https://mukherjee-aniket.medium.com/the-real-problem-with-code-review-and-what-happens-when-ai-writes-the-code-81e838d43654?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/81e838d43654</guid>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 00:46:18 GMT</pubDate>
            <atom:updated>2026-02-02T00:51:31.880Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*JV29atPgpuwxt8CXZsJTdQ@2x.jpeg" /></figure><p>Code review was largely a scheduling problem: teams struggled to find time to give feedback on pull requests because everyone was busy delivering their own work.</p><p>Today, in multidisciplinary teams, that same struggle looks different. The problem isn’t finding time – it’s making time count.</p><p>For many of us, review cycles are part of the daily sprint rhythm. It’s how we catch bugs, share context, and maintain architectural consistency. And honestly? It often feels like an unpaid second job.</p><blockquote>Then AI arrived</blockquote><p>Before we talk about where things are headed, it’s worth anchoring in what’s already been the case.</p><blockquote>Code Review Was Already Under Strain</blockquote><p>Traditional code review is time-consuming and sensitive to context-switching – reviewers often lack enough background on the code to judge it deeply, especially in complex systems.</p><blockquote>AI Improves Efficiency – But Not Without Trade-offs</blockquote><p>AI tools can cut down basic review tasks and speed up feedback loops. Tools based on language models help detect simple issues and code smells, reducing review time compared to purely manual inspection.</p><p>On the other hand, automated systems also introduce noise – irrelevant warnings or misflagged items – and can increase pull request closure time because reviewers have to sift through both human and machine suggestions.</p><blockquote>AI-Generated Code Isn’t Perfect</blockquote><p>A huge chunk of code, developers commit today comes from AI tools and it takes more effort than reviewing human-written code.</p><p>AI-generated code contains serious security flaws unless specific requirements are defined up front.</p><blockquote>What Has Changed – From My Experience</blockquote><p>For years, code review in multidisciplinary teams had two main tensions:</p><p>1.	Context vs. time. You need deep context to review well, but you rarely have enough time.</p><p>2.	Quality vs. throughput. Faster delivery often meant more superficial reviews.</p><p>AI has sped up code generation – engineers now generate entire modules or features with tools like Copilot, Claude, or custom agents – and that’s both exhilarating and worrying.</p><blockquote>AI Makes Code – Humans Must Still Understand It</blockquote><p>AI doesn’t have project context in the way humans do. Models don’t know your domain rules, your edge cases, or why you chose one design over another. They just predict code based on patterns in data.</p><p>So now reviewers aren’t just reviewing others’ code – they’re reviewing AI’s code too. And that’s a different activity entirely.</p><p>A recent industry report even coined “verification debt”: code gets committed without thorough checking because it looks correct at a glance, even when it isn’t.</p><blockquote>AI Code Is Harder to Review Than You Think</blockquote><p>Review Isn’t Just Checking Syntax Anymore</p><p>Old code review was largely about:</p><p>•	spotting obvious bugs</p><p>•	enforcing style</p><p>•	verifying logic</p><p>Today, it’s as much about understanding intent as it is about correctness.</p><p>With AI code, this matters more – because you need to ask:</p><p>•	Did the developer understand what the code does?</p><p>•	Can they explain the reasoning behind it?</p><p>•	Are there architectural or security implications?</p><blockquote>So What Comes Next?</blockquote><p>The future won’t be humans vs. AI – it will be humans with AI – but only if we rethink how review works.</p><p>Here are the areas where change feels necessary:</p><p>1) Focus Reviews on Intent, Not Just Lines</p><p>Instead of policing every line, teams need to surface why the change matters:</p><p>•	What problem is being solved?</p><p>•	What alternatives were considered?</p><p>•	What areas could require monitoring?</p><p>This is the difference between checking code and owning the outcome.</p><p>2) Treat AI Outputs Like External Dependencies</p><p>If you treat code generated by AI like a third-party library – something that must be evaluated on merit, not assumed good – you get better outcomes. That means establishing review standards before merging.</p><p>3) Reinvest in Security and Context-Aware Checks</p><p>We know security flaws are prevalent in AI code when unchecked. Prioritizing security review – with both automated scanners and human scrutiny – needs to be non-negotiable.</p><p>4) Educate More Than Approve</p><p>Review has traditionally been mentorship and knowledge transfer. In the age of AI, that role matters even more. Helping teammates internalize why code works and what risks it carries will save more time than merely approving PRs.</p><blockquote>A Simple Truth</blockquote><p>AI can write code fast but AI cannot feel responsible for what gets deployed.</p><p>Code review was already hard before these tools arrived. Now it’s just more visible.</p><p>But when we treat review as understanding and ownership, not just speed or throughput, we maintain the one thing machines can’t replace: judgment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81e838d43654" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps & Modern Engineering — Future with agentic ai — part 2]]></title>
            <link>https://mukherjee-aniket.medium.com/devops-modern-engineering-future-with-agentic-ai-part-2-a0624400e997?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0624400e997</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[modern-engineering]]></category>
            <category><![CDATA[crew-ai]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Fri, 25 Apr 2025 00:06:08 GMT</pubDate>
            <atom:updated>2025-04-25T00:07:58.084Z</atom:updated>
            <content:encoded><![CDATA[<h2>DevOps &amp; Modern Engineering — Future with agentic ai — part 2</h2><p>-</p><h4>Goal</h4><p>In this blog, I’ll walk you through a practical use case: generating a README file by analyzing source code — specifically, Terraform code — using CrewAI’s agent flow with multiple LLM models.</p><p><strong>Use Case</strong></p><p>The goal is to automate the creation of a README file that accurately describes the functionality of a given Terraform script. This involves:</p><ol><li><strong>Parsing the Terraform Code</strong>: Extracting key components such as resources, variables, and outputs.</li><li><strong>Generating Descriptions</strong>: Using LLMs to generate human-readable explanations of each component.</li><li><strong>Compiling the README</strong>: Structuring the generated content into a coherent README file.</li></ol><h4><strong>Backstory</strong></h4><p>Many developers encounter situations where they inherit a collection of code repositories lacking up-to-date or any documentation at all. This often leads to spending excessive time deciphering the codebase. To address this challenge, I explored a use case utilizing the CrewAI agentic AI framework.</p><p>🤔Imagine having an agent integrated into your developer portal that automatically analyzes code and generates README files for you.</p><h4>🪧Demo time</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fh71nrFOvnOg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dh71nrFOvnOg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fh71nrFOvnOg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ab2e60bfbf3d26633e0b62fffe06ea2/href">https://medium.com/media/0ab2e60bfbf3d26633e0b62fffe06ea2/href</a></iframe><blockquote>⚙️ <strong>Demo Tech Stack -</strong></blockquote><p>In this demo, I have used</p><ol><li><strong>CrewAI </strong>opensource version as multi agent framework. Reference — <a href="https://www.crewai.com/open-source">https://www.crewai.com/open-source</a></li><li><strong>Streamlit </strong>— an open-source Python framework designed to simplify the creation of interactive web applications. <strong>Key Features </strong>includes Rapid Prototyping, Real-Time Updates, open source and extensible. Reference — <a href="https://docs.streamlit.io/">https://docs.streamlit.io/</a></li><li><strong>Python </strong>&gt; 3.10 (Used pyenv for better management)</li><li><strong>Ollama </strong>— is an open-source tool that enables users to run, manage, and interact with large language models (LLMs) locally on your personal machines. Reference- <a href="https://ollama.com/">https://ollama.com/</a></li><li><strong>Models used</strong> — github hosted model (<strong>gpt-4o-mini</strong>) for 1st Crew, to use tools and analyze code. Ollama local model <strong>qwen2.5:14b</strong> for 2nd Crew to generate Readme file.</li><li><strong>Tools used</strong> — “file read” to read the code files under user provided folder.</li></ol><h4>What is CrewAI?</h4><p>​C<strong>rewAI</strong> is an open-source Python framework designed to facilitate the development of multi-agent AI systems.</p><blockquote><strong>Key features</strong></blockquote><ul><li><strong>Agent Collaboration</strong>: Agents in CrewAI are assigned specific roles and can communicate with each other to delegate tasks and share information.​</li><li><strong>Autonomous Workflows</strong>: The framework supports the creation of workflows where agents operate independently, making decisions and taking actions based on predefined goals.</li><li><strong>Scalability</strong>: CrewAI is designed to scale, allowing the addition of more agents and tasks as needed without significant reconfiguration.</li><li><strong>Integration with Language Models</strong>: It supports integration with various large language models (LLMs), enabling agents to process and generate natural language effectively.</li><li><strong>Tool Integration</strong>: Agents can utilize a variety of tools, such as web search capabilities and data analysis functions, to enhance their performance.</li></ul><blockquote><strong>How CrewAI works?</strong></blockquote><ol><li>The Crew organizes the overall operation</li><li>AI Agents work on their specialized tasks</li><li>The Process ensures smooth collaboration</li><li>Tasks get completed to achieve the goal</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*bmzMAfsWcmGTpPJZUJDaQQ.png" /><figcaption><a href="https://mintlify.s3.us-west-1.amazonaws.com/crewai/crews.png">https://mintlify.s3.us-west-1.amazonaws.com/crewai/crews.png</a></figcaption></figure><blockquote><strong>⛳ Lesson learned</strong></blockquote><ul><li>CrewAI offers an intuitive development experience, enabling rapid setup and deployment. Depending on the use case, you can opt to utilize CrewAI’s crews or flows.​</li><li>Ollama’s local models serve as a cost-effective solution for preliminary testing, helping to circumvent expenses and rate limitations associated with commercial LLMs. However, they may present hallucination, performance challenges, especially when handling tools — unless you’re equipped with GPUs to support large models. For optimal performance during this demonstration, I employed GitHub-hosted GPT models for the 1st crew.</li><li>The output generated by LLMs isn’t always consistent; each execution can yield variations. In this demo, the README file’s content differed with each run, necessitating user intervention to finalize the output. This is where CrewAI’s <strong>human-in-the-loop</strong> functionality proves invaluable, allowing human oversight to ensure quality and accuracy.</li><li>Achieving the desired agent behavior often requires iterative prompt refinement. I found ChatGPT to be an useful resource for fine-tuning prompts to get the most effective responses.</li><li>Streamlit is a easy to use web framework for quick prototyping.</li></ul><blockquote><strong>Want to get your hands 🤝dirty ?</strong></blockquote><ul><li>To get started with CrewAI follow the instructions here <a href="https://github.com/crewAIInc/crewAI?tab=readme-ov-file#getting-started">https://github.com/crewAIInc/crewAI?tab=readme-ov-file#getting-started</a></li><li>Lot of samples are available in <a href="https://github.com/crewAIInc/crewAI-examples">https://github.com/crewAIInc/crewAI-examples</a></li></ul><p>Stay tuned for the next blog in this series, where I’ll showcase some more exciting capabilities with demos to give you a hands-on look at what <strong>agentic AI</strong> can do!</p><p>I would love to hear feedback from you. Do not forget to clap for the story if you like it.</p><p>Stay safe. Cheers 👋.</p><p>Previous blog in this series: <a href="https://medium.com/@mukherjee-aniket/devops-modern-engineering-future-with-agentic-ai-part-1-d25933b1789d">https://medium.com/@mukherjee-aniket/devops-modern-engineering-future-with-agentic-ai-part-1-d25933b1789d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0624400e997" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps & Modern Engineering – Future with agentic ai – part 1]]></title>
            <link>https://mukherjee-aniket.medium.com/devops-modern-engineering-future-with-agentic-ai-part-1-d25933b1789d?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25933b1789d</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Sun, 23 Mar 2025 00:39:12 GMT</pubDate>
            <atom:updated>2025-04-25T00:09:40.763Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past few months, I’ve dedicated a significant amount of time to exploring and demystifying <strong>agentic AI</strong>, as well as examining the various open-source frameworks and tools currently available in the market. While <strong>agentic AI</strong> is still in its early stages of development, I’ve gathered a range of insights and experiences along the way. Here’s a summary of my journey so far.</p><h4>What is Agentic AI?</h4><p>Agentic AI — An AI system that is capable of reasoning, autonomous (can make decisions), specialized in specific tasks, capable of creating and executing actionable plans using tools.</p><h4>How Agentic AI works?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AXGkFav6VvefailOtXuymg.png" /></figure><p>In simplified term , Agentic AI consists of -</p><ol><li><strong>AI agents</strong> —<em> Specialized in performing a specific task with defined role, goal and backstory.</em></li><li>Specialized LLM model (Brain)— <em>utilizes a specialized </em><strong><em>Large Language Model (LLM)</em></strong><em>, often referred to as its </em><strong><em>“brain”. </em></strong><em>The specialized LLM serves as the core component for understanding, generating, and processing natural language, making the AI agent more intelligent and adaptable in its field of expertise.</em></li><li><strong>Follows ReAct approach (Reasoning and Acting) </strong>— <em>Based on input data AI agents first reason about the task at hand, then act or execute the appropriate actions based on their reasoning using the available tools. During observe stage it reevaluates its outcome and if it satisfies then it gives the final answer or it will go back Plan/Think stage.</em></li></ol><blockquote><strong>Lesson learned</strong> — Not all LLM models support tools calling (learned it hard way ), so make sure before finalizing the LLM models , check that it supports tools.</blockquote><p><strong>4. Data Sources </strong>— <em>It can access all the available data sources within the environment.</em></p><p>5. <strong>Human in the loop</strong> — <em>In ReAct framework, Human in the loop can be an important component for tasks that require human judgment, decision-making, or complex reasoning beyond the capabilities of AI.</em></p><blockquote><strong>Lesson Learned</strong> — During testing of one of the agentic framework , while asked the agent to become chaos monkey and create as much chaos possible with god mode in my local k8s cluster, my cluster turned into a unrecoverable state :-)</blockquote><p><strong>Some Advanced topic</strong> — <strong>Memory</strong></p><p>While <strong>ReAct</strong> enables the AI to reason and act based on current observations, <strong>memory</strong> takes things to the next level. Memory refers to the AI’s ability to <strong>store</strong> and <strong>retrieve information</strong> from past interactions or experiences. By integrating a memory system, an AI agent doesn’t start each task from scratch. It can:</p><ul><li><strong>Recall</strong> past experiences.</li><li><strong>Learn</strong> from them to make more informed decisions.</li><li><strong>Adapt</strong> its behavior based on historical data.</li></ul><p>Agentic AI has huge potential to revolutionize DevOps and platform engineering by introducing autonomous AI agents that collaborate to automate complex tasks, thereby enhancing efficiency and innovation.</p><h4>Areas of impact:</h4><p>Advanced platform troubleshooting through</p><blockquote>•Log evaluation</blockquote><blockquote>•Monitoring security incidents</blockquote><blockquote>•Chat support agent for assisting with deployment troubleshooting</blockquote><p>Improved self-service functionality</p><blockquote>•Connection with developer platforms and portals</blockquote><blockquote>•Track and enhance resource management driven by patterns.</blockquote><p>Automation of repetitive activities like</p><blockquote>•Code testing and test case creation</blockquote><blockquote>•Generating Readme files and reviewing PRs</blockquote><blockquote>•Creating stories and resolving incidents</blockquote><p>Stay tuned for the next blog in this series, where I’ll showcase some exciting capabilities with demos to give you a hands-on look at what <strong>agentic AI</strong> can do!</p><p>I would love to hear feedback from you. Do not forget to clap for the story if you like it.</p><p>Stay safe. Cheers.</p><p>Next blog in this series : <a href="https://mukherjee-aniket.medium.com/devops-modern-engineering-future-with-agentic-ai-part-2-a0624400e997">https://mukherjee-aniket.medium.com/devops-modern-engineering-future-with-agentic-ai-part-2-a0624400e997</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25933b1789d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevSecOps — Deploy your containerized application in Azure App service using Terraform]]></title>
            <link>https://mukherjee-aniket.medium.com/devsecops-deploy-your-containerized-application-in-azure-app-service-using-terraform-ff884d7d5860?source=rss-f399084c415c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff884d7d5860</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-app-service]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Aniket Mukherjee]]></dc:creator>
            <pubDate>Sat, 30 Jan 2021 13:14:15 GMT</pubDate>
            <atom:updated>2021-01-30T13:14:15.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>DevSecOps — Deploy your containerized application in Azure App service using Terraform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*EvvF6RvTC803kBI0R6HN4g.png" /></figure><p>Hey Everyone, Welcome to my blog.</p><p>Today I am going to focus on how you can deploy your containerized application in azure app service securely using infrastructure as code terraform in a repeatable, auditable and secure manner.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd9baaaf26d3a09f66eabd586baebd1b/href">https://medium.com/media/fd9baaaf26d3a09f66eabd586baebd1b/href</a></iframe><p>Congratulation, if you follow all the instructions then you will have your app service up and running.</p><p>I would love to hear feedback from you. Do not forget to clap for the story if you like it.</p><p>Stay safe. Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff884d7d5860" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>