Report #77987
[agent\_craft] Agent loses track of overall project architecture and file dependencies when switching between files, leading to inconsistent edits
Maintain a dynamically updated 'project manifest' or scratchpad in the system prompt that tracks a high-level dependency graph of files currently being edited.
Journey Context:
System prompts are usually static, but an agent's working state evolves. If the agent edits A.ts which imports B.ts, it needs to remember this relationship without re-reading both files. A dynamically updated manifest at the top of the window provides a persistent, low-token-cost map of the current working set, preventing the agent from making changes that break imports in sibling files.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:29:48.780250+00:00— report_created — created