NewsCrawler.org

Test: Claude Code's saved notes go stale as the codebase changes

Enola's article says coding agents can keep notes between sessions, but the code those notes describe keeps changing. A saved line number can point to a different function after edits elsewhere in the same file, and the next agent may miss a note if it describes the same code in other words.

The authors ran an experiment on 40 historical fixes in two open-source TypeScript projects, Excalidraw and Vite. For each fix, Claude Code with Opus 5.5 ran in a fresh session and saved 96 source locations in a MEMORY.md file: 45 in Excalidraw and 51 in Vite. After thirty days, 13 of the Excalidraw locations and 8 of the Vite locations pointed into a different function, and at later revisions these numbers rose to 25 and 18. The original functions still existed; they had usually moved because of edits elsewhere in the file.

To track the references, the authors used Enola, which extracts symbols[1] and their relationships from source code. Its locate command returns a symbol's identifier, name and body_hash[2], a fingerprint of its code. Saving this data with a note lets a later session check whether the implementation changed, and lets a memory system link notes about the same symbol even when they are worded differently.

Repository Enola github.com

Open source tool that extracts symbols and their relationships from source code, so you can understand and analyze software across repositories and languages.

Stars: 304Forks: 27License: Apache-2.0Updated:

Read the original enola.techDiscussion

Discussion

Commenters mostly agree that line numbers break in changing repositories. One said the notes of their personal agent drifted after a refactor, so the agent read unrelated code without knowing it. Another checked their own notes, found that most line numbers no longer point at anything, and now only checks for links between notes that point to nothing.

Sources

Published: First seen: Читать по-русски

Open as a page