ctxray

demo-app

/tmp/demo-app

25 files · 1.3 MB · scanned 11/12/2026, 6:46:33 PM · ctxray estimator (~6% median error)

2 binary files (410 KB) counted as zero tokens — agents skip them.

F
Severe. The agent is mostly reading noise.
312k
Tokens in repo
94%
Is waste
274k
Reclaimable
$1.25
Per full pass · Claude Opus 5.5

Signal vs. waste

20k signal — 10 files 292k waste — 15 files 5.4k tokens are duplicate content
$700 / month burned on tokens the agent cannot use
Assuming 20 full-context Claude Opus 5.5 calls per day at $4.00/M input tokens. That is $23.35/day and $8522/year, before output tokens.

Cost per full-context pass

ModelAs-isAfter cleanupSavedWindow fit
Claude Opus 5.5Anthropic $1.25 $0.080 −$1.17 31% of window
Claude Sonnet 5.5Anthropic $0.624 $0.040 −$0.584 31% of window
Claude Haiku 5.5Anthropic $0.031 $0.002 −$0.029 31% of window
GPT-5 classOpenAI $1.56 $0.100 −$1.46 78% of window
Gemini 3.x ProGoogle $0.624 $0.040 −$0.584 31% of window

Input-token prices checked 2026-11-11. Override with --pricing models.json.

Waste by category

Bulk data: 96k tokens Lockfiles: 79k tokens Test fixtures & snapshots: 38k tokens Minified bundles: 28k tokens Build output: 24k tokens Generated code: 13k tokens Doc archives: 8.6k tokens Duplicate content: 5.4k tokens
Bulk data 96k
Lockfiles 79k
Test fixtures & snapshots 38k
Minified bundles 28k
Build output 24k
Generated code 13k
Doc archives 8.6k
Duplicate content 5.4k
Signal20k

Heaviest directories

data
96k
100% waste
.
88k
100% waste
assets
28k
100% waste
tests/fixtures
26k
100% waste
dist
24k
100% waste
tests/__snapshots__
12k
100% waste
src/routes
12k
23% waste
src/generated
6.9k
100% waste
src/lib
6.3k
43% waste
src/types
6.2k
100% waste
src
2.7k
0% waste
scripts
2.7k
0% waste

Where the tokens live

data/customers.csv 96k tokens — Bulk data file (219 KB) — send a schema and 3 sample rows instead customers.csv 96k package-lock.json 79k tokens — Dependency lockfile — huge, and the manifest says the same thing package-lock.json 79k assets/map.svg 28k tokens — Minified or single-line generated file map.svg 28k tests/fixtures/sample-response.json 26k tokens — Test fixture/snapshot under fixtures/ — high volume, low signal sample-response.json 26k tests/__snapshots__/users.test.js.snap 12k tokens — Test fixture/snapshot under __snapshots__/ — high volume, low signal dist/bundle.js 11k tokens — Build artifact under dist/ — regenerated from source dist/vendor.min.js 10k tokens — Build artifact under dist/ — regenerated from source CHANGELOG.md 8.6k tokens — Long changelog (26 KB) — history an agent rarely needs src/generated/api_pb2.py 6.9k tokens — Declares itself auto-generated — regenerate, do not read src/types/schema.generated.ts 6.2k tokens — Declares itself auto-generated — regenerate, do not read src/routes/users.js 4.9k tokens src/routes/orders.js 4.4k tokens dist/bundle.js.map 3.4k tokens — Build artifact under dist/ — regenerated from source src/index.js 2.7k tokens scripts/format.js 2.7k tokens src/lib/format.js 2.7k tokens — Byte-identical to scripts/format.js src/routes/format.js 2.7k tokens — Byte-identical to scripts/format.js src/lib/db.js 2.0k tokens src/lib/auth.js 1.7k tokens tests/users.test.js 1.3k tokens README.md 255 tokens package.json 85 tokens .gitignore 12 tokens

signal   waste   — area is proportional to token count. Hover for details.

By language

