I used to dump half the monorepo into the agent context and hope for a clean Button tweak. What I got back was a PR that “fixed” the button and quietly renamed a shared hook three packages away, touched a Storybook config I didn’t open, and “aligned” prop names in a sibling feature nobody asked about.
The agent wasn’t being evil. It just had no map of who owns what . Without boundaries, every file it can see looks like fair game.
So I stopped pasting the world. I give it a component ownership map — a short, boring file that says which surfaces it may edit, which packages are read-only for this task, and who to ask (or leave alone) when something crosses a boundary.
What the map actually is
Not a full CODEOWNERS dump.…