EngineeringLead

Leading with AI

Leading engineers who build with AI

AI assistants and agents can draft code, tests and documents in seconds. A team that uses them well ships more and learns faster. A team that uses them carelessly ships more of what it doesn't understand. The difference is leadership.

Principle 1: a person owns every change

Whoever merges a change owns it: they must be able to explain what it does, why it is correct, and how it fails. "The assistant wrote it" is never an answer in a review or an incident. Make this explicit in your team's working agreement, and model it yourself. Put it in writing as part of your AI coding assistant policy.

Principle 2: keep changes reviewable

A step-by-step checklist is in reviewing AI-generated code.

Principle 3: set guardrails before rollout

DecisionQuestions to answer
Approved toolsWhich assistants and agents? Under which accounts and contracts?
Data boundariesWhat code, customer data, secrets or controlled technical data may each tool see?
Agent permissionsWhat can an agent do without a person approving it: run commands, open pull requests, touch production? See AI agents in the software lifecycle.
Licensing and provenanceHow are you checking that generated code doesn't bring in licensing problems?
SecurityHow are dependencies suggested by AI checked? How are secrets kept out of prompts?
RecordsIn regulated work, how are AI-assisted changes recorded and reviewed? See regulated engineering.

Principle 4: design for learning

Engineers early in their careers can now produce working code before they understand it. That is not a reason to ban the tools. It is a reason to build understanding on purpose:

  1. Explain-back in review. Ask the author to walk through the change and its failure modes.
  2. Debugging rotations. Diagnosing real incidents builds the mental models that generation skips.
  3. Design before prompting. For non-trivial work, a short written design comes first, and the tool helps implement it.
  4. Pairing across levels, including on how senior engineers direct, question and correct AI output.

Principle 5: decide what never gets delegated

Some decisions stay with people regardless of tooling: architecture that is expensive to reverse, security-sensitive changes, anything touching safety, and the call to ship. Write the list down. Teams move faster when the boundaries are clear than when they are guessed.

Common failure patterns

Principle 6: make the stance clear

DORA's 2025 AI Capabilities Model names a "clear and communicated AI stance" among the capabilities that shape whether AI adoption helps teams, alongside practices such as working in small batches and strong version control. When engineers have to guess what is allowed, some avoid useful tools and others take risks they don't see. Say plainly which tools are approved, for what, and with which data, and revisit it as tools change.

Running a team retrospective on AI use

Every few months, spend one retrospective on the tools themselves:

To tell whether AI tools are actually helping, see measuring engineering work.

Common questions

Should engineering leads require AI tools?

Making approved tools available and teaching good use tends to work better than mandates. Judge the results by outcomes such as delivery and quality, not by usage.

How do junior engineers learn if AI writes the code?

By explaining their changes, debugging real problems, writing designs before prompting, and pairing with senior engineers. Career ladders can make these expectations explicit; see engineering career ladders.

What should never be delegated to AI?

Decisions that are expensive to reverse, security-sensitive and safety-related changes, and the decision to ship. Write the list down for your team.

Last reviewed 2026-09-17