Mergehand

Approve the plan before the agent writes code

When a merge request from an AI coding agent gets thrown away, the syntax is usually fine. What went wrong happened before the first line of code: a misread ticket, a duplicated helper, or a product edge case the agent guessed silently.

A forty-line plan versus a six-hundred-line diff

When an agent jumps straight from an issue tracker into implementation, its earliest assumption shapes every file that follows. A mistaken choice about permissions, data retention, or state transitions spreads across database migrations, service classes, API handlers, and test fixtures in a single pass.

Catching that mistake during code review means reverse-engineering the agent's assumptions from a six-hundred-line diff across twelve files. The automated tests pass because the same misunderstanding produced both the implementation and the assertions, and clean formatting makes the wrong approach look plausible until you trace every call site.

Reading a forty-line plan before code exists inverts that effort. In one short read, you can tell whether the agent noticed an existing validation helper, picked the right module boundary, or misunderstood which user role may call an endpoint—before implementation, review, and testing ever run.

What makes a pre-code plan useful

Restating the ticket title in bullet points does not catch architectural mistakes. In Mergehand's eight-step workflow, the planning step clones and inspects the actual repository on your runner first, so the proposal reflects your real directory layout, dependencies, and conventions rather than generic boilerplate.

Grounded in the repository

The AI coding agent reads existing modules, schemas, and test conventions before proposing changes, pointing to concrete areas of the codebase instead of inventing parallel helpers.

Numbered acceptance criteria

Each plan defines concrete, testable outcomes—AC1, AC2, AC3, and onward—that describe observable behavior rather than vague intentions.

Surfaced open questions

When a ticket leaves an edge case ambiguous, the agent lists open questions explicitly in the plan instead of burying a silent guess inside implementation logic.

Early scope check

Seeing every required change in one plan reveals oversized tasks immediately. Before approving, you can click Turn into an epic to split broad work into ordered, deliverable parts and send them to your tracker once you approve the split.

Silence is never approval

A planning step only protects engineering focus if nothing slips past it automatically. Step three in Mergehand is a strict human gate: no code is written until you click Approve plan. There is no countdown timer, no automatic start in the background, and no implicit consent when a browser tab stays closed.

When an assumption misses the mark or an open question needs a clear answer, you click Return plan with comments and steer direction while changes are still cheap. Revising plain text and acceptance criteria avoids untangling committed code across a dozen files later. You can inspect a real plan alongside its acceptance criteria and final diff in our step-by-step task example.

How the approved plan drives verification

Approving the plan does more than unlock implementation; it establishes the contract for the unattended steps that follow. In step four, the agent writes code in a separate working copy on your runner and runs your repository's quality checks. In step five, a fresh reviewer agent that did not write the code inspects the changes and sends findings back for fixes.

In step six, another fresh agent tests each numbered acceptance criterion from your approved plan one by one, reporting AC1, AC2, and every remaining item as passed, failed, or unverified with concrete evidence, alongside a testing guide when the task is not purely internal. When you reach step seven to approve the result before the first push, you are verifying execution against an agreement you already shaped.