Benchmark Shows CLI Tool Reduces Claude Code Token Costs by 32% Through Structural Navigation

✍️ OpenClawRadar📅 게시일: March 24, 2026🔗 Source
Benchmark Shows CLI Tool Reduces Claude Code Token Costs by 32% Through Structural Navigation
Ad

A developer has open-sourced a CLI tool called Scope that provides Claude Code agents with structural code navigation capabilities, similar to IDE features like "find references" and "go to definition." The tool was built in Rust using tree-sitter and SQLite.

What the Tool Does

The tool gives agents commands like:

  • "show me a 180-token summary of this 6,000-token class"
  • "search by what code does, not what it's named"

It currently supports TypeScript and C#, with the goal of helping agents navigate code more efficiently than their default grep-based approach.

Benchmark Methodology

The developer ran 54 automated runs on Sonnet 4.6 across a 181-file C# codebase with:

  • 6 task categories
  • 3 conditions: baseline, tool available, architecture preloaded into CLAUDE.md
  • 3 repetitions each

Full NDJSON capture was recorded on every run to decompose tokens into fresh input, cache creation, cache reads, and output. The benchmark runner and telemetry capture are included in the repository.

Ad

Key Findings

Contrary to expectations, agents with the tool read more files (6.8 to 9.7 average vs. baseline) but made 67% more code edits per session and finished in fewer turns.

The savings came from shorter conversations, which reduced cache accumulation. Approximately 90% of token cost lives in cache accumulation.

Overall results:

  • 32% lower cost per task
  • 2x navigation efficiency (nav actions per edit)
  • Navigation-to-edit ratio improved from 25:1 (baseline) to 13:1 (with tool) and 12:1 (with architecture preloaded)

Results varied by task type:

  • Bug fixes: -62% cost
  • New features: -49% cost
  • Cross-cutting changes: -46% cost
  • Discovery and refactoring tasks: no advantage (baseline agents already navigate these fine)

Important Caveats

The developer notes several limitations:

  • p-values don't reach 0.05 at n=6 paired observations (direction is consistent but sample is too small for statistical significance)
  • Benchmarked on C# only so far (TypeScript support exists but hasn't been benchmarked yet)
  • Cost calculation uses current Sonnet 4.6 API rates: fresh input $3/M, cache write $3.75/M, cache read $0.30/M, output $15/M

The tool is open source and available at github.com/rynhardt-potgieter/scope for developers who want to experiment with improving agent token efficiency.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

오픈소스 클로드 코드 플러그인 에이전트 커머스 프로토콜용
Tools

오픈소스 클로드 코드 플러그인 에이전트 커머스 프로토콜용

OrcaQubits는 MIT 라이선스로 Magento 2, BigCommerce, WooCommerce와 같은 플랫폼을 지원하며 UCP, ACP, AP2, A2A를 포함한 에이전트 커머스 프로토콜을 구현하는 8개의 오픈소스 Claude Code 플러그인을 출시했습니다.

OpenClawRadar
🦀
Tools

클로드 코드 스킬 세금: 2,596개 설치, 40개 사용, 월 91달러 낭비

설치된 모든 Claude Code 스킬은 모든 세션의 시스템 프롬프트에 로드됩니다. 한 사용자가 세션당 102,651개의 토큰이 로드되었고, 그중 98.6%가 사용되지 않아 월 약 91달러의 비용이 발생한다고 측정했습니다. 오픈소스 도구 skill-tax는 사용량과 비용을 감사합니다.

OpenClawRadar
오픈클로로 지속 가능한 AI 지식 인프라 구축하기
Tools

오픈클로로 지속 가능한 AI 지식 인프라 구축하기

한 개발자가 AI 설정에서 흔히 발생하는 상태 비저장 문제를 해결하기 위해 OpenClaw 위에 '브레인'이라는 완전한 지식 인프라 시스템을 구축했습니다. 이 시스템은 Ollama, Postgres, MongoDB, Qdrant, Memgraph를 사용하여 로컬 하드웨어에서 전적으로 실행됩니다.

OpenClawRadar
Void-Box를 사용하여 격리된 마이크로-VM에서 OpenClaw 실행하기
Tools

Void-Box를 사용하여 격리된 마이크로-VM에서 OpenClaw 실행하기

OpenClaw는 Void-Box를 사용하여 격리된 마이크로-VM 내부에서 서비스로 실행될 수 있습니다. Void-Box는 KVM 마이크로-VM에서 워크플로우를 실행하는 기능 제한 런타임으로, 컨테이너 런타임의 개입 없이 깨끗한 실행 경계를 제공합니다.

OpenClawRadar