How it works

Three layers with one job each, a loop with gates you can trust, and a folder you can read. That is the whole machine.

The loop#

Every product built with Larapilot follows the same loop. The first two steps happen once — or whenever the product changes direction — and the rest repeats for every story.

How Larapilot works: the loopAn idea becomes a PRD with /larapilot-inception, stories with /larapilot-spec, a plan with /larapilot-plan, code with /larapilot-implement, proof with larapilot:verify and your review, and a release with /larapilot-ship. After each story the loop goes back to the next one. Every step is a file in .larapilot/.An ideayour wordsThe PRD/larapilot-inceptionStories/larapilot-specA plan/larapilot-planThe code/larapilot-implementProvenlarapilot:verifyShipped/larapilot-shipnext story, same loopyou approveevery step is a file in .larapilot/ — reviewed in pull requests like your code
How Larapilot works: the loopAn idea becomes a PRD, stories, a plan, code, proof, and a release; after each story the loop goes back to the next one. Every step is a file in .larapilot/.An ideayour wordsThe PRD/larapilot-inceptionStories/larapilot-specA plan/larapilot-planThe code/larapilot-implementProvenlarapilot:verifyShipped/larapilot-shipnext storyyou approveevery step is a file
StepSkillWhat it leaves
Discover/larapilot-inception · /larapilot-adoptThe PRD, the inception choices, the decisions
Specify/larapilot-spec · /larapilot-feature · /larapilot-bugStories in the backlog, with their epic, priority, points, and version
Design/larapilot-design (optional)HTML mockups in a design system — the contract of the frontend
Plan/larapilot-planA technical plan and its tasks, with hours and dependencies
Build/larapilot-implement · /larapilot-autopilotA branch, a commit per task, tests, domain docs
Provelarapilot:verifyThe table of every criterion and the test or evidence that proves it
Review/larapilot-reviewDONE — or the story back to TODO with your feedback
Ship/larapilot-ship · /larapilot-releaseThe security gate, release notes, the deploy runbook

Three layers, one job each#

LayerJob
Skills — /larapilot-*, published by Laravel BoostDrive the conversation — in your editor, or in the chat of the dashboard: ask, propose, write through the CLI, report
Artisan commands — php artisan larapilot:*Persist the state and enforce the workflow. Skills never write a workflow file by hand
The MCP server — larapilotLet any agent read the backlog, a spec, the search, and diagnostics mid-conversation

The commands are the referee. They refuse an invalid step — implement before a plan, review before every criterion is proven, approve before review — with a stable error code and a hint. --force exists for the rare case, and it is always yours to type.

The status of a story#

The status of a storyTODO becomes PLANNED once its open questions are answered and the plan is valid; IN PROGRESS when the work starts; REVIEW once every acceptance criterion is proven; DONE when you approve. Changes requested in review send it back to TODO.TODOPLANNEDIN PROGRESSREVIEWDONEno open questionsspec-startevery criterion provenyou approvechanges requested — your feedback travels with it
The status of a storyTODO, PLANNED, IN PROGRESS, REVIEW, DONE; changes requested send a story back to TODO.TODOno open questionsPLANNEDspec-startIN PROGRESSevery criterion provenREVIEWyou approveDONEchanges requested
  • TODO → PLANNED — spec-plan validates the plan, and refuses a story whose open questions are not answered.
  • PLANNED → IN PROGRESS — spec-start opens the branch of the story, with the work of the stories it is blocked by already in it; it refuses a story whose blockers are not implemented yet.
  • IN PROGRESS → REVIEW — spec-review needs every task done and every numbered criterion proven.
  • REVIEW → DONE — spec-approve, after you said yes; under GITFLOW it merges the story into its base. With auto_approve on, implement approves for you; it is off by default.
  • REVIEW → TODO — spec-request-changes sends it back with your findings attached; it is planned again before the next start.

Human in the loop, always#

The agent proposes; you decide. Inception asks before it scopes, a deviation from a mockup is asked before it is coded, a change that contradicts an earlier decision is asked before it is written, and review is a person. Every explicit choice you make lands in decisions.yaml, with its date — so the agent of next month does not undo what you chose today.

Terminal
php artisan larapilot:decision-check --topic="payment provider" --value="PayPal"
# → on 7 September you chose Stripe: confirm PayPal supersedes it

