Skip to content

Squads in GitHub Enterprise Copilot- Invalid config "Prompt" exceeds max length 30000 #76

Closed

Description

@jeremythake

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.

Image

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.

Image

Activity

  1. added this to the v0.4.1 milestone on Feb 16, 2026
  2. bradygaster commented on Feb 16, 2026

    @bradygaster
    Collaborator

    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:

    1. Major refactor (multi-day effort): Split agent definition into multiple smaller agents or move detailed instructions to external docs referenced at runtime
    2. Content trimming (hours): Remove examples, compress sections, externalize appendices — likely can get to ~50-60K but still over limit
    3. 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?

  3. added
    feedbackUser feedback — high signal, needs attention
    and removed on Feb 16, 2026
  4. modified the milestones: v0.4.1, v0.5.0 on Feb 16, 2026
  5. bradygaster commented on Feb 16, 2026

    @bradygaster
    Collaborator

    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.

  6. bradygaster commented on Feb 20, 2026

    @bradygaster
    Collaborator

    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.

  7. arjendev commented on Feb 20, 2026

    @arjendev

    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.

  8. jeremythake commented on Feb 26, 2026

    @jeremythake
    Author

    @bradygaster I'm seeing the same thing too. I upgraded my squad to (v0.5.3-insiders).

  9. laurentkempe commented on Mar 25, 2026

    @laurentkempe

    I see this too with Squad 0.8.25, so the fix is not working @bradygaster and it is not related to GitHub Enterprise.

    Image
  10. added a commit that references this issue on Mar 26, 2026
    049958d
  11. bennage commented on Apr 4, 2026

    @bennage

    I'm having the same problem with 0.9.1.
    It's not clear why this issue was closed.

  12. added 2 commits that reference this issue on Apr 10, 2026
    7096cba
    e52d3aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeedbackUser feedback — high signal, needs attentionrelease:v0.5.0Targeted for v0.5.0

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions