A spike in agile when an agent can build the prototype
Stefan-Iulian Tesoi · · 5 min read

Write the question down before the agent starts, and treat the code as disposable. A spike in agile ends in a decision recorded in a few lines, not in a branch. When an agent can build three candidate approaches in an afternoon, the risk is no longer running out of time but merging the prototype because it happens to work.
The practice was designed for a world where building the prototype was the expensive part. That world has gone for a lot of spikes, and the parts that were always cheap, asking a precise question and recording the answer, are now the parts that decide whether a spike was worth running.
What is a spike in agile for?
Reducing one risk far enough to make a decision or an estimate. The code is how you find out, not what you keep.
The term comes from Extreme Programming, whose rule for spike solutions is blunt: build only what addresses the problem under examination, expect to throw it away, and put a pair of developers on it for a week or two. Teams later split the idea in two. A research spike answers its question by reading, comparing and asking. A technical spike answers it by building something small and measuring it.
Either way, the output was knowledge. A story that cannot be estimated because nobody knows whether the approach works is the classic trigger, which is why the story points post sends any item with unknown decisions to a spike rather than to the sprint.
What changes when the prototype takes an hour?
The cost of building collapses, and the cost of deciding does not.
| People build the spike | A coding agent builds the spike | |
|---|---|---|
| Build time | A week or two, by XP's own guideline | An hour or an afternoon |
| Candidates compared | Usually one | Three is cheap |
| Scarce resource | Developer time | A clear question, and someone's attention to read the result |
| Main risk | The timebox overruns | The prototype gets merged |
Two consequences follow. A spike can now compare approaches rather than test one, which turns "can this be done" into "which of these should we do", a more useful question. And the prototype arrives looking finished: typed, tested against its own demo data, with a README. Polish used to be a sign that someone had spent too long on a spike. Now it is free, and it reads as done.
How do you timebox work that takes an hour?
Timebox the decision, not the build.
Timeboxing existed to stop open-ended exploration from eating a sprint. The exploration is no longer the slow part, so a box around the build constrains nothing. Put it around the whole loop instead: framing the question, reading what came back, and deciding. Two hours of one person's time, with the decision made by the end of the day, is a reasonable default.
Cap the candidates as well. Three is enough to compare. Without a cap, each extra variant costs another few minutes of agent time, and a fourth and a fifth appear because they are cheap, while the decision recedes behind them.
Writing the question before the agent starts
A spike without a written question produces a demo. Five lines are enough to prevent that:
- The question, answerable by yes or no or by choosing among named options. "Can we stream exports of 100,000 rows from Postgres inside a 30-second request, without a job queue?"
- What would settle it. "p95 under 30 seconds on the staging dataset, memory under 512 MB."
- The candidates, named: a cursor with chunked responses, a materialised file, a queue.
- What is out of scope. Authentication, error handling and anything not needed to take the measurement.
- Who decides, and by when.
The coding agent gets the first four as its brief. The fifth is for the team. Written this way, a spike is planned like any other item, and the sprint planning question shifts from whether there is capacity to whether the question is ready.
What should a spike hand back?
A decision in a few lines, the evidence behind it, and the follow-up items. Not a branch to merge.
An architecture decision record fits this almost exactly. Michael Nygard's original format has five sections, title, context, decision, status and consequences, and asks for one or two pages. A spike's record needs half a page: the question, the measurements per candidate, the choice, and what it rules out. The prototype branch is tagged and linked from the record, so the evidence survives without becoming the starting point.
A spike's deliverable is a decision. The branch is the receipt.
In Laimonade the two halves can be filed separately. The prototype is an ordinary item a coding agent picks up. The decision is an item done by a person, which no coding run starts on and which moves to Done only once its findings are recorded; Laimon then proposes backlog changes from those findings. The MCP tools reference lists the fields involved. The follow-up stories are then written and split with the risk already gone, which is when they can finally be estimated.
The spike that got merged
Consider a spike asking whether a client-side search library could replace a server search endpoint. The agent builds it in forty minutes, with tests and a passing CI run, and the demo is fast on the 2,000 sample records in the fixture.
Someone opens a pull request, since the work is already done. It passes review, because the code is clean. Three weeks later the production catalogue of 180,000 records ships a 40 MB index to every page load.
Nothing in that sequence was careless. The spike answered "can this work", on data that could not answer "does this work at our size". The second question was the real one, and it was never written down, so nothing in the spike's output could show that it had gone unanswered.
Frequently asked questions
Should a spike be estimated?
Not in story points. A spike is timeboxed rather than sized, because its job is to remove the uncertainty an estimate would need. Record the box instead, for example two hours of one person's attention and three agent runs, and estimate the follow-up stories once the decision has been made.
Who reviews what a spike found?
The person who will own the decision, with whoever will maintain the result. They read the decision record and the measurements, not the prototype's code line by line; the code matters only as proof that the measurement was real. If nobody can be named before the spike starts, the question is not ready.
Is spike code ever worth keeping?
Occasionally as a reference, rarely as a base. Tag the branch and link it from the decision record. If the chosen approach resembles the prototype, write a story with acceptance criteria and let the agent rebuild it to that standard. An hour of rebuilding costs less than inheriting code nobody specified.