Live demo
20 measured chunks in. 8 out.
Twenty chunks with contribution measured by ablation across 180 tasks, against a 24k budget. The naive packing sends all of it.
Send everything
358k tokens
Packed to budget
12.6k tokens
98.1% of measured value retained on 3.5% of the tokens.
| Chunk | Tokens | Contribution | Per 1k tokens | |
|---|---|---|---|---|
| src/agent/plan.ts | 1,017 | 0.095 | 0.094 | packed |
| src/types.ts | 1,159 | 0.100 | 0.086 | packed |
| src/agent/state.ts | 966 | 0.066 | 0.068 | packed |
| src/errors.ts | 1,322 | 0.081 | 0.061 | packed |
| src/agent/tools.ts | 2,345 | 0.109 | 0.046 | packed |
| src/agent/prompt.ts | 1,538 | 0.066 | 0.043 | packed |
| README.md | 1,771 | 0.076 | 0.043 | packed |
| src/agent/router.ts | 2,491 | 0.087 | 0.035 | packed |
| docs/rfc-archive.md | 29,792 | 0.004 | 0.000 | dead weight |
| docs/changelog.md | 27,030 | 0.004 | 0.000 | dead weight |
| test/snapshots/ui.snap | 13,998 | 0.001 | 0.000 | dead weight |
| vendor/protobuf.ts | 31,224 | 0.002 | 0.000 | dead weight |
| package-lock.json | 40,547 | 0.002 | 0.000 | dead weight |
| test/fixtures/large.json | 41,514 | 0.001 | 0.000 | dead weight |
| vendor/sdk-generated.ts | 24,879 | 0.000 | 0.000 | dead weight |
| dist/bundle.js | 29,693 | 0.000 | 0.000 | dead weight |
| src/legacy/v1-adapter.ts | 41,289 | 0.000 | 0.000 | dead weight |
| src/legacy/v1-types.ts | 22,597 | 0.000 | 0.000 | dead weight |
| test/fixtures/seed.json | 32,028 | 0.000 | 0.000 | dead weight |
| vendor/analytics.ts | 11,175 | 0.000 | 0.000 | dead weight |