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.

Ranked by contribution per token
ChunkTokensContributionPer 1k tokens
src/agent/plan.ts1,0170.0950.094packed
src/types.ts1,1590.1000.086packed
src/agent/state.ts9660.0660.068packed
src/errors.ts1,3220.0810.061packed
src/agent/tools.ts2,3450.1090.046packed
src/agent/prompt.ts1,5380.0660.043packed
README.md1,7710.0760.043packed
src/agent/router.ts2,4910.0870.035packed
docs/rfc-archive.md29,7920.0040.000dead weight
docs/changelog.md27,0300.0040.000dead weight
test/snapshots/ui.snap13,9980.0010.000dead weight
vendor/protobuf.ts31,2240.0020.000dead weight
package-lock.json40,5470.0020.000dead weight
test/fixtures/large.json41,5140.0010.000dead weight
vendor/sdk-generated.ts24,8790.0000.000dead weight
dist/bundle.js29,6930.0000.000dead weight
src/legacy/v1-adapter.ts41,2890.0000.000dead weight
src/legacy/v1-types.ts22,5970.0000.000dead weight
test/fixtures/seed.json32,0280.0000.000dead weight
vendor/analytics.ts11,1750.0000.000dead weight