Seams and adapters are the practical machinery that makes agentic code safe.
Now, we need to understand what these concepts refer to.
a seam is a place where you can alter behavior in your program without editing in that place
Essentially, a seam is a change point that lets you substitute behavior.
In agentic programming, these patterns matter because the agent should be able to change implementation at the edges without corrupting the core model.
Without seams and adapters, external details leak into the domain.
Fix 1: Improve architecture
A skill that works to make design better over time is the following: https://github.com/mattpocock/skills/blob/main/skills/engineering/improve-codebase-architecture/SKILL.md
It provides a rigorous framework to manage coupling effectively in large projects.