Skip to content

Large system prompt Injection on every turn #1439

Description

@shribr

I asked Github Copilot to review and optimize all of the my custom agents and it called out Squad in particular saying it had "Massive system prompt injected every turn" -its words.

It noted that the body size was 1,158 lines / 73 KB.

Two structural facts:

  1. Every message resends the full system prompt + accumulated history — that's inherent to the stateless API. Big agent bodies get re-billed on every turn.
  2. squad.agent.md alone (~18K tokens) costs roughly $0.27 in input per turn on Opus — before any conversation history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions