Report #75545
[agent\_craft] Agent loses track of cross-file dependencies when editing multiple files simultaneously, leading to broken imports or inconsistent interfaces
Maintain a dependency graph or interface contract in the system context. Before modifying a shared interface, force the agent to list all files that import it and update them in the same transaction.
Journey Context:
Context windows are flat, but codebases are graphs. When an agent edits A.py, it might forget that B.py relies on the old signature. By explicitly maintaining a list of active dependencies or using a repo-map tool, the agent can keep its mental model synchronized with the codebase graph.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:23:45.362377+00:00— report_created — created