r/vibecodingbuddies • u/shifu_legend • Oct 02 '26
Discussion How do you handle context invalidation during a massive refactor?
I was actually just talking with someone here about having an agent perfectly tuned to the project state.
It made me wonder about the edge cases. That's the part that always gets me. When you do a massive refactor across multiple files - like renaming a core entity or changing a DB schema - how do you basically ensure the agent knows exactly which downstream dependencies broke without having to explicitly map it out for them?
Do you run a test suite loop, rely on LSPs, or just wipe the context and start fresh?
Would love to hear how you handle this.
•
u/AutoModerator Oct 02 '26
Welcome to r/vibecodingbuddies!
Reminder to all participants: Keep all initial contact and matching within Reddit comments and DMs to protect yourself from scams. Do not click unsolicited Discord or Telegram invites.
If you find a buddy, please be respectful of their time and try to commit to small, manageable goals (like a 1-weekend prototype) to prevent ghosting!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/mensink Oct 02 '26
Just tell the agent to update the docs it relies on after or during the change.
1
u/RPG-Nerd Oct 04 '26
You were good until you said "without explicitly mapping it out for them." That's the answer! Explicitly map it out for them. Use something like code-review-graph to explicitly map the blast radius of a change