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

/compress-architecture: 과도한 엔지니어링을 제거하는 에이전트 기술
Tools

/compress-architecture: 과도한 엔지니어링을 제거하는 에이전트 기술

/compress-architecture라는 새로운 에이전트 스킬은 코드베이스에서 추측성 레이어, 단순 전달 모듈, 중복 개념을 감사하면서 실제 도메인 경계와 공개 API를 보호합니다.

OpenClawRadar
Obliteratus 도구를 사용하여 AI 모델의 거부 가중치 제거하기
Tools

Obliteratus 도구를 사용하여 AI 모델의 거부 가중치 제거하기

레딧 사용자가 AI 모델의 거부 행동을 담당하는 특정 가중치를 외과적으로 제거하기 위해 Obliteratus 툴킷을 사용했으며, 이는 알리바바의 Qwen 1.5B 모델에서 재훈련 없이도 훈련 출처를 드러낼 수 있음을 보여주었습니다.

OpenClawRadar
LLM을 위한 관계형 메모리: 사용자 관계를 모델링하는 3계층 시스템
Tools

LLM을 위한 관계형 메모리: 사용자 관계를 모델링하는 3계층 시스템

오픈소스 파이썬 도구로, 평면적인 사실 저장 대신 3계층 서사 구조를 사용하여 7가지 심리적 차원에서 사용자-AI 관계를 모델링함으로써 LLM에 관계적 메모리를 추가합니다.

OpenClawRadar
클로드 코드 스킬은 제미나이 AI를 사용하여 앱 스토어 스크린샷을 생성합니다.
Tools

클로드 코드 스킬은 제미나이 AI를 사용하여 앱 스토어 스크린샷을 생성합니다.

새로운 Claude Code 스킬인 /aso-cosmicmeta-ss는 코드베이스를 분석하고 Gemini AI를 활용하여 향상시키는 6단계 워크플로우를 통해 App Store와 Google Play 스크린샷을 생성합니다. 이 스킬에는 API 크레딧을 사용하기 전에 레이아웃 문제를 발견하는 승인 게이트가 포함되어 있습니다.

OpenClawRadar