Skip to content
mentoor

Topic 5 of 5 · 4 min read

Keeping engineers skilled alongside agents

Goal: Plan onboarding and practice that keep engineers able to explain and debug code they merge with agent help.

An engineer who cannot explain or debug the code they merge is a risk, so teams must plan time for building and keeping that skill. Agents make it easy to ship code you do not understand. The cost arrives later, at 2 a.m., when the agent has no context and you have no model of the system.

Check yourself · 1 of 3

Why should a new engineer trace a request through the codebase before relying heavily on an agent?

Choose one answer

Why it matters

Review, debugging and design all depend on a mental model of the codebase. You build that model by reading, tracing and writing code yourself. If every task goes through an agent, juniors may never build it, and seniors may let it fade. The team then can still ship, but cannot reason about failures. Martin Fowler's team notes on using AI for coding make a related point: the person stays responsible for understanding what is produced.

What the team can do

  1. Onboarding that builds the model first. In the first weeks a new hire reads the architecture notes, traces one request end to end, and fixes a small bug with the agent turned off or used only to explain. Then the agent is introduced as a tool on top of understanding.
  2. Explain before merge. For a non-trivial change, the author can answer: what does this do, what could break, how would I find out? Reviewers may ask these in the pull request. If the author cannot answer, the change is not ready.
  3. Pairing. Pair a junior and a senior on an agent session. The junior drives, the senior asks why. Seeing how an experienced person checks the agent's work is the fastest way to learn it.
  4. Protected hand-coding time. Keep a regular slot, for example one task a week, done without an agent: a small feature, a bug hunt from logs, a code reading session. It keeps skills in use.
  5. Debug without the agent. Run occasional incident drills where the team finds a seeded fault with logs, a debugger and tests first.
  6. Use the agent as a tutor. Ask it to explain unfamiliar code, then verify the explanation against the source.

Before and after

Before: a new engineer pastes every ticket into an agent, merges green pull requests for a month, and in an incident cannot say where requests enter the system.

After: the plan for weeks one to four has a code-reading task, a traced request written up in a page, two small fixes by hand, then agent work paired with a senior. At the end they walk the team through a change they made.

What goes wrong

  • Treating speed as the only goal. Short-term output grows while understanding shrinks.
  • Hand-coding as punishment or nostalgia. Make it targeted: choose tasks that build the skill you want.
  • Skipping seniors. Experts also lose practice when they only supervise.

Examples

A four-week onboarding plan

Week 1: read the architecture notes and trace one request, written up in a page. Week 2: fix two small bugs by hand. Week 3: paired agent session with a senior. Week 4: ship a small change and explain it in the team meeting.

An explain-before-merge question

A reviewer asks on an agent-written change: "Which query is slowest and how would you see it in production?" The author cannot say, so they read the query plan and add a note and a log line before the change is approved.

Key points

  • Engineers must be able to explain and debug what they merge, so understanding is a delivery requirement.
  • Onboarding should build a mental model of the codebase before agent use becomes the default.
  • Ask authors what the change does, what could break and how they would find out before merging.
  • Pair juniors with seniors on agent sessions so they learn how experts check agent work.
  • Protect regular hand-coding and agent-free debugging time for everyone, seniors included.

Common mistakes

  • Letting new hires use an agent for every task from day one.
  • Measuring only output speed and never understanding.
  • Making hand-coding time vague, so it never happens.
  • Assuming seniors do not need practice.

Check yourself · 2 of 3

Which question best checks that an author understands an agent-written change?

Choose one answer

Check yourself · 3 of 3

What is the main purpose of protected hand-coding time?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic