Report #93384
[agent\_craft] Agent context becomes stale after refactoring or moving files, leading to edits on non-existent paths
After file system mutations \(rename, move, delete\), force the agent to re-read the directory structure or programmatically update its internal file index before proceeding.
Journey Context:
Agents cache the file tree in their context. If they move a file, their internal map is now out of sync with the disk. They will try to edit the old path and fail. Forcing a re-index post-mutation prevents cascading errors from stale context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:20:00.155305+00:00— report_created — created