{"id":484877,"date":"2026-03-19T23:54:12","date_gmt":"2026-03-19T23:54:12","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/484877\/"},"modified":"2026-03-19T23:54:12","modified_gmt":"2026-03-19T23:54:12","slug":"how-squad-runs-coordinated-ai-agents-inside-your-repository","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/484877\/","title":{"rendered":"How Squad runs coordinated AI agents inside your repository"},"content":{"rendered":"<p>If you\u2019ve used AI coding tools before, you know the pattern. You write a prompt, the model misunderstands, you refine it, and you coax better output. Progress depends more on steering the model than on building the software.<\/p>\n<p>As projects grow, the challenge stops being \u201chow do I prompt?\u201d and starts becoming \u201chow do I coordinate design, implementation, testing, and review without losing context along the way.\u201d<\/p>\n<p>Multi-agent systems are a great way to move past this plateau, but usually require a massive amount of setup. People spend hours building orchestration layers, wiring up frameworks, and configuring vector databases before they can delegate a single task.<\/p>\n<p><a href=\"https:\/\/github.com\/bradygaster\/squad\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Squad<\/a>, an open source project built on GitHub Copilot, initializes a preconfigured AI team directly inside your repository. It is a bet that multi-agent development can be accessible, legible, and useful without requiring heavy orchestration infrastructure or deep prompt engineering expertise. <\/p>\n<p>Two commands\u2014npm install -g @bradygaster\/squad-cli once globally, squad init once per repo\u2014and Squad drops a specialized AI team: a lead, frontend developer, backend developer, and tester directly against your repository.<\/p>\n<p>Instead of a single chatbot switching roles, Squad demonstrates repository native multi-agent orchestration without heavy centralized infrastructure.<\/p>\n<p>How Squad coordinates work across agents<\/p>\n<p>You describe the work you need done in natural language. From there, a coordinator agent inside Squad figures out the routing, loads repository context, and spawns specialists with task-specific instructions.<\/p>\n<p>For example, you type: \u201cTeam, I need JWT auth\u2014refresh tokens, bcrypt, the works.\u201d Then you watch the team spin up in parallel. The backend specialist takes the implementation. The tester starts writing the accompanying test suite. A documentation specialist opens a pull request. Within minutes, files are written and branches are created. These specialists already know your naming conventions and what you decided about database connections last Tuesday\u2014not because you put it in the prompt, but because agents load from shared team decisions and their own project history files committed to the repository.<\/p>\n<p>Instead of forcing you to manually test the output and prompt the model through multiple rounds of fixes, Squad handles iteration internally. Once the backend specialist drafts the initial implementation, the tester runs their test suite against it. If those tests fail, the tester rejects the code. Crucially, the orchestration layer prevents the original agent from revising its own work. Squad\u2019s reviewer protocol can prevent the original author from revising rejected work, and a different agent must step in to fix it. This forces genuine independent review with a separate context window and a fresh perspective, rather than asking a single AI to review its own mistakes. In workflows where reviewer automation is enabled, you review the pull request that survives this internal loop rather than every intermediate attempt.<\/p>\n<p>It\u2019s not autopilot, and it\u2019s not magic on session one. Agents will ask clarifying questions and sometimes make reasonable but wrong assumptions. You still review and merge every pull request. It is collaborative orchestration, not autonomous execution.<\/p>\n<\/p>\n<p>Architectural patterns behind repository-native orchestration<\/p>\n<p>Whether you use Squad or build your own multi-agent workflows, there are a few architectural patterns we\u2019ve learned from building repository-native orchestration. These patterns move the architecture away from \u201cblack box\u201d behavior toward something inspectable and predictable at the repository level.<\/p>\n<p>1. The \u201cDrop-box\u201d pattern for shared memory<\/p>\n<p>Most AI orchestration relies on real-time chat or complex vector database lookups to keep agents in sync. We\u2019ve found that this is often too fragile; synchronizing state across live agents is a fool\u2019s errand.<\/p>\n<p>Instead, Squad uses a \u201cdrop-box\u201d pattern. Every architectural choice, like choosing a specific library or a naming convention, is appended as a structured block to a versioned decisions.md file in the repository. This is a bet that asynchronous knowledge sharing inside the repository scales better than real-time synchronization. By treating a markdown file as the team\u2019s shared brain, you get persistence, legibility, and a perfect audit trail of every decision the team has made. Because this memory lives in project files rather than a live session, the team can also recover context after disconnects or restarts and continue from where it left off.<\/p>\n<p>2. Context replication over context splitting<\/p>\n<p>One of the biggest hurdles in AI development is the context window limit. When a single agent tries to do everything, the \u201cworking memory\u201d gets crowded with meta-management, leading to hallucinations.<\/p>\n<p>Squad solves this by ensuring the coordinator agent remains a thin router. It doesn\u2019t do the work; it spawns specialists. Because each specialist runs as a separate inference call with its own large context window (e.g., up to 200K tokens on supported models), you aren\u2019t splitting one context among four agents, you\u2019re replicating repository context across them.<\/p>\n<p>Running multiple specialists in parallel gives you multiple independent reasoning contexts operating simultaneously. This allows each agent to \u201csee\u201d the relevant parts of the repository without competing for space with the other agents\u2019 thoughts.<\/p>\n<p>3. Explicit memory in the prompt vs. implicit memory in the weights<\/p>\n<p>We believe an AI team\u2019s memory should be legible and versioned. You shouldn\u2019t have to wonder what an agent \u201cknows\u201d about your project.<\/p>\n<p>In Squad, an agent\u2019s identity is built primarily on two repository files: a charter (who they are) and a history (what they\u2019ve done), alongside shared team decisions. These are plain text. Because these live in your . squad\/ folder, the AI\u2019s memory is versioned right alongside your code. When you clone a repo, you aren\u2019t just getting the code; you are getting an already \u201conoboarded\u201d AI team because their memory lives alongside the code directly in the repository.<\/p>\n<p>Lowering the barrier to multi-agent workflows<\/p>\n<p>Our biggest win with Squad is that it makes it easy for anyone to get started with agentic development in a low-touch, low-ceremony way. You shouldn\u2019t have to spend hours wrestling with infrastructure, learning complex prompt engineering, or managing convoluted CLI interactions just to get an AI team to help you write code.<\/p>\n<p>To see what repository-native orchestration feels like, check out the <a href=\"https:\/\/github.com\/bradygaster\/squad\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Squad repository<\/a> and throw a squad at a problem to see how the workflow evolves.<\/p>\n<p>\t\tWritten by\t<\/p>\n<p>\t\t\t\t\t<img class=\"d-block circle\" src=\"https:\/\/www.newsbeep.com\/uk\/wp-content\/uploads\/2026\/03\/c4c1d68f4766046384a4c7ee192c152e0bf240745b6b84a0baa656e9b0abd0b1.jpeg\" alt=\"Brady Gaster\" width=\"80\" height=\"80\" loading=\"lazy\" decoding=\"async\"\/><\/p>\n<p>Principal PM Architect in CoreAI Apps &amp; Agents at Microsoft, where I build stuff to make it easier for people to party with Copilot in the cloud.<\/p>\n","protected":false},"excerpt":{"rendered":"If you\u2019ve used AI coding tools before, you know the pattern. You write a prompt, the model misunderstands,&hellip;\n","protected":false},"author":2,"featured_media":484878,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[554,733,4308,4310,172096,86,56,54,55],"class_list":["post-484877","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-github-copilot","tag-multi-agent-workflows","tag-technology","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/484877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=484877"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/484877\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/484878"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=484877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=484877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=484877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}