Measuring the long-term memory of the leading coding agents: Claude Code vs Codex vs Devin
The
past.dev team tested the memory of the 3 leading AI coding agents, Claude Code, Codex and Devin, each using its own harness and built-in memory, on DolphinBench's 600 tests.
Key takeaways:
➤ Devin Memory ranks first. Devin's built-in memory scored 84.7%, 8.5 points ahead of Claude Code and 18.4 ahead of Codex.
➤
past.dev improves all three. With
past.dev's plugin on top of their memory, Claude Code climbs from 76.2% to 89.7% and Codex from 66.3% to 85.8%. Devin with
past.dev reaches 93.2%.
➤
past.dev cuts token costs.
past.dev cut input tokens per test by 41% on both Claude Code and Codex, and more than halved Codex's cost per passed test ($0.119 → $0.055).
➤ Devin +
past.dev reached 93.2%, the highest score in our runs, with no latency cost.
Testing method:
➤ The benchmark was designed by mem0 and consists of 600 questions, 200 per person (Morgan, Alex, Riley). Questions are based on a history of 13,539 messages: 339 are memory questions and 261 require document generation based on memory.
➤ Answers were graded by the official grader in DolphinBench: gpt-5.6-sol with medium effort.
➤ Each agent built its own memory from the replayed history, as it would for a real user. Devin used its medium model on Devin cloud, Claude Code used Opus 5.5, and Codex 0.165 used Sol 6.1 with Memory v2.