AI for Team and Tech Leads · 2 to 3 hours
Judge whether coding assistants helped your team
Use three quarters of team delivery data to separate what coding assistants changed from a holiday freeze and a migration, check whether code review became the bottleneck, and recommend which seats to renew and whether and how to try agent mode.
Business case
3 h
Used in interview rounds:
Leadership Scenarios (Medium)Overview
Engineering managers are asked whether coding assistants are worth renewing and expanding. This level teaches you to read team delivery data for that decision: separate tool activity from outcomes, adjust for what else changed, find where the work now waits, and turn the result into a renewal and a measured trial. You practice on a fictional product group's three quarters of data.
Study time: 2 to 3 hours
Interview format: Business case with a delivery-metrics table and a renewal decision; the interviewer challenges one number and one assumption
By the end you can
- Sort engineering figures into tool activity, delivery activity, and outcome measures, and choose which to report
- Adjust a before-and-after comparison for a code freeze, a one-off project, and a low-adoption comparison team
- Compute review hours per reviewer and spot when the bottleneck has moved into code review
- Read quality measures with their lag and say which periods are complete enough to compare
- Compute cost per active seat and the cost of renewal and add-on options
- Recommend a renewal and a measured trial with measures, stop rules, an owner, and a review date fixed in advance
Prerequisites
Helpful background: No coding needed. Knowing what a pull request and a code review are helps, as does comfort with per-week and per-100 rates in a spreadsheet.
This topic covers the decisions a lead makes about a team's use of AI: which work to automate and where people stay involved, staff data rules, building or buying tools, measuring quality, cost, and return, rolling out and training, and leading the response when AI output goes wrong. Responsible AI & Governance designs oversight and accountability for one system's effect on the people it serves, AI Product & Experimentation measures user-facing features with experiments, and AI Developer Tooling covers how engineers set up and secure coding assistants and agent harnesses.
Activity is not outcome
Figures about a coding assistant come in three kinds, and only one of them says whether the team got better.
| Kind | Examples | What it tells you |
|---|---|---|
| Tool activity | Seats used, suggestions accepted, acceptance rate, lines written by the tool, a vendor's "time saved" | How much people used the tool |
| Delivery activity | Pull requests merged, commits | How much work moved through the pipeline |
| Outcome | Lead time to production, failed deployments, reverts, escaped defects, what customers get | Whether delivery got faster or better |
Activity is easy to count and easy to inflate: smaller slices of the same work make more pull requests, and an accepted suggestion may be rewritten an hour later. Report activity as context; judge on outcomes.
The SPACE framework (Forsgren and colleagues, ACM Queue, 2021) holds that developer productivity is about more than activity and cannot be measured by a single metric. Its five dimensions are satisfaction and well-being, performance, activity, communication and collaboration, and efficiency and flow.
DORA (DevOps Research and Assessment, the research program behind the best-known delivery metrics) names two pitfalls: setting a metric as a goal, such as a mandate to deploy more often, makes teams likely to game it, and the metrics are for improving a team over time, not for competing with other teams. Work at team level, in each team's context, and never rank engineers by pull-request counts. The AI Product & Experimentation Easy question covers outcomes and baselines for user-facing features.
The delivery measures in plain words
| Measure | What it means | What it can hide |
|---|---|---|
| PRs merged per engineer per week | A pull request (PR) is a proposed code change that a teammate reviews before it is merged | Smaller slices of the same work look like more output |
| PR size (lines changed) | How big each change is | Large changes are slower to review and hide defects |
| Time to first review | Hours from opening a PR to its first review | A rising wait means the queue is in review |
| Reviewer minutes per PR | The reviewer's time on each PR | Fewer minutes can mean simpler work, or rushed review |
| Lead time | Commit to running in production (DORA's "change lead time") | The speed customers feel, but nothing about quality |
| Reverts within 7 days per 100 PRs | A change undone soon after merging | An early signal only; some bad changes are fixed with a follow-up change instead of undone |
| Change fail rate | Failed deployments divided by deployments; a failed deployment needs an immediate fix or rollback (DORA's name; the older name is change failure rate) | A deployment that bundles many changes hides which one failed |
| Escaped defects | Bugs found in production, traced to the change that caused them | They arrive weeks later, so recent periods look better |
Two rules apply to every figure. A rate needs a stated denominator: per 100 PRs, per deployment, or per engineer per week. And totals come from averages: a median time multiplied by a count does not give total time.
When code gets cheaper, review becomes the queue
When writing code gets faster, the wait moves to review and testing. Reviewers are often the most senior people, so their own planned work slips first, and no tool dashboard shows it.
DORA's guidance on working in small batches (updated December 2025) says AI adoption often leads to increased software delivery instability, that large changes are difficult to review, test, and integrate safely, and that reviewing machine-generated code can take more effort per line than reviewing code a person wrote. It advises against generating massive pull requests. DORA's 2025 report calls AI an amplifier of an organization's existing strengths and weaknesses.
To see whether review is the bottleneck, turn the figures into hours:
Review hours per reviewer per week = PRs merged per week x average reviewer minutes per PR / 60 / number of reviewers.
Compare the result with the time each reviewer can give. For example, 25 PRs a week at 18 minutes is 450 minutes, or 7.5 hours: 2.5 hours each for three reviewers. If time to first review and lead time rise as review hours pass capacity, the queue is in review.
Norms that help: a size limit per PR, authors listing the tests they ran, spreading review across more people (train another reviewer or rotate review), and review time protected in each reviewer's plan.
Quality shows up late
Quality signals arrive at different times: reverts within days of merging, failed deployments at release, and escaped defects weeks later, when a customer or a monitor finds them.
When defects are traced back to the period of the change, the most recent period always looks best, because its defects have not surfaced yet. A falling count for the latest period is usually the lag, not an improvement.
A period is complete once its newest change is older than the longest usual time for defects to surface. Compare only complete periods, or periods counted at the same age, and put the follow-up date in the plan. For example, if defects usually surface 3 to 8 weeks after a change, a quarter that ended 2 weeks ago is not ready; use reverts and failed deployments meanwhile.
Normalize every count, per 100 PRs or per deployment, before comparing: a team that merges more also reverts more in absolute terms.
Other things changed too
A before-and-after comparison measures everything that changed between the periods, not only the tool. List the other changes, then adjust for each.
- Seasons. A code freeze or holiday leave lowers a quarter's output. Divide by the weeks open for merging, or compare with the same quarter a year earlier. A baseline quarter with 10 open weeks divided by 13 makes the next quarter look 30% better with no change at all (13 / 10 = 1.3). Leave also lowers output inside open weeks, which no week count corrects.
- One-off projects. A migration or a batch of scripted changes adds many PRs: count them separately.
- Changes that started at the same time. A team that changed its review rules when the seats arrived shows the effect of both.
- People. Joiners, leavers, and reorganizations change output and review capacity.
A team that barely used the tool gives a rough comparison team: the change in the high-use teams minus the low-use team's change, a "difference of differences", suggests how much of the change would have happened anyway. If the low-use team chose low use, its work and people may differ, so treat the gap as rough. The method is taught in full in "Measure an AI pilot's quality, cost, and return", a prerequisite of this level.
Surveys measure experience, not delivery
Satisfaction is a real dimension of productivity in SPACE, so keep asking, and add specific questions such as "Where do you lose time?" and "What takes longer to review now?".
Perception can differ from measurement. In a randomized study published on July 10, 2025, METR followed 16 experienced open-source developers on 246 real issues in large repositories they had contributed to for multiple years; each issue was randomly assigned to allow or disallow AI tools. Issues with AI allowed took 19% longer, yet afterwards the developers still believed AI had sped them up by 20% (beforehand they had expected 24%). The authors did not claim that their setting represents most software work.
That page now says its results are out of date and, in METR's view, no longer reflect the current impact of AI models. A post on February 24, 2026 about a follow-up (57 developers, more than 800 tasks) called the new data an unreliable signal, because many developers withheld tasks they did not want to do without AI and others declined to take part. It adds that self-reported speedups "can be quite unreliable".
Use these studies as a reason to measure carefully, never as a figure to expect for your own team.
Seat cost, usage, and the full cost
- Cost per active seat = monthly bill / active users. State the definition of active (used in a typical week, or at least once in the last 28 days), because the same bill gives different figures. If only half the seats are used in a typical week, each active seat costs twice the list price.
- Seats never used since purchase are the first to release.
- Renewal options come down to all seats; seats for active users, with a quick way to ask for one back; or none. The request path keeps a saving from blocking someone who needs a seat.
- Add-ons such as an agent mode (the assistant makes a multi-file change on its own and opens a PR for review) are a different tool with their own price and risks. Price them separately, and do not assume results from plain seats carry over.
- The full cost includes reviewer and rework time, training, and admin, none of which is on the bill.
- A vendor's "time saved" usually multiplies a count, such as accepted suggestions, by an assumed number of minutes each: a model, not a measurement. It counts suggestions later rewritten and leaves out review and rework.
Try one change on one team first
When the evidence is mixed, or a new tool has none yet, try it on one team before buying it for everyone.
- Change one thing, in one team, for a fixed period, and compare with that team's own recent quarters measured the same way.
- Pick a team where the effect can be seen: steady work with no one-off project, spare review capacity, review norms, such as a size limit, in place before the trial starts, and people willing to take part.
- Before starting, write down one or two outcome measures, the guardrails (such as reverts, failed deployments, review hours per reviewer, and change size), the cost, and the thresholds that mean expand, adjust, or stop.
- Stop rules apply during the trial, not only at the end. Name an owner. Set one date to judge flow and cost, and a later one to judge quality once defects have had time to surface.
- Tell leadership what is known, what is not, and what you will know by when.
Scenario: the route-planning company's product group
Worked example
All figures are fictional.
Suppose a fictional company sells route-planning and warehouse software to freight carriers. It has 120 engineers. You manage its product group: 32 engineers in four teams of 8, named Routing, Warehouse, Driver App (the mobile app drivers use), and Billing. In every team, each pull request (PR: a proposed code change that a teammate reviews before it is merged) needs approval from one of the team's two senior reviewers.
At the start of Quarter 1, the company bought coding-assistant seats for all 120 engineers from Vendor A, at a fictional price of $23.70 per seat per month, billed for every seat whether it is used or not. Quarter 2 has just ended, and the first term ends with it; seats released at renewal can be added back within a day. The CTO asks for your recommendation: renew all 120 seats for 12 months, and add Vendor A's agent mode for all 120 at a fictional $41.70 per seat per month. Agent mode lets the assistant plan a change, edit several files, and run tests on its own, then open a PR for a person to review.
Facts and rules (each quarter has 13 weeks):
- Quarter 0 (October to December) is the baseline, before the seats. The customers' holiday peak froze merging for 2 weeks in December, so Quarter 0 had 11 weeks open for merging; nothing was merged or reviewed during the freeze. Many engineers also take leave in late December.
- Quarters 1 (January to March) and 2 (April to June) had all 13 weeks open.
- From mid-January to the end of June, Driver App moved its screens to a new user-interface framework (the code library its screens are built on). A conversion script plus the assistant produced the migration PRs: 260 in Quarter 1 and 208 in Quarter 2, all counted in Driver App's PRs merged.
- At the start of Quarter 1, Warehouse adopted a 400-line limit per PR and a rule that authors list the tests they ran.
- Billing works under payment-compliance rules and chose to use the assistant little.
- The senior reviewers agreed they can each give about 6 hours a week to reviews before their own planned work slips.
- Reviewer minutes per PR are the senior reviewer's time on that PR, as an average.
- A failed deployment needed an immediate fix or rollback; failed deployments divided by deployments is the change fail rate.
- Escaped defects (bugs found in production) are traced back to the quarter of the change that caused them. Here, defects usually surface 4 to 10 weeks after the change ships. Counts are as of the end of Quarter 2.
- No one joined or left the four teams during the three quarters.
Vendor A's admin dashboard for Quarter 2 (whole company, fictional): 120 seats; 79 weekly active seats (the average number used in a week); 96 seats used at least once in the last 28 days; 11 seats never used since purchase; 118,000 suggestions accepted, an acceptance rate of 31%; "estimated hours saved" 2,950, which the vendor computes as accepted suggestions x 1.5 minutes. Only the product group has delivery data; for the other 88 engineers you have only this dashboard.
Three quarters of team data
Worked example
All figures are fictional. Q0, Q1, and Q2 are Quarters 0, 1, and 2.
Delivery and review:
| Team, quarter | PRs merged (count) | PR size, lines (median) | Hours to first review (median) | Reviewer minutes per PR (average) | Lead time, commit to production, days (median) |
|---|---|---|---|---|---|
| Routing Q0 | 264 | 120 | 4 | 20 | 2.0 |
| Routing Q1 | 364 | 210 | 9 | 27 | 2.5 |
| Routing Q2 | 416 | 260 | 14 | 30 | 3.5 |
| Warehouse Q0 | 220 | 140 | 5 | 24 | 2.5 |
| Warehouse Q1 | 286 | 150 | 5 | 24 | 2.0 |
| Warehouse Q2 | 312 | 145 | 6 | 25 | 2.0 |
| Driver App Q0 | 176 | 150 | 6 | 30 | 3.0 |
| Driver App Q1 | 520 | 90 | 7 | 12 | 3.0 |
| Driver App Q2 | 468 | 100 | 8 | 15 | 3.0 |
| Billing Q0 | 176 | 100 | 8 | 30 | 4.0 |
| Billing Q1 | 234 | 105 | 8 | 30 | 4.0 |
| Billing Q2 | 234 | 100 | 8 | 30 | 4.0 |
Quality:
| Team, quarter | Reverts within 7 days | Failed deployments / deployments | Escaped defects traced to the quarter's changes (as of the end of Q2) |
|---|---|---|---|
| Routing Q0 | 4 | 4 / 50 | 3 |
| Routing Q1 | 7 | 5 / 55 | 7 |
| Routing Q2 | 13 | 9 / 60 | 2 |
| Warehouse Q0 | 3 | 4 / 50 | 3 |
| Warehouse Q1 | 4 | 4 / 52 | 3 |
| Warehouse Q2 | 4 | 4 / 55 | 1 |
| Driver App Q0 | 2 | 3 / 30 | 2 |
| Driver App Q1 | 9 | 5 / 40 | 5 |
| Driver App Q2 | 8 | 4 / 40 | 1 |
| Billing Q0 | 1 | 2 / 26 | 2 |
| Billing Q1 | 2 | 2 / 26 | 2 |
| Billing Q2 | 2 | 2 / 26 | 1 |
Adoption and survey (8 engineers per team). Quarter 0 has no seat or survey figures: the seats did not exist yet.
| Team | Weekly active seats, Q1 | Weekly active seats, Q2 | "I feel more productive with the assistant" (end of Q2) |
|---|---|---|---|
| Routing | 6 | 7 | 7 of 8 |
| Warehouse | 7 | 7 | 6 of 8 |
| Driver App | 7 | 8 | 8 of 8 |
| Billing | 3 | 2 | 2 of 8 |
Work the team figures
Work each figure from the scenario and the tables before you reveal it.
Predict the outcome
Work the team figures
Using the scenario and the team tables, work out each figure from the inputs listed, then reveal the value and the working. Divide Quarter 0 by its 11 open weeks unless a row says otherwise.
| Figure | Inputs from the scenario | Value | Working |
|---|---|---|---|
| Product group: PRs per engineer per week in Q0 and Q2, the slide's way | All four teams' PRs merged; 32 engineers; 13 weeks in every quarter | ? | ? |
| Product group: the same, per week open for merging | Q0 had 11 open weeks | ? | ? |
| Product group: per open week without Driver App's migration PRs | 208 migration PRs in Q2, none in Q0 | ? | ? |
| Each team: PRs per engineer per open week, Q0 to Q2 | 8 engineers per team; 11 and 13 open weeks | ? | ? |
| High-adoption teams together against Billing | Routing, Warehouse, and Driver App without migration PRs | ? | ? |
| Review hours per senior reviewer per week, Q0 and Q2, against the 6-hour capacity | PRs per open week x average reviewer minutes per PR / 60 / 2 reviewers | ? | ? |
| Reverts within 7 days per 100 PRs, Q0 to Q2 | Reverts and PRs merged | ? | ? |
| Change fail rate, Q0 to Q2 | Failed deployments / deployments | ? | ? |
| Escaped defects: which quarters can be compared, and Routing's change | Defects surface 4 to 10 weeks after the change; counts as of the end of Q2 | ? | ? |
Work the seat and review cost
Use the fictional prices and Vendor A's dashboard from the scenario.
Predict the outcome
Work the seat and review cost
Using the fictional prices and Vendor A's dashboard, work out each figure, then reveal the value and the working.
| Figure | Inputs from the scenario | Value | Working |
|---|---|---|---|
| Seat bill today, monthly and yearly | 120 seats at a fictional $23.70 per seat per month | ? | ? |
| Cost per active seat under two definitions | 79 weekly active seats; 96 used in the last 28 days | ? | ? |
| Renew only the seats used in the last 28 days | 96 seats; 79 weekly active | ? | ? |
| Renew only the weekly active seats | 79 seats | ? | ? |
| Agent mode for all 120 | A fictional $41.70 per seat per month | ? | ? |
| Agent-mode trial for one 8-engineer team for one quarter | 8 seats; 3 months | ? | ? |
| Change in Routing's senior review time per quarter, Q2 against Q0 | Review hours per senior reviewer per week from the team figures; 2 reviewers; 13 weeks | ? | ? |
| The vendor's hours saved | 118,000 accepted suggestions x 1.5 minutes | ? | ? |
Test the slide's claims
A slide went to the CTO before your analysis. Check each claim against the scenario and the tables.
Diagnose
Test the slide's claims
A staff analyst and Vendor A's account team put these claims on a slide for the CTO before your analysis:
- PRs merged per engineer per week rose 71% since the seats arrived.
- Driver App more than doubled its output, so the assistant helps most on mobile work.
- Escaped defects fell in Quarter 2 in every team, so quality held.
- 72% of engineers feel more productive, so the seats are paying off.
- The assistant saved 2,950 hours last quarter, far more than the seats cost.
- Billing hardly used the assistant and still improved, so the tool made no difference.
- Agent mode for all 120 engineers will multiply these gains.
For each claim, say whether the scenario's figures support it, partly support it, or do not; name the figures that decide it; and say what evidence would settle it.
Completion checklist
- I can say which figures on a vendor dashboard are activity and which are outcomes.
- I can adjust a quarter-over-quarter comparison for a freeze and a one-off project.
- I can compute review hours per reviewer and compare them with capacity.
- I can compute cost per active seat under a stated definition of active.
- I can write a trial plan whose measures and stop rules are fixed before it starts.
Sources
- DORA: DORA's software delivery performance metrics Defines change lead time (from commit to deployed in production) and change fail rate (the ratio of deployments that require immediate intervention); lists setting metrics as a goal (teams try to game them) and competing against other teams as pitfalls; says to apply the metrics in the context of each application or service. Last updated January 5, 2026; read November 2026.
- DORA capabilities: Working in small batches Says AI adoption often leads to increased software delivery instability, large changes are difficult to review, test, and integrate safely, and reviewing machine-generated code may take more effort per line than human-written code; advises against generating massive pull requests. Updated December 8, 2025.
- DORA: State of AI-assisted Software Development 2025 Describes AI's primary role as an amplifier of an organization's existing strengths and weaknesses, with returns coming from the underlying organizational system rather than the tools.
- Forsgren et al., The SPACE of Developer Productivity (ACM Queue 19(1), February 2021), Microsoft Research publication page Developer productivity is about more than an individual's activity levels and cannot be measured by a single metric or dimension; introduces the SPACE framework. This page does not list the dimension names.
- GitHub Blog: Measuring enterprise developer productivity (March 2021) Lists the five SPACE dimensions: satisfaction and well-being, performance, activity, communication and collaboration, and efficiency and flow.
- METR: Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity July 10, 2025: 16 experienced developers, 246 issues in large repositories they had contributed to for multiple years, each issue randomly assigned to allow or disallow AI; AI-allowed issues took 19% longer; developers expected a 24% speedup and afterwards believed in a 20% speedup; the authors do not claim the setting represents most software work. The page now says these results are out of date. Read November 2026.
- METR: We are Changing our Developer Productivity Experiment Design February 24, 2026: the follow-up (57 developers, 800+ tasks) gives an unreliable signal because developers withheld tasks they did not want to do without AI and some declined to take part; self-reported speedups "can be quite unreliable". Read November 2026.
The route-planning software company, its teams, figures, seat and add-on prices, vendor dashboard, thresholds, and rubric are original synthetic teaching material about a fictional company; both prices are fictional and match no real product. Study times and readiness thresholds are editorial estimates. The METR studies are described as their authors published them and are not a benchmark for the scenario. Metric definitions and research findings are as of November 2026.
Related on CodeSnatch
Lessons, problems, and articles that build the skills this question uses.
Behavioral Interview
Separates delivering activity from driving outcomes, the line this question draws between PR counts and lead time.
AI Engineering
Covers the permissions, sandbox, evaluation on your own history, and budgets around a team's coding agent.
Community article
A developer's account of which coding tasks speed up and which gain checking work, useful beside delivery data.
Community article
Argues that PR size predicts review quality, useful when you set review norms such as a size limit.
AI Engineering
Practice deciding when immediate metrics and outcomes that mature later disagree, as quality signals do here.
Practice the interview question
Answer it in your own words before you look at the reference answer.