JSON
105k
3 files
CSV
96k
1 files
JavaScript
46k
11 files
SVG
28k
1 files
SNAP
12k
1 files
Markdown
8.9k
2 files
Python
6.9k
1 files
TypeScript
6.2k
1 files
MAP
3.4k
1 files
Other
12
1 files

Worst individual offenders

data/customers.csv
Bulk data file (219 KB) — send a schema and 3 sample rows instead
96k
$0.384
package-lock.json
Dependency lockfile — huge, and the manifest says the same thing
79k
$0.316
assets/map.svg
Minified or single-line generated file
28k
$0.112
tests/fixtures/sample-response.json
Test fixture/snapshot under fixtures/ — high volume, low signal
26k
$0.103
tests/__snapshots__/users.test.js.snap
Test fixture/snapshot under __snapshots__/ — high volume, low signal
12k
$0.048
dist/bundle.js
Build artifact under dist/ — regenerated from source
11k
$0.042
dist/vendor.min.js
Build artifact under dist/ — regenerated from source
10k
$0.040
CHANGELOG.md
Long changelog (26 KB) — history an agent rarely needs
8.6k
$0.034
src/generated/api_pb2.py
Declares itself auto-generated — regenerate, do not read
6.9k
$0.028
src/types/schema.generated.ts
Declares itself auto-generated — regenerate, do not read
6.2k
$0.025

Duplicate content — 5.4k tokens paid for more than once

ContentCopiesWasted
scripts/format.js
src/lib/format.js · src/routes/format.js
35.4k

Every file

PathLanguageTokensSizeStatus
data/customers.csv CSV 95,944 219 KB waste
Bulk data file (219 KB) — send a schema and 3 sample rows instead
package-lock.json JSON 78,916 273 KB waste
Dependency lockfile — huge, and the manifest says the same thing
assets/map.svg SVG 28,083 61 KB waste
Minified or single-line generated file
tests/fixtures/sample-response.json JSON 25,765 62 KB waste
Test fixture/snapshot under fixtures/ — high volume, low signal
tests/__snapshots__/users.test.js.snap SNAP 12,040 33 KB waste
Test fixture/snapshot under __snapshots__/ — high volume, low signal
dist/bundle.js JavaScript 10,524 26 KB waste
Build artifact under dist/ — regenerated from source
dist/vendor.min.js JavaScript 10,035 59 KB waste
Build artifact under dist/ — regenerated from source
CHANGELOG.md Markdown 8,621 26 KB waste
Long changelog (26 KB) — history an agent rarely needs
src/generated/api_pb2.py Python 6,930 19 KB waste
Declares itself auto-generated — regenerate, do not read
src/types/schema.generated.ts TypeScript 6,218 18 KB waste
Declares itself auto-generated — regenerate, do not read
src/routes/users.js JavaScript 4,911 15 KB signal
src/routes/orders.js JavaScript 4,390 14 KB signal
dist/bundle.js.map MAP 3,356 20 KB waste
Build artifact under dist/ — regenerated from source
src/index.js JavaScript 2,726 8 KB signal
scripts/format.js JavaScript 2,705 8 KB signal
src/lib/format.js JavaScript 2,705 8 KB waste
Byte-identical to scripts/format.js
src/routes/format.js JavaScript 2,705 8 KB waste
Byte-identical to scripts/format.js
src/lib/db.js JavaScript 1,984 6 KB signal
src/lib/auth.js JavaScript 1,653 5 KB signal
tests/users.test.js JavaScript 1,262 4 KB signal
README.md Markdown 255 1 KB signal
package.json JSON 85 0 KB signal
.gitignore Other 12 0 KB signal
assets/hero.jpg Binary 0 234 KB waste
Binary file — unreadable by a language model
assets/logo.png Binary 0 176 KB waste
Binary file — unreadable by a language model
Next steps
  1. Run ctxray init to write a tuned .agentignore and an AGENTS.md scaffold.
  2. Run ctxray budget 100k to pick the highest-value files that fit a focused window.
  3. Add ctxray --ci --max-waste 84 to CI so this does not regress.