Title: feat: Per-directory squad context and area-scoped agent dispatch for monorepos · Issue #457 · github/squad · GitHub
Open Graph Title: feat: Per-directory squad context and area-scoped agent dispatch for monorepos · Issue #457 · github/squad
X Title: feat: Per-directory squad context and area-scoped agent dispatch for monorepos · Issue #457 · github/squad
Description: Background During the AI Squads demo meeting (March 18, 2026), Michael Scott raised an important question about monorepo support: "If I have a mono-repo, I want to keep each team-specific artifact under that team's specific directory. Is...
Open Graph Description: Background During the AI Squads demo meeting (March 18, 2026), Michael Scott raised an important question about monorepo support: "If I have a mono-repo, I want to keep each team-specific artifact ...
X Description: Background During the AI Squads demo meeting (March 18, 2026), Michael Scott raised an important question about monorepo support: "If I have a mono-repo, I want to keep each team-specific arti...
Opengraph URL: https://github.com/github/squad/issues/457
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Per-directory squad context and area-scoped agent dispatch for monorepos","articleBody":"## Background\n\nDuring the AI Squads demo meeting (March 18, 2026), Michael Scott raised an important question about monorepo support:\n\n> \"If I have a mono-repo, I want to keep each team-specific artifact under that team's specific directory. Is there a way to do this with subagents? It seems like everything is persisted under /squad.\"\n>\n> \"In the ideal world, the sub squads and team members would be defined under /src/\u003carea>/.squads\"\n\nThis is a real-world enterprise need — large repos with multiple teams need area-specific squad configuration.\n\n## Proposed Features\n\n### Feature 1: Per-area `.squad-context.md` files (Easy — works today as convention)\n\nAdd support for optional `.squad-context.md` files in subdirectories. When an agent works in a subdirectory, it auto-loads the nearest context file for area-specific routing hints, key files, and team context.\n\n```\n/src/area-a/.squad-context.md ← area-specific context\n/src/area-b/.squad-context.md\n```\n\nRalph/Picard auto-discovers these during triage and loads them as additional context.\n\n### Feature 2: Per-area `.squads/` inheritance (Medium — enterprise-grade)\n\nAllow per-area squad definitions that inherit from the root `.squad/`:\n\n```\n/.squad/ ← HQ (root squad)\n/src/area-a/.squads/ ← area-specific team + routing overrides\n team.md ← subset of root squad members\n routing.md ← area-specific routing rules\n/src/area-b/.squads/\n```\n\nArea squads inherit decisions, ceremonies, and skills from root but override team composition and routing.\n\n### Feature 3: Directory-aware agent dispatch (Full vision — roadmap)\n\nFull per-directory `.squads/` config that auto-activates when agents enter that directory. Would require changes to squad's agent dispatch logic to detect and scope based on working directory.\n\n## Use Cases\n\n- Enterprise monorepos with 5+ teams sharing one repository\n- Platform teams wanting isolated squad config per service\n- Cross-functional squads where frontend/backend/infra each have domain-specific routing\n\n## Origin\n\nFeedback from Michael Scott during [AI Squads meeting](https://teams.microsoft.com) — captured in tamirdresher_microsoft/tamresearch1#1012\r\n","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-03-19T11:40:43Z","url":"https://github.com/github/squad/issues/457"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9f616c8-f613-8395-1da8-b453f8e3076c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7BC:21AC3F:3090AD4:3D7CBD8:6B01AC7A |
| html-safe-nonce | e0540b5c99d6f0d69b0a610e8273b6d807870f82c76b142db502a0dcbfa8ab55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0JDOjIxQUMzRjozMDkwQUQ0OjNEN0NCRDg6NkIwMUFDN0EiLCJ2aXNpdG9yX2lkIjoiNTI0MDA0MzM0MzM5OTk4ODM0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d0471c4cdebd005693ea8811f927e823ec335844a057fcf049647e6ac8aecd03 |
| hovercard-subject-tag | issue:4101119896 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/457/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07311f2a95b3bf1460481da829a3e098d98a4e0442da7e9b9c2a2b3a1ba6b40c/github/squad/issues/457 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07311f2a95b3bf1460481da829a3e098d98a4e0442da7e9b9c2a2b3a1ba6b40c/github/squad/issues/457 |
| og:image:alt | Background During the AI Squads demo meeting (March 18, 2026), Michael Scott raised an important question about monorepo support: "If I have a mono-repo, I want to keep each team-specific artifact ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width