Run agents as mentors for juniors, not replacements
Agents can mentor juniors with explanations, alternatives, and review comments, or become a crutch that ships code nobody understands.
Agents can mentor juniors with explanations, alternatives, and review comments, or become a crutch that ships code nobody understands. Teaching prompts and review rituals keep learning in the loop.
Teams that replace mentorship with silent agent merges grow juniors who cannot debug. The goal is faster learning with guardrails, not faster dependency.
Decide: mentor seat or silent replacement
Use the mentor seat when:
- The junior states the goal, constraints, and initial plan before agent coding.
- The agent session starts with questions and small suggestions; code comes after a plan check.
- Implementation happens in thin slices with tests the junior runs themselves.
- The PR includes a short teach-back: key decisions and risks.
- A human mentor reviews code and teach-back, asking at least one “what if”.
Avoid silent replacement: merging agent code the junior cannot explain, skipping tests because the model “seemed sure,” or never reading neighboring code.
The mentor loop

Mentor Loop
- Junior writes task goal, constraints, and plan in the ticket or PR draft.
- Agent focuses on questions and small suggestions first; generation comes after the plan check.
- Implement in thin slices with tests. Junior runs the commands.
- Junior writes a teach-back: what changed, why, and what could break.
- Human mentor reviews code and teach-back with at least one counterfactual question.
- Schedule periodic agent-free tasks so debugging muscles stay sharp.
Three traps that shrink skill

Failure modes to catch early
- Unexplained merge. Debt lands on seniors. Fix: require teach-back before merge.
- Agent certainty. Bugs survive review. Fix: junior runs checks; no “model was sure” exceptions.
- Avoid the codebase. Local style drifts. Fix: point at neighbor files before generation; keep agent-free drills.
A short weekly ritual
Once a week, pick one merged PR and do a five-minute teach-back aloud with a mentor. Once every two weeks, run one small task with no agent. Update the prompt template with one “good plan” example from the week.
Bottom line

When this fits vs when it does not
Agents mentor juniors when plans, teach-backs, and human what-if questions stay mandatory. They replace juniors when merges are silent. Keep learning in the loop. For history and review hygiene around those PRs, pair with git history hygiene for agents.
Share