You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Squads in GitHub Enterprise Copilot- Invalid config "Prompt" exceeds max length 30000 #76
My squad labelling in an GitHub Enterprise issue didn't trigger a GitHub Coding Agent to start. I have Coding Agent enabled in the project from what I can tell, unsure how to test it.
As feedback, there are multiple places you can see GitHub Copilot: Code with agent mode, Assign to Copilot and the GitHub Copilot New CHat in top right icon. It wasn't clear which mechanism to use to give Squad team member context.
I tried it in the GitHub Copilot New Chat experience and noticed this error when trying to select the Squad agent.
Analysis: The .github/agents/squad.agent.md file is currently 107,945 characters (about 3.6x the GitHub Enterprise Copilot limit of 30,000 characters).
Root cause: Squad's coordinator agent has extensive orchestration logic covering:
Init mode (team proposal & creation)
Team mode coordination
Design review protocol
Casting & persistent naming
Ralph work monitor
GitHub Issues & PRD modes
Multiple integration points
Options:
Major refactor (multi-day effort): Split agent definition into multiple smaller agents or move detailed instructions to external docs referenced at runtime
Content trimming (hours): Remove examples, compress sections, externalize appendices — likely can get to ~50-60K but still over limit
Known limitation (document now, fix in v0.5.0): Document that Squad's full feature set currently exceeds GitHub Enterprise Copilot's agent size limits. Works fine in CLI/VS Code Copilot but GHE has stricter limits.
Recommendation for v0.4.1: Option 3 — document the limitation and target a proper fix for v0.5.0 when we have time to architect the split properly.
cc @bradygaster — want to attempt a quick trim or defer to v0.5.0?
Thank you for reporting this! This is a high-value issue — Squad can't be used on internal projects with GitHub Enterprise Copilot until we address this size limitation.
Targeted for v0.5.0 where we can properly architect the solution (likely splitting the coordinator into smaller agents or externalizing detailed documentation).
For v0.4.1, we're prioritizing quick wins. This one needs a thoughtful refactor to do it right.
squad.agent.md is currently ~70,148 chars / ~17,537 tokens — well under the 30,000 token GHE limit. Previous work (extracting 7 sections to satellite files) plus Verbal's #98 PR (extracting 4 more cold-path sections) brought the file to this size. Issue resolved without further action.
Hi @bradygaster - this limit seems to be a character limit and not a token limit. After upgrading to v0.5.2 I kept seeing the error. After asking GitHub Copilot Opus 4.6 to further compact the prompt to below 30k characters without losing any information - I now have it available in GHE.
Activity
bradygaster commentedon Feb 16, 2026
Analysis: The .github/agents/squad.agent.md file is currently 107,945 characters (about 3.6x the GitHub Enterprise Copilot limit of 30,000 characters).
Root cause: Squad's coordinator agent has extensive orchestration logic covering:
Options:
Recommendation for v0.4.1: Option 3 — document the limitation and target a proper fix for v0.5.0 when we have time to architect the split properly.
cc @bradygaster — want to attempt a quick trim or defer to v0.5.0?
bradygaster commentedon Feb 16, 2026
Thank you for reporting this! This is a high-value issue — Squad can't be used on internal projects with GitHub Enterprise Copilot until we address this size limitation.
Targeted for v0.5.0 where we can properly architect the solution (likely splitting the coordinator into smaller agents or externalizing detailed documentation).
For v0.4.1, we're prioritizing quick wins. This one needs a thoughtful refactor to do it right.
bradygaster commentedon Feb 20, 2026
squad.agent.md is currently ~70,148 chars / ~17,537 tokens — well under the 30,000 token GHE limit. Previous work (extracting 7 sections to satellite files) plus Verbal's #98 PR (extracting 4 more cold-path sections) brought the file to this size. Issue resolved without further action.
arjendev commentedon Feb 20, 2026
Hi @bradygaster - this limit seems to be a character limit and not a token limit. After upgrading to v0.5.2 I kept seeing the error. After asking GitHub Copilot Opus 4.6 to further compact the prompt to below 30k characters without losing any information - I now have it available in GHE.
jeremythake commentedon Feb 26, 2026
@bradygaster I'm seeing the same thing too. I upgraded my squad to (v0.5.3-insiders).
laurentkempe commentedon Mar 25, 2026
I see this too with Squad 0.8.25, so the fix is not working @bradygaster and it is not related to GitHub Enterprise.
chore: upgrade model references to Claude 4.6
bennage commentedon Apr 4, 2026
I'm having the same problem with 0.9.1.
It's not clear why this issue was closed.
docs: pivot agent identity proposal to shared app model
docs: pivot agent identity proposal to shared app model