ComponentWhy it is unattributedcalls$ / run
Model · 28%Code generation and editing (Claude Sonnet 4)Each iteration sends the relevant repo files, the task, and the current diff to Sonnet 4 and receives edited code or a next-step plan.tokens in: 90,000 · tokens out: 7,000Visible on the invoice.10$0.38
Prompt · 16%Coding-agent system prompt and repo conventionsA 7,000-token prefix carrying the agent instructions, repo conventions, and tool schemas is resent on every iteration without prompt caching.tokens in: 70,000 · tokens out: 0Visible on the invoice.10$0.21
Orchestration · 10%Agent loop: plan, edit, test-run, PR hopsEach task runs a planner, file-editor, test-runner, and PR-writer as separate tool calls against GitHub/GitLab and CI. A 10-step task produces ~24 billed hops.tokens in: 25,000 · tokens out: 4,000The plan-edit-test-PR hops are abstracted into one 'agent task' in the tool's logs; the underlying billed calls are never broken out per step.24$0.14
Retrieval · 13%Codebase semantic search and re-embeddingThe agent runs semantic search over the repo on each iteration and re-embeds changed files - and often the whole repo - rather than updating incrementally.tokens in: 40,000 · tokens out: 0Codebase embedding runs on the embedding-provider invoice; full-repo re-embeds are a default that never surfaces in the engineering LLM spend view.20$0.18
History · 33%Conversation and accumulated diffs re-sent each iterationThe full agent conversation and every accumulated diff is resent on each iteration so the model retains prior reasoning. By step 10 this is 120k+ tokens re-billed each call.tokens in: 150,000 · tokens out: 0Accumulated agent state is framed as 'context window' by the coding tool, not as re-billed tokens, so it never appears in per-call spend reporting.10$0.45
An agentic coding task costs ~$1.35; run 8 a day across 25 engineers and it is ~$67.5k/yr - 57% of it accumulated-diff re-injection, agent-loop hops, and full-repo re-embedding no one instrumented.