to avoid lot os problems i use kaplira to help maintain de code in boundaries and not let the agent do everything they want.