Coding Agent & Harness Token Cost Benchmark
Audit the real token multiplier, system prompt overhead, and BYOK cost optimization across Claude Code, Cursor, Windsurf, Aider, Cline, Roo Code & OpenCode on standardized 15-turn repo refactors.
Tree-Sitter AST Repo-Map context pruning
vs ~3,600–4,200 tok in heavy AI IDEs
Direct DeepSeek, LiteLLM & OpenRouter routing
| Coding Agent / Harness | Token Multiplier (vs Raw API) | System Prompt Overhead | BYOK / BaseURL | Best Paired Models | Spec |
|---|---|---|---|---|---|
AI Token-frugal open-source CLI using Tree-sitter AST Repo-Map, Architect/Editor split, and clean Git auto-commits. | 1.2x – 1.8x | ~1,150 tok Tree-sitter AST Repo-Map (1k–2k token budget) + search/replace diff edits + explicit /drop context hygiene | Native BYOK | Inspect | |
OC OpenCode / ContinuePlugin Vendor-neutral open-source agent ecosystem (OpenCode TUI + Continue VS Code/JetBrains) via declarative config.yaml/json. | 1.5x – 2.3x | ~1,850 tok Explicit @-context providers + OpenCode /compact session pruning + minimal 1.8k system prompt | Native BYOK | Inspect | |
RC Roo CodePlugin Multi-mode VS Code agent (Architect, Code, Debug, Ask) with per-mode system prompt pruning and model profiles. | 1.7x – 2.6x | ~2,350 tok Per-mode stripped system prompts (Ask/Architect exclude edit tools) + sliding window condense | Native BYOK | Inspect | |
CC Claude CodeCLI Anthropic's agentic terminal CLI with native prompt caching, subagent delegation, and /compact memory control. | 1.8x – 2.5x | ~3,200 tok Native Prompt Caching + threshold-triggered /compact LLM summarization when context fills | Custom BaseURL | Inspect | |
WS WindsurfIDE Flow-driven AI IDE powered by Cascade engine with selective AST chunking and strict step-by-step tool control. | 1.9x – 2.8x | ~3,600 tok Cascade flow-aware selective chunking + automatic terminal output truncation | Official / Partial | Inspect | |
CL ClinePlugin Autonomous open-source VS Code coding agent with step-by-step approval, real-time token cost readout, and full BYOK. | 2.0x – 3.0x | ~3,100 tok Transparent XML/JSON tool loop + user-gated file/command approval + auto-condense checkpoints | Native BYOK | Inspect | |
CU CursorIDE Full-featured AI IDE with codebase indexing, Shadow Workspace lint verification, and multi-file Composer Agent. | 2.2x – 3.5x | ~4,200 tok Semantic codebase embeddings + Shadow Workspace diff verification + aggressive multi-file context injection | Custom BaseURL | Inspect |