Start with your code.
Not a blank slate.
Choose a repository and branch. Ground the work in the services, dependencies, and patterns you already have.
Spec-driven development
Give agents more than a prompt. Turn intent into a grounded spec, a clear implementation plan, and code your team can review—with the reasoning still attached.
Three ordered phases, with the files, dependencies, and checks attached to each task.
Offer the slot to the first person in line and validate the claim within a single transaction.
src/waitlist/claim.tsUpdatesrc/waitlist/offers.tsUpdateA feature touches more than the file you’re editing. Business rules, existing services, edge cases, and dependencies all shape what needs to be built.
Potpie turns that context into an agreed spec and a reviewable plan. Agents carry out the work, validate it against the requirements, and bring the changes back to your team.
Make the decisions explicit, give agents a plan, and keep your team in control of what ships.
Choose a repository and branch. Ground the work in the services, dependencies, and patterns you already have.
Clarify business rules and technical tradeoffs with questions shaped by your code and the feature you want to build.
Bring scope, decisions, constraints, and acceptance criteria into one grounded spec for your team and your agents.
Sequence the work into phases, with file changes, architectural dependencies, and validation for each task.
Potpie orchestrates code changes and checks, following the agreed plan and your codebase’s existing patterns.
Review the diff and create a pull request from the platform. Your team stays in control of approval and merge.
Clarify the behavior before an agent has to guess. A business decision becomes an explicit requirement—and something the implementation can be checked against.
Try a different answer to see the requirement change.
Your answer becomes part of the spec
The first person in line has 30 minutes to claim the slot. After that, the offer expires and the next person is notified.
advanceClock(30 * MINUTE)A claim at or after 30 minutes is rejected. The expired offer cannot create a booking.
First in line · Pay on claim · One successful claim
The why travels with the code
A pull request shouldn’t make your team reconstruct the original conversation. Keep the requirement, the implementation task, and the validation connected.
From the first decision to the final diff, there’s a clear thread to follow.
A second claim must not create another booking.
Reserve the slot atomically in claim.ts.
Two competing requests. One successful claim.
Questions & answers
No. Choose a repository and branch, then describe the feature you want to build. Potpie uses that context to ask clarifying questions and shape a specification. You can also carry an agreed spec forward from collaborative spec creation.
The plan breaks the spec into ordered phases and tasks. It identifies the files to change, architectural patterns to follow, dependencies between tasks, and the validation criteria for each step. Review and refine the plan before implementation starts.
Potpie grounds the spec and plan in the selected repository. Its agents use that context to follow existing patterns and make the planned changes. Your team can inspect the resulting diff and request changes before opening a pull request.
Agents run the checks called for by the plan, including tests tied to the spec’s acceptance criteria. The results are part of the review, not a replacement for it. Your team still evaluates the code, failed checks, and any remaining gaps before merging.
The flow ends with a pull request for your team to review. Create it from the platform once you have reviewed the changes, then use your normal approval and merge process. Your team decides what ships.