/larapilot-plan US-015, from the slash to the Board. The agent of the recording is a scripted stand-in for Claude Code, so it can be shot again on any machine; the commands it runs, and what they print, are Larapilot’s own.What it is#
The Agent page is a window on the command line you already have: claude, cursor-agent, or codex, run in the root of the project. Larapilot installs none of them, holds no account of its own, and speaks to no model — it starts the command line, hands it your message, and draws what it answers. The agent is the one you would open in a terminal, with the same skills, the same guidelines, and the same files in .larapilot/.
- What it is for — starting the work of Larapilot without a terminal: an inception with the product owner beside you, a plan from the page of the story, a review while the Board is open in the next tab.
- What it is not — a hosted agent. It is served on a developer’s machine, to admins, and never in production (where it is served). A team on one server, each person in a workspace of their own, is Studio.
Before you start#
Three things, once per machine:
- The dashboard, on your machine. With
APP_ENV=localthe page is at/larapilot/agent— Workspace → Agent in the sidebar. - A command line. Install the agent you use; the page finds it where its installer put it.
- An account. Sign the command line in to your plan — from the page, or in a terminal — or give the page an API key (Agents & accounts).
# Claude Code — on Claude Pro, Max, Team, or Enterprise
curl -fsSL https://claude.ai/install.sh | bash
claude auth login
# Cursor — on your Cursor plan
curl https://cursor.com/install -fsS | bash
cursor-agent login
# Codex — on ChatGPT Plus, Pro, Business, or Enterprise
npm install -g @openai/codex
codex loginThe sign-in can wait: Sign in here runs the same command from the page. And each agent can run on an API key instead of a plan — Anthropic’s, Cursor’s, or OpenAI’s — given to the page, not written in .env.
The skills come from the project, not from the page: php artisan boost:install (or larapilot:update) publishes them, and the slash lists what it finds — see Getting started.
“Not installed”, and it is? A web server has a shorter PATH than your terminal. The page looks in the places the installers use — ~/.local/bin, ~/.claude/local, the global folders of npm, pnpm, bun, Volta, nvm, and fnm, Herd, Homebrew, /usr/local/bin — and when the command is somewhere else, .env names it: LARAPILOT_AGENT_CLAUDE_BIN, LARAPILOT_AGENT_CURSOR_BIN, or LARAPILOT_AGENT_CODEX_BIN, with the path which claude prints.
A first turn#
The pictures below are the turn of the video, stop by stop: on Fernway, the plan of US-015 — a story that still has an open question.
The empty chat#
A new chat offers the skills a project starts from — an inception, the backlog, a plan, an implementation, a review, autopilot, triage, design, ship — each one a slash command put in the message for you to complete. Only the skills the project has are offered.
Under the message, four choices say how the chat runs: the agent, its model (Other model… takes any alias or id the command line knows), the mode — how much it may do by itself — and, where the agent has one, the reasoning effort. They can change between turns, and a new chat starts the way the last one was set.
A slash starts a skill#
/ at the start of a message lists the skills: Larapilot’s, and the custom ones of the project, marked project. Type to narrow the list, move with the arrows, take one with Enter or Tab, then write what it should work on — a story code, an idea in quotes, nothing at all. Enter sends; Shift Enter is a new line.
Claude Code runs a skill by its name. Cursor and Codex — or any agent whose folder never received that skill — are told where its file is and to follow it from the first step, which is what the slash means. A slash that names no skill of the project (/compact, /review) goes to the agent as you wrote it.
It asks before it acts#
With Claude Code in Ask first, a command or an edit waits for you. Allow lets this one through, Always allow adds a rule to the chat so the same kind of command stops asking, and Deny sends it back — with a note, when you write one, saying what to do instead.
Its questions are cards#
US-015 has an open question, and a plan waits for those. The agent asks it where you are: pick an option — the number keys do it too — or write an answer of your own, and Send answer. Here the answer is then recorded on the story with larapilot:spec-answer, by the agent, for everyone who reads the story after you.
A file, before it is written#
An edit asks with its diff: what it takes away, what it puts in its place, and where. This one is the payload of the plan — the tasks, their hours, their order — before larapilot:validate-plan and larapilot:spec-plan read it.
The end of a turn#
The to-do list is ticked, every command shows how it ended, and the last line tells what the turn took: the time, the steps, the cost, and the tokens, when the agent reports them. The story is PLANNED — written by the same Artisan commands as from a terminal, so the Board, the Plan, and the story page show it at the next load.
What you see while it works#
- Replies — as they are typed, as Markdown: tables, code, lists.
- Reasoning — folded under Reasoning, when the model shares it.
- Commands — a card each, with what the agent said it is for; open it for the output, in the colours of a terminal. A command that failed is marked, and so is one you denied.
- Edits — the file and its diff. Searches, pages fetched from the web, and the tools of an MCP server (server · tool) are cards too; what a subagent does is nested under the task it was given.
- The to-do list — one per turn, kept where the agent last touched it.
- The result — Done · 18s · 14 steps · $0.41 · 66.9k in · 3.2k out, or why the turn did not finish.
While a turn runs you can write the next message — it is queued, and sent when the turn ends — stop the turn with the button, or stop it and send at once with Ctrl/⌘ Enter. The header says Working or Waiting for you, and the title of the tab gains a dot when an answer is yours to give.
The page can be closed. The agent runs in a process of its own: the turn goes on, and the chat is there when you come back — listed on the left with the others, each with the agent it runs on and whether it is working or waiting. A chat is kept on the machine until you delete it.
Questions and permissions#
How much an agent may do#
The mode of a chat is the agent’s own — Claude Code’s permission mode, Cursor’s mode, Codex’s sandbox — under one name. It applies from the next turn.
| Agent | Mode | What it does |
|---|---|---|
| Claude Code | Ask first — the default | Asks on the page before it edits a file or runs a command |
| Accept edits | Edits files without asking; still asks before most commands | |
| Plan | Reads and plans, changes nothing — then asks you to approve the plan | |
| Auto | Claude Code decides what is safe to run by itself, on the plans and models that offer it | |
| Bypass permissions | Runs everything without asking. Only on a machine you can afford to break; refused when the agent runs as root | |
| Cursor | Agent — the default | Edits files and runs commands on this machine without asking |
| Plan, Ask | Plans, or answers about the code; change nothing | |
| Codex | Workspace — the default | Edits the files of the project and runs commands inside Codex’s sandbox, without asking |
| Read only | Reads and answers; changes nothing | |
| Full access | No sandbox: any command, with the network. Only on a machine you can afford to break |
Cursor and Codex cannot ask a page. Their command lines have no way to stop and wait for an Allow, so they run in the mode you pick. To read what one would do before it does it, start the chat in Plan, Ask, or Read only, then change the mode for the next turn.
Permissions, with Claude Code#
- Allow — this command, this edit, once.
- Always allow — a rule of this chat, in Claude Code’s own syntax: the one it suggests with the request, or one read from a plain command —
php artisan migrate …,npm run build …,vendor/bin/pest …. A line with shell syntax in it — a pipe,&&, a redirect — gets no rule: nothing narrow enough says what it is, so it asks every time. A tool of an MCP server is allowed as that tool, and nothing wider. - The rules of a chat — counted in its header. Open the list and remove one, and the agent asks again. A rule never leaves its chat, and Plan still changes nothing.
- Deny — with what to do instead, if you write it: the agent reads the note and goes on from there.
- A plan — in Plan mode the agent ends with its plan, rendered, and waits: Approve the plan moves the chat to Ask first to carry it out; Keep planning sends it back with your note.
Questions, with every agent#
One question at a time, each with its options and room for your own words; several questions go Next and Back. Skip tells the agent to go on with what it thinks best and to say what it assumed. Claude Code asks through its question tool and waits for the answer. Cursor and Codex have no such tool when they run headless, so Larapilot tells them, once per session, how to end a reply with a question the chat can draw — and your answer goes back as the next message.
Agents & accounts#
Agents & accounts, at the foot of the list of chats, shows what this machine has of each command line — whether it is installed, its version, the account it is signed in to — and takes the two decisions that are yours: what the agent runs on, and its sign-in. A dot on the button says the agent of the chat is missing one of the two.
A plan, or an API key#
- The plan the command line is signed in to — the default. The agent runs as it does in your terminal, on your subscription. An API key left in the environment of the web server is taken away from the agent first: it would be billed instead of the plan, without a word.
- An API key — per agent, billed to the key. It is kept encrypted with
APP_KEYin.larapilot/agent/settings.json, readable by the user of the web server alone and out of Git; the page shows its last four characters and never the key again. Forget the key removes it. IfAPP_KEYchanges, the key cannot be read any more, and is asked again.
The token of a Claude plan (claude setup-token) is not an API key, and is refused: Larapilot keeps no token of a plan. A plan is signed in to by its command line, which keeps its own credentials.
Signing in from the page#
Sign in here runs the sign-in of the command line itself — claude auth login, cursor-agent login, codex login — on a terminal of its own, and shows its screen on the page. Open the page it gives, come back, type or paste what it asks for, and the agent is on your plan.
- Larapilot is that terminal and no more. The exchange is between the command line and its vendor. What you type goes to the command and is kept nowhere, a pasted code is drawn as dots, and the credentials land where the command line keeps them — as when you run it by hand.
- The link is the vendor’s. The page offers to open it only when it points where that sign-in happens: Anthropic for Claude Code, Cursor for Cursor, OpenAI for Codex.
- A sign-in nobody reads is stopped — after three minutes without the page open on it, and after fifteen in any case.
- Codex takes its sign-in back on
localhost: approve it in a browser on the machine the agent is on. - Windows gives a page no terminal to hand the command: sign in from a terminal there. The command is shown, with a button that copies it.
How it runs#
The page and the agent never talk to each other. A request writes what you asked — a message, an answer, a stop — in the inbox of the chat, wakes the runner when none is there, and answers at once. The runner is php artisan larapilot:agent-run, started in the background: it takes the inbox in order, drives the command line, and appends everything said and done to one file. The page reads that file from where it left off, three times a second while a turn runs.
- In the root of the project, as the user of the web server — the files it writes and the commands it runs are that user’s.
- With the environment of a developer’s shell: a home, so the command line finds its own sign-in, and a
PATHwith the PHP of the project first, sophp artisanis the PHP the application runs on. - With nothing of
.env. Laravel puts those variables in the environment of a request; the agent is started without them, and a command it runs reads.envfrom the file, as in a terminal — so the test suite uses the database ofphpunit.xml, not yours. - Claude Code stays up between turns: the next message is one more line on its input. A process that waits longer than
LARAPILOT_AGENT_IDLE_MINUTES(10) is let go, and the chat goes on from its session at the next message. Cursor and Codex start once per turn, and resume their session each time. - A chat belongs to its agent’s session. Change the agent of a chat and the new one starts from your next message, without what the other was told.
Everything is under .larapilot/agent/, which Larapilot adds to .gitignore the first time it writes there: chats and accounts are a machine’s, never a commit’s.
| File | What it holds |
|---|---|
settings.json | The agent a new chat starts with, and for each agent the account, the model, the mode, and the effort last used. An API key is in here, encrypted |
conversations/{id}/meta.json | A chat: its agent and how it is set, the session to resume, its rules, whether a turn runs, what the agent is waiting to be told |
conversations/{id}/events.ndjson | Everything said and done, one JSON line each, only ever appended |
conversations/{id}/inbox/ | What the page asked of the runner and it has not taken yet |
conversations/{id}/runner.log | What the runner said of itself: where to look when a turn never started |
login/{agent}/ | A sign-in while it lasts: its screen, and the keys on their way to the command — nothing after it ends |
Where it is served#
An agent runs commands and edits files, on the plan or the key of whoever set it up. So the page is narrower than the rest of the dashboard:
| Where | The Agent page |
|---|---|
Your machine — APP_ENV=local | There, with nothing to set |
| A shared host — staging, QA, a preview | Not there, unless LARAPILOT_AGENT=true: then behind the sign-in of the dashboard, for admins |
Anywhere, with LARAPILOT_AGENT=false | Not there |
| Production | Never, whatever the setting |
- Admins only. On a dashboard with users, a developer, a PM, or a client never sees the page (Sign-in, roles & passkeys).
- The machine, by its own name. Where the dashboard is open with no sign-in, the page answers a request that names the machine — an IP address,
localhost, a.test,.localhost,.local,.internal, or.home.arpadomain, the host ofAPP_URL, or one listed inLARAPILOT_API_OPEN_HOSTS— and refuses a domain that merely points at127.0.0.1, which a page of another site could use to reach it. - In the audit log — who started an agent, which one, and in which mode; who started a sign-in; a change of account. Never a key, and never what was said or typed.
Settings#
All in .env, all optional:
| Variable | What it does |
|---|---|
LARAPILOT_AGENT | Empty: the page is on a developer’s machine only. true: wherever the dashboard asks for a sign-in. false: nowhere. Never in production |
LARAPILOT_AGENT_DEFAULT | The agent a first chat starts with: claude (the default), cursor, or codex. After that, a new chat starts with the agent last used |
LARAPILOT_AGENT_CLAUDE_BINLARAPILOT_AGENT_CURSOR_BINLARAPILOT_AGENT_CODEX_BIN | The full path of a command line the web server does not find by itself |
LARAPILOT_AGENT_IDLE_MINUTES | Minutes a Claude Code process waits for the next message before it is let go (10) |
LARAPILOT_API_OPEN_HOSTS | More names the open dashboard answers the Agent page under, comma-separated; *.example.dev for every subdomain. Shared with the open API |
When something is wrong#
What a command line says when it gives up is meant for a terminal. The chat turns the cases it knows into a sentence you can act on:
| The chat says | What to do |
|---|---|
| … is not installed on this machine, or the web server does not find it | Install it — the command is on Agents & accounts — or name its path in .env (before you start) |
| … is not signed in, or its credentials are no longer valid | Sign in here, the same command in a terminal, or an API key; then send the message again |
| The usage limit of … has been reached | Wait for it to reset, or pick another agent for the next turn |
| The account behind this API key has run out of credit | Top it up, or switch the agent to the plan its command line is signed in to |
| The model chosen is not available on this account | Pick another model and send again |
| The earlier session of this conversation is no longer on this machine | Send the message again: the chat starts from there |
| The agent of this chat is no longer running: its runner stopped, or could not start | Send again. If it repeats, the last lines of runner.log are in the message: most often php artisan does not run as the user of the web server |
| “Bypass permissions” cannot be used while the agent runs as root | Pick another mode — or do not run the web server as root |
| The agent answers this machine by its own name only | Open the dashboard on localhost, a .test domain, or the host of APP_URL |
| Only an admin talks to the agent | Sign in as an admin: the page runs commands and edits the project |
A 404 at /larapilot/agent | The page is not served here: not a developer’s machine and no LARAPILOT_AGENT=true, or production |
The page, or your editor?#
Both, as it suits the moment: they are the same agent on the same files. In your editor the agent sees what you have open, and the diff is where you review it. On the page nothing needs a terminal, the questions are cards anyone at the screen can answer, and the Board is one click away. A story planned from the page is implemented from the editor without a word of handover — the plan is in .larapilot/, where the next skill reads it.











