First conversation
About 3267 wordsAbout 11 min
This walks through a first session with Spora: signing in, sending a message, reading the reply, and understanding what just happened.
Step 1 — Sign in
Open http://localhost:8080 (or your deployment URL) in a browser. You’ll see the login screen.
The default seeded admin credentials are printed by db:seed — admin@spora.local / password (defined in spora-core/app/Core/DatabaseSeeder.php:47). Change these immediately under Settings → Users → Edit.
If you disabled SPORA_ALLOW_REGISTRATION before creating your account, you can’t sign up via the UI. Ask an admin to create the account for you, or re-enable registration in .env and restart.
Step 2 — Pick an agent (or create one)
After sign-in, the home page lists your agents. By default there’s a single sample agent (created by db:seed if you ran it). Click on it to open the chat.
If no agents exist, go to Agents → New and create one. The minimum:
- Name — what the agent is (e.g. “Research Assistant”)
- System prompt — instructions for the LLM (e.g. “You are a helpful research assistant. Be concise. Cite sources.”)
- LLM config — which model to use. The seeded agent points at a placeholder LLM; you need to configure one. See Managing agents → Tab 3 — LLM config.
- Tools — leave empty for now. The agent will reply without using any tools.
Step 3 — Send a message
In the chat input at the bottom of the page, type something like:
What’s the capital of France?
Press Enter (or click Send). The page shows:
- Your message in a bubble
- The agent’s reply appearing once the LLM responds
- Optional: a tool-call timeline — if the agent called any tools, you see them with their inputs and outputs
For a simple “what’s the capital” question with no tools enabled, the agent replies directly without calling anything. The reply is the LLM’s plain text output.
The effort picker
Next to the composer sits an Effort picker, when the agent’s LLM configuration can express a reasoning effort at all — an endpoint with no effort parameter has no picker, and neither does a model that takes no level. It offers the levels that configuration offers, and its first entry is Model default — no level is asked for, and the model runs at its own default, with the exception noted below. Pick a level and the agent thinks harder or cheaper for that message: the level travels with the message it is sent with, and the turns already sent keep the effort they were sent with. Your choice stays on the picker for the next message — the level belongs to the message it is sent with, not to the conversation.
Which levels are on the picker is the operator’s call. The list comes from the agent’s LLM configuration: when the operator names the levels their endpoint accepts, that is the list, and Spora does not second-guess it — a gateway in front of an Anthropic-compatible API can accept a vocabulary no model name could imply. When the operator names none, the driver’s own set applies: on a Claude, the levels that model takes, so a Claude that takes no max never offers one. On an OpenAI model that list is the whole scale whatever the model takes — so a level the model refuses is one the picker still offers, and the request fails at the provider instead of quietly running at the model’s default.
The picker starts at the agent’s own default. An agent can carry a default of its own, set in its settings; without one it falls back to the LLM configuration’s default. That is the level the agent runs with when you send a message without touching the picker.
Model default is not always “the model thinks as it would”. On a GPT-5.4-or-later model with tools enabled, Spora sends none explicitly, because silence is not a working configuration there. On GPT-5.5 — whose own default is medium — that means the model does not reason at all.
A level the agent’s configuration stops offering is refused by the server with EFFORT_LEVEL_UNSUPPORTED — the chat asks for that agent’s levels again and replaces the choice with one the configuration still has.
Step 4 — Read the agent’s reply
The reply bubble shows:
- The text the agent produced
- The model that answered (if you have multiple LLM configs, hover or click to see which was used)
- Token usage — usually visible at the bottom of the bubble (input tokens, output tokens, cached)
If the LLM config has exposeToLlm: true settings (e.g. allowed domains for a search tool), the LLM sees those values as part of its system prompt. The reply is grounded in those values.
Step 5 — Try with a tool
To see the agent call a tool:
- Install a plugin. Go to Plugins → Browse (if enabled) or run
php bin/spora plugin:install spora-ai/spora-plugin-tavilyon the server. - Configure the tool. Go to Tools → Tavily Search and paste your
api_key(from https://tavily.com). - Open your agent, go to the Tools tab, and enable Tavily Search.
- Send a message: “Search the web for the latest on Apple’s Vision Pro”
The agent will:
- Recognise that the query needs web search
- Call the
tavily_searchtool with your query - Receive the search results
- Compose a reply that cites the sources
You’ll see the tool call in the chat timeline — the agent’s “thinking”, the tool call with its arguments, the tool’s result, and the agent’s final reply.
What just happened
Every chat message is a task in the Orchestrator. The lifecycle:
- Claim — your message creates a
Taskrecord inQUEUEDstate. A worker (server daemon or browserSharedWorker) drives it. - LLM call — Orchestrator calls the LLM with the system prompt + your message + tool definitions
- Branch — if the LLM returns text, the task is
COMPLETED; if it returns a tool call, the Orchestrator executes the tool and calls the LLM again with the result - Loop — repeat step 3 until the LLM returns text or
max_stepsis reached - History — every LLM message and tool call is appended to
task_historyfor the next turn
For details, see Concepts → Agent loop and async mode.
What the chat timeline shows
- Your message (right-aligned, plain text)
- Your attachments — the files you sent with a message, shown as chips below the message they belong to.
- The agent’s “thinking” — appears when the assistant message contains
content_blocksentries of typethinking(Anthropic with thinking enabled) orredacted_thinking. On the OpenAI Responses driver the block is of typereasoning, and what it shows is the API’s summary of the model’s reasoning — not the raw chain of thought, which never leaves the provider. Token counts are surfaced separately in theusagepanel (input_tokens,output_tokens,cache_creation_tokens,cache_read_tokens, …). - Tool calls — collapsed into a single live pill per user turn (and one per sub-agent boundary). The pill header shows the current tool icon + name and a growing “N tools called” count; click the pill to expand every individual tool call with its arguments and result. Reasoning rows (the LLM’s
thinkingblocks) interleave with the tool rows in the same chain. - The final reply (left-aligned, the agent’s actual response)
- Aborted at HH:MM — a faint horizontal divider the chat inserts after the last assistant turn when the agent loop was halted. Renders only when the task carries a
systemhistory row withkind: abort_marker. The timestamp matches the wall-clock stamp the ABORTED banner displays. - The follow-up input — when the task is
COMPLETED,FAILEDorABORTEDand the agent allows followup, the chat shows a single-line composer at the bottom; press Enter to send a new instruction. - The effort trigger — the same effort picker as the composer, as an icon button on the follow-up row. It chooses the level the next message is sent with, and that message only; the first entry is Model default, and the picker is there only when the agent’s driver can express an effort.
- The command button — a shell-prompt button next to the attach buttons opens the conversation commands. It is there for the things you ask for rather than type, today only Compact conversation. It sits on the follow-up bar, so it appears once the conversation has finished.
- The compacted turns — when a conversation has been compacted, a collapsed N messages compacted marker stands where the compaction happened: after the last turn of the conversation at that moment. Click it to read what the model was told. The turns it stands in for stay in the transcript, where they were.
- The jump-to-newest button — a round button in the lower right corner of the chat, shown while you are reading above the newest message. Click it to go back to the newest message.
Reading while the agent works
While the agent works, the chat keeps the newest message in view: every turn that arrives scrolls the transcript down to it.
Scrolling up pauses that. This is what you want when a turn takes a while and you want to read the tool calls or the context the agent is working from — the next message will not pull the transcript away from you. A round button appears in the lower right corner of the chat; click it to go back to the newest message, and the chat follows the conversation again.
Scrolling back down to the newest message on your own does the same thing. Sending a follow-up message does too — you asked for the answer, so you want to watch it arrive.
Compacting a long conversation
A long conversation eventually outgrows the model’s context window. The agent compacts on its own when the provider reports that the window is full, and you can ask for one yourself:
- Open the command menu — the shell-prompt button next to the attach buttons on the follow-up bar.
- Click Compact conversation.
- The composer disappears and the conversation says Compacting the conversation… while the agent writes the summary. On a long conversation this takes a while — it is a model call over the whole history.
- The chat confirms with a toast, and a collapsed N messages compacted marker appears where the compaction happened — after the last turn of the conversation at that moment. Click it to read what the model was told.
You can only do this once the conversation has finished. The command menu sits on the follow-up bar, so it is offered for a COMPLETED, FAILED or ABORTED conversation — a running agent is mid-turn, and the tick writes rows as it goes, so compacting it would race that.
Nothing is lost. The agent gets a summary of the older turns in place of the full text — which is what keeps the conversation going — and you keep the original turns, right where they were in the transcript. The conversation carries on from the summary plus the last few turns.
A conversation can be compacted more than once. Each compaction leaves its own marker where it happened, and the later one covers everything the earlier one did: by the second compaction the model has forgotten more of the conversation than after the first.
If the conversation is still too short to compact, the chat says so and leaves it alone. If the model fails to write a summary, the chat says so too and the history is left exactly as it was — a compaction that replaced the turns with nothing would take the conversation’s context with it.
Aborting a running agent
While the agent is in RUNNING, a subtle indicator stays visible below the chat — a spinning loader, a step counter (Step 3 of 5), and an Abort button. The indicator remains visible throughout the agent loop and coexists with the per-turn tool-stream pill (the pill carries the per-tool progress signal; the indicator hosts the canonical Abort + step counter). Click Abort to halt the loop at the next natural break point (after the in-flight tool call returns, or between LLM turns). What happens after:
- The Abort button label flips to Aborting… and disables itself so you know the click registered. The indicator stays visible for the entire request window even if Mercure races
task.statusto ABORTED before the HTTP response lands. - The server flips the task status to
ABORTED, stampsdata.aborted_at, and publishes the change to Mercure. The chat renders the Aborted — paused by you banner (with a small manual badge and a Resume button that offers a default “continue” prompt) and inserts the Aborted at HH:MM divider above the banner. - The composer at the bottom of the chat focuses automatically. Type your next instruction and press Enter; the chat sends it as a follow-up, the orchestrator clears
data.aborted_at, and the task resumes.
Auto-abort on
continue. You don’t need to click Abort before sending a follow-up to a running task — the chat also sends the follow-up directly.POST /api/v1/tasks/{taskId}/continueacceptsRUNNINGas a source, auto-aborts first (writing anabort_markerhistory row inside the same transaction), then re-prompts with your message. The visible difference: clicking Abort lands you in the ABORTED banner state with an empty composer; sending a follow-up skips the ABORTED banner and goes straight into the next tick.
The ABORTED banner stays visible until the orchestrator receives your next instruction. After the follow-up is sent, the banner disappears, the typing dots return, and the chat resumes as normal. If the agent was halted mid-tool-call, the chat shows an abort_marker system row in the history so you can see exactly where the loop was interrupted.
Auto-aborted when the step cap is hit
When the agent loop exhausts its max_steps allowance without reaching a terminal state, the backend flips the task to ABORTED and stamps data.max_steps_reached = true. The same banner renders with the Auto-aborted — max steps reached headline, a small system badge, and a sub-line that reads This task ran N of M allowed steps without finishing. Click Resume (or type a fresh instruction in the composer) exactly like the manual case — the only difference is the headline, badge, and step-count sub-line.
Sub-agents and handovers
The sub_agent tool (LLM-facing name) ships three operations on the op discriminator. The LLM fills op, the operation’s own parameters (target_agent_id for sub_agent and handover, task_id for the continuation) and a prompt, and picks one of:
op: 'sub_agent'— spawn a child task and wait for its answer. The chat inserts a sub-agent row widget under the assistant turn listing every spawned child task with its live status:- Running (blue, pulsing dot) — the child task is still being executed.
- Awaiting approval (amber row + ⚠ icon) — the child task is waiting on a tool-call decision. Click Review approvals → on the row to jump straight to the child chat’s approvals section (
#approvals). - Queued / Done / Failed / Cancelled — terminal-style indicators, no pulse.
op: 'sub_agent_continue'— send a follow-up to a child this chat already started and wait for the new answer. The child keeps its earlier conversation, so the follow-up does not have to repeat the original brief; the widget shows the same child row as a spawn.op: 'handover'— delegate to another agent, which continues in the background. The source chat stays open and ends with the agent’s own closing message; you get no answer back from the target agent, whose task runs as a separate chat.
Only sub_agent is enabled out of the box — sub_agent_continue and handover are opt-in per agent.
A summary line appears above the row list when at least one child needs approval: Sub-agents (N): X needs approval · Y running · Z done — click the line to jump to the first awaiting child.
The parent chat header shows a violet sub-agent count badge (3 sub-agents · 1 needs approval · 1 running · 1 completed) when the parent has spawned sub-agents; clicking it smooth-scrolls to the first awaiting child. The badge hides once every spawned child reaches a terminal state. While the parent is waiting, its status pill turns violet (AWAITING_SUB_AGENTS) on the dashboard.
All three op values are intra-principal: the LLM can only delegate to agents that share the source agent’s principal_id (user-principal OR group-principal). A user-principal agent can only target other user-principal agents on its owner; a group-principal agent can only target other group-principal agents in the same group. The picker in the settings UI is principal-scoped, so the model only ever sees options it can actually call. See Concepts → Tools → Setting render scope for the matrix and the operator-side controls that gate it.
For the underlying lifecycle (AWAITING_SUB_AGENTS → resume gates, worker-mode pickup, data.spawned_sub_task_ids and data.sub_agent_expected_count accounting), see Concepts → Agent loop and async mode.
Stop waiting for sub-agents
When the parent is stuck in AWAITING_SUB_AGENTS (because one or more sub-agent children are still running) and you don’t want to wait any longer, a Stop waiting button appears on the right edge of the sub-agent tool-call widget header. Clicking it aborts the first child and cascades the abort up through every AWAITING_SUB_AGENTS ancestor — typically the chat you are looking at.
sequenceDiagram
participant U as User
participant P as Parent chat (AWAITING_SUB_AGENTS)
participant API as POST /tasks/{id}/abort-sub-agent
participant C1 as Child 1 (RUNNING)
participant MERC as Mercure SSE
U->>P: click Stop waiting
P->>API: abortSubAgent(child1.id)
API->>C1: Orchestrator::abort -> ABORTED
API->>P: cascadeAbortToAncestors()
P-->>P: status -> ABORTED
API-->>P: 200 {task: child1 ABORTED}
P->>MERC: publish ABORTED for each ancestor
MERC-->>U: chat flips to ABORTED bannerNotes on the cascade:
- What gets aborted — the child you clicked Stop on, plus every ancestor still in
AWAITING_SUB_AGENTS. Ancestors that already settled (COMPLETED/FAILED) are left alone. The cascade is idempotent. - What does NOT get aborted — sibling sub-agents not on the chosen child’s parent chain. If Child 1 and Child 2 share the same parent and you click Stop on Child 1’s row, Child 2 keeps running. Stop each child independently if you want all of them to stop.
- Ownership — the cascade uses your session cookie; you only need to own the child you click Stop on. Ancestors are system-aborted.
When something goes wrong
If the agent doesn’t reply:
- LLM config is wrong — go to Settings → LLM drivers and verify the API key and base URL
- Worker isn’t running (worker mode) — check
php bin/spora worker:run --daemonis running, or* * * * * php bin/spora worker:run --once --include-queuein cron - Mercure not running (real-time updates fail) — the UI falls back to polling, so the reply will appear but with delay
See Troubleshooting for more.
What’s next
- Managing agents — configure tools, write good system prompts, start from an agent template
- Troubleshooting — common issues
- Operators → Operations — plugin management, updates, logs (for the operator running the install)