Stop agents from fighting your Go codebase
Your task
A new engineer on your team keeps getting subtly wrong Go code from their coding agent. It writes helpers that already exist in internal/, panics where your code returns wrapped errors, and last week it edited a generated .pb.go file. The next code generation run wiped the edit out.
What do you put in place so this stops happening, for every engineer and every agent run in this repo?
It covers
- Codebase context
- Conventions
- Interfaces