One command's output, paid for on every turn.
Claude Code, Cursor, Copilot, Codex and Gemini CLI all work the same way. Every file read, command output and search result stays in the conversation, and the whole conversation goes back to the model on each turn.
Run gh issue list once and 59 KB of JSON comes back. Fifty turns later you have paid for it fifty times.
When the window fills, the agent compacts: it summarises the conversation and drops the originals. The files it was editing and the errors it fixed go with them.