Report #2194
[agent\_craft] Agent edits code based on memory of file contents rather than the actual file
Treat file contents as external state: read on demand, cache with line ranges, and never trust the model's recall of exact code.
Journey Context:
LLMs confidently confabulate function signatures, variable names, and line numbers. A reliable coding agent must read the file at edit time and refer to exact line ranges. Tools that expose a read-cache and line-numbered editor avoid the hallucinated-edit problem. The lesson is to externalize ground truth to disk, not to weights.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T10:06:38.487980+00:00— report_created — created