Even with human junior devs, ideally you'd maintain some documentation about common mistakes/gotchas so that when you onboard new people to the team they can read that instead of you having to hold their hand manually.
You can do the same thing for LLMs by keeping a file with those details available and included in their context.
You can even set up evaluation loops so that entries can be made by other agents.