Report #16077
[agent\_craft] Agent uses an outdated repository map or AST after modifying files, leading to calls to deleted functions
Trigger a re-indexing of the repository map or AST immediately after any file-writing tool call, before the next planning step.
Journey Context:
Agents often build a repository map \(like a tree of classes/functions\) at the start of a session. If they delete a function or rename a class, but the map in their context is stale, they will hallucinate calls to the old signature. Re-indexing after writes ensures the context reflects reality. The tradeoff is the latency of re-running the AST parser, but it is negligible compared to the cost of a broken execution path.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:47:27.785837+00:00— report_created — created