The team#

The skills speak as thirty personas — not costumes, but review lenses, each with a stake in the decision. You will meet a few of them in every conversation:

PersonaLens
💎 MarkProduct manager — scope, MoSCoW, trade-offs; owns the edits of the PRD
🔎 TomRequirements — Definition of Ready, EARS criteria, open questions
📐 JohnArchitecture — SOLID, queries without N+1, APIs, queues
🔧 AlexFull-stack developer — the code, one commit per task
🧪 AnneTests — the strategy the testing setting asks for
🛡️ RobertCode review — quality, Git hygiene, plan adherence
🔐 LarsSecurity — OWASP, the GO / NO-GO of the ship gate
🎨 Elise · ✨ JoeUX and frontend — the design system, WCAG 2.2 AA, dark mode
💰 Aurora · 🧭 Jennifer · 🏢 BenjaminFinOps, strategy, and market — the economics and the quote
📒 LucilleThe quiet one — the ledger of time and tokens, deadlines, schedule drift
🤖 ZoeyAI runtime — sharper prompts, smaller context, sub-agents when they pay

The others — Sebastian for prior art, Sabrine for legacy porting, Matt for integrations, Mike for data, Violet for GDPR, Emma for SEO, Sarah for Git and the shell, and more — step in when the conversation needs them.

Everything is a file#

Everything Larapilot keeps is a file in .larapilot/config.yaml, the PRD, the backlog and the specs, the plans, the decision journal, the test results, the releases and the roadmap, the mockups, and the usage ledger: files in the repository, committed with the code..larapilot/config.yamlhow this project worksdocs/PRD.mdthe product contractbacklog.yaml · specs/stories and their statusplans/US-006-plan.yamltasks, hours, commitsdecisions.yamlwhat you chose, and whendocs/test-results/the proof of every criterionreleases.yaml · roadmap.yamlversions, in public wordsmockups/ · design-systems/the screens to buildusage/ledger.jsonltime and tokensno SaaS, no DB:git is the history

There is no Larapilot server and no database. What the team decides is YAML and Markdown in .larapilot/, committed with the code it describes, reviewed in the same pull request, and as easy to git blame as a controller. A few paths that matter:

PathWhat it holds
config.yamlThe settings of the project — committed, so the team shares one mode
docs/PRD.mdThe product contract, with permanent ids: FR-, J-, NFR-, Q-
backlog.yaml · specs/US-XXX.yamlThe stories and their status
plans/US-XXX-plan.yamlThe technical plan and the tasks of a story
decisions.yamlAppend-only journal of your choices
docs/test-results/US-XXX/The verification table and the evidence of each story
docs/devs/Developer domain docs — why the code is built the way it is
releases.yaml · roadmap.yamlVersions, and how the public reads them
mockups/ · design-systems/The screens to build, and the systems they are drawn in
usage/ledger.jsonlTime and tokens per skill and story
brand/ · client-materials/ · legacy/What you hand the skills before they start
auth.yamlDashboard users and the hash of the API token — git-ignored

Developer domain docs#

The one place where the reasoning behind the code survives the session that wrote it. /larapilot-implement keeps a Markdown file per domain — billing.md, bookings.md — with its purpose, its runtime flow, the technical design, the choices made and the ones rejected, the invariants, and the traps. Always in English, updated in the same commit that changes the behaviour, never deferred: a task is not done while its domain doc describes the old code.

A small context for the agent#

Every skill opens with one command, php artisan larapilot:context {skill}. It answers the settings, the paths, what the PRD says about the project, and exactly the rule files that skill needs — compiled for your settings, so an agent under GITFLOW never reads the rules of the other two modes. A session token keeps the next skill of the same conversation from loading a file twice.

Loaded by the agentv4v5+
/larapilot-implement, first skill of a conversation~43k tokens~15k
/larapilot-review after implement, same conversation~38k~2k
triage → bug → plan → implement → review, one conversation~173k~31k

Traceability#

  • Decision journal (decision_log, on) — every explicit choice, with a regression guard before it is contradicted.
  • Method traceability (traceability_comments, on) — every method Larapilot creates or changes gets PHPDoc naming its story and task, with @see to the domain doc.
  • Code history (code_history, off) — the files and lines each task touched: larapilot:code-history --file=app/Models/Booking.php.