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:
- 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.
- squad.agent.md alone (~18K tokens) costs roughly $0.27 in input per turn on Opus — before any conversation history.
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: