Analyzing AI Coding Tools: Dissecting 3,177 API Calls

✍️ OpenClawRadar📅 Published: February 20, 2026🔗 Source
Analyzing AI Coding Tools: Dissecting 3,177 API Calls
Ad

The recent analysis conducted on four AI coding tools—Claude Code Opus 4.6, Claude Code Sonnet 4.5, Codex GPT-5.3, and Gemini 2.5 Pro—highlights substantial differences in managing API call context windows. Using the Context Lens tracer, the study intercepted 3,177 API calls to evaluate the tools’ efficiency and strategy in handling the context window when tasked with bug fixes in an Express.js environment.

Each coding tool tackled a specific bug—an incorrectly reordered null check in res.send(). Opus, Sonnet, Codex, and Gemini were tasked with identifying and fixing the bug, followed by running the test suite to verify the fix. They all succeeded, albeit with varying approaches and resources.

Claude Code Opus 4.6 consistently used around 23K to 27K tokens, mainly consisting of tool definitions (69% of the context). This indicates a reliance on re-sending these definitions due to the architecture, causing significant caching overhead. Codex (GPT-5.3) presented a wider range from 29.3K to 47.2K tokens, mostly tool results (72%), providing more variability depending on test command specificity. Sonnet, with similar variance, mixed definitions and results more evenly.

Ad

Gemini stands out due to its disproportionate use of tokens, peaking at 350.5K, utilizing almost exclusively tool results (96%), exploiting its large 1M context window. Despite a lower cost per token, Gemini’s inconsistent and expansive usage pattern without convergence across runs indicates a unique, albeit less efficient strategy.

These findings illustrate considerable disparities in how AI coding tools manage context windows, impacting both performance and cost efficiency. Developers should weigh token usage strategies when choosing the appropriate tool for their needs, particularly for tasks involving iterative changes or extensive project histories.

📖 Read the full source: HN LLM Tools

Ad

👀 See Also

Commitment Issues: A Tool That Analyzes and 'Buries' Unfinished GitHub Repos
Tools

Commitment Issues: A Tool That Analyzes and 'Buries' Unfinished GitHub Repos

A developer built a tool called Commitment Issues that analyzes GitHub repositories to determine if they're abandoned, generates a 'death certificate,' and extracts the final commit message as 'last words.' The tool uses heuristics like commit frequency, last activity, and stars vs momentum, and was prototyped using Claude.

OpenClawRadar
Fewshell: A Self-Hosted SSH Copilot That Refuses to Run Commands Without Human Approval
Tools

Fewshell: A Self-Hosted SSH Copilot That Refuses to Run Commands Without Human Approval

Fewshell is a mobile+desktop SSH copilot with mandatory human approval for every command – no setting to enable auto-approval. Built by an ex-Amazon AI SDE working on AI safety research.

OpenClawRadar
Agentlint: GitHub App that catches CLAUDE.md contradictions and broken pointers on every PR
Tools

Agentlint: GitHub App that catches CLAUDE.md contradictions and broken pointers on every PR

Agentlint is a GitHub App that audits your full agent-rules surface (CLAUDE.md, AGENTS.md, skills, hooks) on every PR, posting inline comments for contradictions, broken paths, and unsupported harness features. Free for public repos.

OpenClawRadar
Claude Code Routines: Automated Cloud Tasks for AI Development Workflows
Tools

Claude Code Routines: Automated Cloud Tasks for AI Development Workflows

Claude Code Routines allow developers to save Claude Code configurations as automated tasks that run on Anthropic-managed cloud infrastructure. Routines support scheduled, API, and GitHub triggers for unattended execution of prompts against repositories.

OpenClawRadar