← Work

eve-tokyo

October 2026 to now · open source · source on GitHub
TypeScriptVitestPythoneveVercel AI GatewayDigitalOcean inferenceDocker

Why it exists

eve’s compaction first trims old tool output without calling a model, and only writes a summary when trimming is not enough. Long agent runs still compact many times, and each summary updates the last one. I wanted to know what survives that loop: which exact details are still in context after the first, second and fifth compaction, alongside context reduction, cost and latency.

Measuring compaction drift is not a new idea, and the README credits the work it builds on. What I could not find was numbers for eve, or recall scored across repeated summary-of-a-summary cycles per detail type.

How it works

A pinned eve checkout gets the bench copied in, and each strategy is a small patch applied to a sibling copy of eve’s real engine.ts and prompt.ts. Everything else is eve’s own code. Synthetic sessions, generated from a fixed seed, plant uniquely identifiable paths, errors, commands and decisions at the start, middle or end of tool results shaped like eve’s own tools. After each round the bench checks for each detail by exact substring match over the kept context.

The summary path was run with six summarizers: three through the Vercel AI Gateway and three open-weight models through DigitalOcean inference.

The main result

Every build and test run in these sessions failed, and the failure was always at the end of the output. When compaction kept only the start of a trimmed result (eve’s default, with or without the #4771 fix below), summaries described a failing build or test as passing in 72 of 180 checkpoints across the six models. When it kept the start and the end, none did. Per model, out of 15 checkpoints each:

Summarizereve default#4771 fixhead + tail
anthropic/claude-haiku-5.5340
openai/gpt-6-luna-fast110
google/gemini-3.8-flash010
deepseek-v4.1-flash15130
qwen3.8-max10110
kimi-k2.6850

The frontier models mostly hedged when the end was missing; the open-weight models filled the gap with “passed”. Summaries also kept meaning better than exact strings: after one summary about 5% of exact error strings remained, after five about 1%, on every model tested.

After the fix

The eve team merged fixes for both compaction reports on October 15 (below). I reran the benchmark on October 25 against eve as shipped at a3654ef, with the same sessions, seeds and scorer and no patches. Checkpoints that called a failing build or test passing went from 29 of 75 on the five summarizers rerun to 0 of 75. Exact retention now tracks the head and tail run, and sessions go 10 to 15 cap rounds before their first summary instead of 6 to 7, because a capped result no longer shrinks again at every compaction: fewer paid summaries for the same work. Kimi was not rerun, to keep the cost down.

Long-run sessions

The second half of the repo drives real multi-hour eve sessions on coding tasks: changes to real repositories and a command-line tool built from scratch over 48 features in three stages. Each new message adds a rule, so the rules from the first message survive only through compaction. A driver starts a headless eve dev, sends continue prompts until the agent reports done or a turn, budget or time limit is hit, then asks recall questions and runs the task’s checks in a sandbox container. Every model call, context dump, tool call and hook event is logged.

Two of the bug reports below, #5350 and #5936, came out of these runs.

Reported upstream

Six issues on vercel/eve, each with a minimal reproduction. The fixes were written and merged by the eve team.

The companion repro

eve-recap-repro is the minimal reproduction for #4769. It is a fresh npx eve@0.79.0 init project that runs fully offline: a mock model calls a tool returning 400 grep lines that end in a FAIL line, then pads each later turn with 40,000 characters so every turn compacts again. Over six turns the output shows the result capped once at turn 4 and then re-capped, with annotations and backslashes piling up while the kept paths drop from 60 to 35 and the FAIL line is gone.

Caveats

The benchmark sessions are synthetic, and errors are planted at the end of outputs as in real test and build runs, which favours a head and tail cap by construction. There are 3 seeds per model and summaries vary run to run, so the tables show direction rather than precision. The main result was measured against eve 0.79.0 at commit 0fd4240, the rerun at a3654ef.