AI coding agents can modify an unfamiliar file in seconds. The slower question is often more important:

Why does this code look this way?

The answer may be scattered across old local sessions: one turn investigated the bug, another rejected an approach, and a later turn made the edit. Git preserves the code change, but not necessarily the surrounding agent conversation.

I added a local query layer to ThoughtDAG so a developer—or a coding agent—can deliberately retrieve that history before editing:

npx thoughtdag why src/lib/api.ts