<?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 Dipu Haridasan on Medium]]></title>
        <description><![CDATA[Stories by Dipu Haridasan on Medium]]></description>
        <link>https://medium.com/@haridasan.dipu?source=rss-0e66cc2ecbbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*McZHfC8Tzz98DQvO</url>
            <title>Stories by Dipu Haridasan on Medium</title>
            <link>https://medium.com/@haridasan.dipu?source=rss-0e66cc2ecbbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:06:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haridasan.dipu/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[GitHub Copilot Token Billing — Enterprise Budget Flows]]></title>
            <link>https://medium.com/@haridasan.dipu/github-copilot-token-billing-enterprise-budget-flows-59dcd86ce77d?source=rss-0e66cc2ecbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/59dcd86ce77d</guid>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[ai-governance]]></category>
            <category><![CDATA[enterprise-ai]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Dipu Haridasan]]></dc:creator>
            <pubDate>Mon, 25 May 2026 05:30:41 GMT</pubDate>
            <atom:updated>2026-05-25T05:31:49.264Z</atom:updated>
            <content:encoded><![CDATA[<p>As GitHub Copilot moves toward token-based billing, the real challenge for enterprises is no longer just AI adoption, it is governance at scale.</p><p>Understanding how included shared pools, user-level budgets, enterprise boundaries, and cost center budgets interact is becoming critical for platform teams, engineering leaders, and billing administrators. I created this simplified flow to visualize how GitHub Copilot token budgeting works across the different layers and where each budget actually comes into play during consumption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*NIG4MpsHi8X-2l4jNvgAMw.png" /></figure><p>As enterprises continue scaling AI-assisted development, budgeting models will become just as important as the models themselves. The goal is not to block developers from innovating, but to build the right governance layers that balance productivity, visibility, and cost control. Hopefully this simplified flow helps others better understand how GitHub Copilot token budgeting works in real-world enterprise environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59dcd86ce77d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Squad Manages Project-Level Memory Across AI Agents]]></title>
            <link>https://medium.com/@haridasan.dipu/how-squad-manages-project-level-memory-across-ai-agents-a73fb39ee052?source=rss-0e66cc2ecbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a73fb39ee052</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <dc:creator><![CDATA[Dipu Haridasan]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 05:54:41 GMT</pubDate>
            <atom:updated>2026-04-09T05:54:41.701Z</atom:updated>
            <content:encoded><![CDATA[<p>A distributed memory architecture for multi-agent coding teams</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1AVp1pB7kULdq6hqn-PpnA.png" /></figure><p>If you’ve spent any time with AI coding assistants, you’ve probably hit the same wall: the moment a conversation ends, the context vanishes. Start a new session and you’re explaining everything again — your architecture decisions, the patterns you settled on, why you chose Postgres over Mongo three weeks ago.</p><p>Now scale that problem. Instead of one AI assistant, imagine four or five — a lead architect, a backend developer, a tester, an integration specialist — all working on the same codebase. How does the tester know what the backend dev decided about error handling? How does the lead’s architecture review survive across sessions?</p><p>This is the problem <a href="https://github.com/bradygaster/squad">Squad</a> solves with its project-level memory system. My Director Shyam introduced me to Squad recently and it’s implementation quite surprised me.</p><h4>The Two Types of Knowledge</h4><p>Squad draws a sharp line between two categories of information:</p><p>Personal knowledge — things only one agent needs to remember. The backend developer’s notes about a tricky query optimization, or the tester’s observations about flaky test patterns. These live in each agent’s private history.md file.</p><p>Shared decisions — things the whole team needs to respect. Architecture choices, naming conventions, library preferences, scope boundaries. These live in a single canonical file: decisions.md.</p><p>The distinction matters because it mirrors how real teams work. You don’t need every engineer to know the intimate details of how the auth module was debugged. But everyone needs to know that the team decided to use JWT tokens instead of session cookies.</p><h4>The Drop-Box Pattern</h4><p>Here’s where it gets interesting. If multiple agents are working in parallel — and they should be — how do you prevent file conflicts when two agents try to write to decisions.md at the same time?</p><p>Squad’s answer: they don’t write to it directly.</p><p>Instead, every agent writes decisions to individual “drop files” in an inbox directory:</p><pre>.squad/decisions/inbox/<br>  livingston-api-error-format.md<br>  rusty-auth-flow-decision.md<br>  linus-test-coverage-threshold.md</pre><p>Each file is named after the agent and a brief slug describing the decision. There’s zero chance of collision — Livingston writes to his file, Rusty writes to hers. They can work simultaneously without coordination.</p><p>Then a dedicated agent called Scribe — a silent observer whose entire job is recordkeeping — sweeps the inbox. Scribe merges all drop files into the canonical decisions.md, deduplicates entries, clears the inbox, and commits the result. Think of it as a mailroom that consolidates incoming memos into the official record.</p><p>This “drop-box pattern” is the backbone of Squad’s parallelism. It applies to decisions, orchestration logs, and session records. The rule is simple: <strong>agents produce files, Scribe consolidates them</strong>.</p><h4>What Gets Remembered (And Where)</h4><p>Squad’s memory lives entirely in the filesystem, inside a .squad directory at the project root. No external database, no cloud service — just Markdown and JSON files committed alongside your code.</p><p>Here’s the anatomy:</p><pre>.squad/<br>├── decisions.md              # The shared brain<br>├── decisions/inbox/          # Drop-box for new decisions<br>├── agents/<br>│   ├── danny/<br>│   │   ├── charter.md        # Who Danny is and what he does<br>│   │   └── history.md        # Danny&#39;s personal learnings<br>│   ├── livingston/<br>│   │   ├── charter.md<br>│   │   └── history.md<br>│   └── scribe/<br>│       ├── charter.md<br>│       └── history.md<br>├── orchestration-log/        # What happened, when, and why<br>├── log/                      # Session-level summaries<br>└── skills/                   # Reusable patterns the team discovered</pre><p>decisions.md is the single source of truth. Every agent reads it before starting work. When an agent is spawned, the coordinator includes the current state of decisions in the spawn prompt. This means every agent starts with the full team context — no “hey, what did we decide about X?” conversations needed.</p><p>history.md (one per agent) is append-only personal memory. After completing work, an agent appends what it learned: architecture patterns, key file paths, user preferences, things that surprised it. Next time that same agent is spawned, it reads its own history first. It remembers.</p><p>orchestration-log/ records the meta-layer — which agent was routed to which task, why they were chosen, what files they touched, what the outcome was. This is diagnostic memory. When something goes wrong three sessions later, you can trace back exactly what happened and who decided what.</p><h4>Skills: Distilled Experience</h4><p>There’s a third category of memory that sits between personal and shared: skills. When an agent discovers a reusable pattern — a deployment recipe, a testing strategy, a configuration quirk — it can extract that into a skill file:</p><pre>.squad/skills/<br>  api-error-handling/<br>    SKILL.md<br>  ssh-config-patterns/<br>    SKILL.md</pre><p>Skills have a confidence lifecycle. The first time an agent captures a pattern, it’s marked low confidence. When a different agent independently applies the same pattern and it works, confidence bumps to medium. After consistent use across multiple sessions, it reaches high.</p><p>This is earned knowledge that compounds. The team literally gets better over time.</p><h4>The Read/Write Discipline</h4><p>What makes this system robust isn’t just the file structure — it’s the strict access control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ehLrHFsCP9jfm5XprYcybg.png" /></figure><p>Agents can’t modify each other’s history. They can’t overwrite decisions. They can’t even edit their own charter. The write paths are narrow and well-defined, which means the memory system stays consistent even when five agents are running in parallel and making independent choices.</p><p>Every append-only file — decisions, history, logs — uses a merge=union strategy in .gitattributes. When branches merge, both sides&#39; entries survive. No conflicts, no lost context.</p><h4>Why This Matters</h4><p>Most AI coding tools treat memory as an afterthought — a “remember this” sidebar feature. Squad treats it as infrastructure. The decision ledger, the personal histories, the skill library, the orchestration log — they’re all committed to your repo, versioned with your code, and available to every agent on every session.</p><p>The practical result: Session 1 isn’t meaningfully different from Session 50. The team’s accumulated understanding of your project travels with the codebase. An agent spawned today benefits from decisions made weeks ago by a completely different agent.</p><p>And because it’s all Markdown files in a git repo, you can read it, search it, diff it, and audit it. No black box. No opaque vector database. Just text files that tell the story of how your project’s AI team thinks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a73fb39ee052" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing AI into Our Developer Workflow: How We Use GitHub Copilot + MCP at Scale]]></title>
            <link>https://medium.com/@haridasan.dipu/bringing-ai-into-our-developer-workflow-how-we-use-github-copilot-mcp-at-scale-6477f45d73f8?source=rss-0e66cc2ecbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6477f45d73f8</guid>
            <category><![CDATA[co-pilot]]></category>
            <category><![CDATA[mcp-protocol]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[mcp-client]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Dipu Haridasan]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 18:22:07 GMT</pubDate>
            <atom:updated>2025-06-06T18:22:49.333Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of our engineers use <strong>Visual Studio Code</strong>, but they don’t code on their laptops. Instead, their development happens remotely on powerful servers where they can also build and have access to many powerful tools. Each engineer has their own remote servers and <strong>sandbox</strong> — a local Git checkout of our giant mono repo.</p><p>Now, throw in dozens of internal tools wrapped around these sandboxes — build systems, analysis tools, test runners — and things can get complex quickly.</p><p>We wanted to bring some <em>intelligence</em> into this setup.</p><p>That’s where <strong>GitHub Copilot</strong> came in. But Copilot on its own doesn’t know how we build code, run tests, or what tools we use. It just sees raw code. To make Copilot truly helpful in our world, we needed to feed it context. And for that, we brought in <strong>Model Context Protocol </strong>or<strong> MCP</strong>.</p><h3>What’s MCP and Why Do We Need It?</h3><p>Think of MCP as a bridge between GitHub Copilot and everything we know about our internal development workflows. It connects Copilot with the tools, APIs, documentation, and even your current sandbox state.</p><p>But we didn’t stop at just running MCP somewhere. We went with a <strong>hybrid approach</strong>.</p><h3>Our Hybrid MCP Setup</h3><p>We split MCP into two flavors: <strong>local</strong> and <strong>remote</strong>.</p><h4>🧱 Local MCP — Runs Inside Our Dev Container</h4><p>Each engineer’s sandbox runs inside a dev container on a remote host. We deploy a small MCP server <strong>right there</strong>, next to the sandbox. This local MCP:</p><ul><li>Knows the layout of your code</li><li>Can invoke internal tools like our build system</li><li>Can detect which images your change impacts</li><li>Even helps explain why a build failed</li></ul><p>So anything that needs to poke around your sandbox? That’s handled locally.</p><h4>☁️ Remote MCP — Centralized, Hosted in Kubernetes</h4><p>Not everything needs to run near your code. For generic things like:</p><ul><li>Looking up docs</li><li>Calling internal APIs</li><li>Injecting runtime prompts into Copilot sessions</li></ul><p>…we use <strong>remote MCP servers</strong>, hosted in a Kubernetes cluster. These servers handle shared responsibilities and scale across all users.</p><p>In short: <strong>local MCPs</strong> know your code. <strong>Remote MCPs</strong> know everything else.</p><h3>Here’s What It Looks Like</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*Yd-1Eml1L0PoB0SA7VSQCA.gif" /></figure><p>We made it simple, but it’s pretty powerful under the hood:</p><ul><li>The <strong>MCP client</strong> inside VS Code talks to both local and remote MCP servers.</li><li>The <strong>local MCP</strong> can trigger toolchains directly inside your sandbox container.</li><li>The <strong>remote MCP</strong> can serve prompts, query APIs, or fetch resources like documentation.</li><li>All of these are packaged as “tools” so Copilot knows how to call them.</li></ul><h3>One Quirk: VS Code Only Understands “Tools”</h3><p>Right now, VS Code’s Copilot integration is still evolving. It only recognizes <strong>tools</strong> via MCP.</p><p>So, whether we’re injecting a prompt, calling an API, or pointing to a doc — it’s all <strong>wrapped as a tool</strong>. Slightly awkward, but it works. And it keeps the interface consistent for developers.</p><h3>What This Means for Our Engineers</h3><p>This setup brings <strong>real AI intelligence</strong> into the dev loop. With just natural language, engineers can:</p><ul><li>Ask Copilot what build command to run and build in agent mode</li><li>Figure out which platform images are affected by a change</li><li>Get explanations for build failures</li><li>Auto-trigger internal tools</li><li>Fetch answers from our internal knowledge base</li></ul><p>And all this happens <strong>without ever leaving VS Code</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6477f45d73f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HAProxy Cluster for High Availability]]></title>
            <link>https://medium.com/@haridasan.dipu/haproxy-cluster-for-high-availability-fd93ed4a188a?source=rss-0e66cc2ecbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd93ed4a188a</guid>
            <category><![CDATA[high-availability]]></category>
            <category><![CDATA[high-availability-hosting]]></category>
            <category><![CDATA[haproxy]]></category>
            <dc:creator><![CDATA[Dipu Haridasan]]></dc:creator>
            <pubDate>Mon, 29 Apr 2024 23:39:54 GMT</pubDate>
            <atom:updated>2024-04-29T23:39:54.604Z</atom:updated>
            <content:encoded><![CDATA[<p>The below steps highlight the configuration requirements for a high available Haproxy cluster in Active-Passive.</p><p>To avoid the HAProxy server being a single point of failure, two redundant HAProxy servers are configured in active-passive mode. The failover is orchestrated by using the keepalived daemon that monitors the health of the active load balancer and in case of a failure, the virtual IP is failed over to the passive load balancer, which then becomes active. The virtual IP is configured by keepalived.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVOjuQAW0Mu3cJI-ag8Lsw.png" /></figure><p>All end-user traffic will flow through this virtual IP which is bonded to one of the Haproxy hosts in the cluster, based on the keepalive monitoring.</p><p>Install Keepalived on both the haproxy servers (steps for RHEL hosts).</p><pre>yum install keepalived</pre><p>Update the file /etc/keepalived/keepalived.conf in both the haproxy hosts with the following details. Tweak the configuration in the primary and secondary as per the comments.</p><pre>vrrp_script chk_haproxy {<br>script &quot;killall -0 haproxy&quot; # check the haproxy process<br>interval 2 # every 2 seconds<br>weight 2 # add 2 points if OK<br>}<br>vrrp_instance VI_1 {<br>interface eth0             # replace with the interface to monitor<br>state BACKUP             # MASTER on haproxy1, BACKUP on haproxy2<br>virtual_router_id &lt;router id&gt; # This must be unique for the cluster.<br>priority 100             # 101 on haproxy1, 100 on haproxy2<br>virtual_ipaddress {<br>&lt;VIP&gt; # virtual ip address<br>}<br>track_script {<br>chk_haproxy<br>}<br>}</pre><p>“Virtual router-id” is unique for the cluster. If there are multiple clusters in the same network, it is vital to provide an ID that is not used in any other clusters.</p><p>Update the file /etc/sysctl.conf on both the haproxy hosts with the below details:</p><pre>net.ipv4.ip_forward = 1<br>net.ipv4.ip_nonlocal_bind = 1</pre><p>Verify the above configuration using “sysctl -p”.</p><p>Enable keepalived on bootup on both the haproxy hosts.</p><pre>systemctl enable keepalived<br>systemctl start keepalived</pre><p>Verify the VIP binding using “<em>ip addr show</em>”. Bring down haproxy on the primary host and check if the VIP fails over to the secondary proxy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd93ed4a188a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>