Developed by Woody Zuill's team at Hunter Industries and described in his experience report Mob Programming: A Whole Team Approach at the Agile 2014 conference.
Puts a whole team on one piece of work at one computer, with one person typing and the rest deciding what to write, rotating on a timer so that waiting, handoffs, and single points of knowledge fall away.
One afternoon of a mob rewriting lot tracking, and the moves that keep five people working as one
The session runs down the page. At each turn, pick the move for the navigators or the driver: one keeps the whole team contributing to working code, the other turns the mob into a lecture, a debate, or one person's keyboard. The line under the panel counts the moves that keep the mob working. Illustrative.
Navigators
Driver
Navigators
Driver
Moves that keep the mob working: 0 of 4Moves that keep the mob working: 1 of 4Moves that keep the mob working: 2 of 4Moves that keep the mob working: 3 of 4Moves that keep the mob working: 4 of 4
- Timer starts (Driver). The next person on the list takes the keyboard. The task: skip the recall check for lots already shipped.
- Navigating (Navigators). Pick how the navigators guide the driver.
- Dictate it: type if, open bracket, lot dot status, equals, shipped. The driver types without understanding, and two people stop following. The driver turned into a typist, and the team into an audience.
- Give the intent: add a guard so lots already shipped skip the recall check. The driver writes the guard in her own way, and everyone can see the idea in the code. Intent first, so the whole room follows.
- Disagreement (Navigators). Two navigators disagree about where the guard belongs. Pick the move.
- Argue until one side gives in. Twenty minutes pass and nothing is typed. A meeting at a keyboard.
- Try the simpler placement for five minutes and let the tests decide. The tests pass with the simpler version, and the debate ends. Ideas settled in code, quickly.
- Timer rings (Driver). The driver is midway through a function. Pick the driver's move.
- Keep going for another twenty minutes to finish the thought. The next driver never gets the keyboard, and the function becomes one person's code. Rotation broken, ownership back to one person.
- Hand the keyboard to the next person on the list mid-thought. The navigators restate the intent, and the new driver finishes the function. The idea lives in the team, beyond any one pair of hands.
- A newcomer asks (Navigators). The developer who joined last month asks why lots have two status fields. Pick the navigators' move.
- Tell him to read the old design notes after the session. He stays quiet for the rest of the afternoon. A question lost, and a contributor with it.
- Answer it in two minutes, and let him drive next. He spots a missing case in the shipped-lot guard on his first turn. Knowledge spread on the spot.
- Done (Driver). The change merges that evening. Five people wrote and reviewed it as they went, so no review waits in a queue.
An example
A five-person team maintained a fifteen-year-old warehouse system for a food distributor. Each developer worked alone on a separate ticket, and most of the elapsed time went to waiting: for the one person who understood the inventory module, for the database specialist, for reviews. A new recall rule required rewriting the lot-tracking logic, and the solo estimate, handoffs included, was five weeks.
The manager proposed trying the change as a mob. The team took a meeting room with one computer, a large screen, and two keyboards, rotated the driver every twelve minutes, and invited the warehouse supervisor for an hour each afternoon. The navigators argued less than anyone expected, partly because ideas were tried in code within minutes. The lot-tracking change shipped in nine working days and produced no defects in its first two months. By the end of the month three of the five could change the inventory module, where before only one could. The team kept mobbing for risky work and went back to solo or paired work for routine tickets.
The core idea
In Woody Zuill's definition, the whole team works "on the same thing, at the same time, in the same space, and at the same computer." One person, the driver, types. The others, the navigators, decide what to write and say it aloud, at the highest level of intent the driver can turn into code. A timer rotates the driver every few minutes, often ten to fifteen, so everyone takes the keyboard in turn and nobody owns the code alone. Adopters do most of their work this way, design and testing included.
The practice looks wasteful and pays through flow. With one item in progress, nobody waits for an answer, a review, or a handoff, because everyone who could supply one is in the room. Decisions are made where the knowledge is, and every line has been seen by the whole team. The cost is many person-hours on a single item. The return is less waiting, less rework, and less dependence on any one expert, and it pays most where waiting and rework were eating the team's time.
The thinking behind it
Woody Zuill Woody Zuill, an application development manager at Hunter Industries, described the practice in Mob Programming: A Whole Team Approach, an experience report at the Agile 2014 conference. His team had been practicing pair programming and test-driven development in coding dojo sessions, where everyone shares one computer and passes the keyboard, and fell into working that way while restarting a stalled project. They kept going, named it, and built a room for it. He adapted the driver and navigator roles from a strong style of pairing and made kindness, consideration, and respect the team's first rule. He reported roughly ten times as many projects delivered in the following year, while warning that the comparison was rough and might not repeat elsewhere.
Where it sits in the layers
Mob programming is a practice of Layer 10, a team's daily way of writing software. It assumes what Lean Thinking holds in Layer 6, that limiting work in progress and moving one piece at a time shortens lead time, the same logic the Kanban Method applies in Layer 8, and it takes the Agile Manifesto's preference for face-to-face collaboration about as far as it can go. Beside it in Layer 10, it extends Pair Programming from two people to the team and folds Code Review into the work itself. The common mistake is asking the mob to repair a team that lacks trust. Five people at one keyboard magnify how they treat each other, so a group with an open conflict or a dominant member gets worse together, which is why practitioners put respect before technique.
How organizations put it to work
Mob programming is owned by the team, with its manager's backing, because it changes how work is assigned and measured. Work stops being split into personal tickets: the team pulls one item, finishes it, and pulls the next. Setting it up takes a room or a shared remote session, one computer driven through a large display, a rotation timer, and a rule on how navigators speak (intent first, keystrokes only when needed). Domain experts and customers join for part of the day, so questions are answered on the spot.
Managers have to count differently. How busy each person looks no longer means anything, so the measures become lead time per item, defects found after release, how many people can work on each part of the system, and time lost to waiting. Teams usually mix modes, mobbing on hard, risky, or unfamiliar work and pairing or working alone on routine changes.
In the first year, expect fatigue and a few people who find it draining, early sessions where the loudest voice drives, and skepticism from anyone who sees five salaries on one task. The return is faster delivery of difficult work, fewer defects, and knowledge spread so widely that no departure stalls the system.
Where it goes wrong
The first failure is the dominant navigator. One senior person directs every keystroke, the others drift, and the mob becomes an audience. Spot it when the same voice makes most decisions, or when people check their phones during others' turns.
The second is the mob as a meeting. The team talks for long stretches without typing, debating designs it could test in minutes. Spot it when the timer rotates drivers who have written nothing.
The third is mobbing on everything. Routine tickets that one person could finish in an hour absorb five, and the practice earns a reputation for waste. Spot it when simple fixes take a mob all morning. The evidence is also thin: most support is experience reports, including Zuill's own, and he cautions that his team's gains came alongside a move away from phased, solo work that could explain much of them.
Related and rival frameworks
- Pair Programming. Two people at one screen. The better choice for most daily work, at a fraction of the person-hours.
- Code Review. A second reader after the fact. Cheaper per change, though it spreads knowledge more slowly than a mob, since only two people see each change.
- Liberating Structures. Facilitation formats for including every voice in a group. Useful when the mob's discussions are dominated by one or two people.
Go to the source
- Mob Programming: A Whole Team Approach, Experience report, Agile 2014 conference, Agile Alliance, 2014