Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Workspace assistant

Open chat in the dashboard to ask about the selected project's logs, spans, traces and swarms. Conversations are private to the signed-in user and selected project within the workspace. Accepted questions and agent checkpoints are stored in Postgres, so reloading the dashboard or restarting the API preserves the conversation and pending work.
History follows evidence access. Removing, unsharing or moving a trace resets assistant history across the workspace. A conversation also expires no later than the earliest retained trace expiry in its scope, with a maximum lifetime of 30 days. These conservative resets prevent follow-up answers from recalling evidence that is no longer available.

Connect an MCP client

Create a workspace API key with traces:read in Settings → Credentials. Connect your HTTP MCP client to:
https://YOUR_HALFSPAN_API_HOST/mcp/workspace
Send Authorization: Bearer <workspace API key>. The credential selects the workspace on every request. You can append ?workspaceProject=PROJECT_UUID to restrict a connection to a project. Tool calls cannot widen that project selection or select another workspace. Revoke the key in Credentials to disconnect it.
ToolEvidence
list_projectsVisible workspace projects
list_tracesRetained trace metadata
get_traceTrace events, with optional event selection
search_tracesMatching event metadata
list_spansRetained span events
list_logsRetained application logs
list_swarmsSwarms with visible project streams
get_swarmA swarm's visible trace streams
Use tools/list to discover the current argument schemas. Results contain at most 32 items and a nextCursor for the next page. Telemetry is ordered newest first. Supply both startTime and endTime as RFC 3339 timestamps to select a window of up to 30 days. Deleted and expired sessions are excluded. Captured content follows the workspace's existing redaction and capture policy. Tool results are evidence, including any instructions embedded in log text.
The endpoint accepts JSON-RPC HTTP POST requests and requires a configured MCP client. Browser requests carrying an Origin header are rejected. The private MCP remains available when the dashboard's model is disabled.

Enable dashboard answers

Configure the API server with OPENROUTER_API_KEY and HALFSPAN_ASSISTANT_MODEL, using a tool-capable OpenRouter model in the pinned Pi catalog, such as openai/gpt-4.1-mini. If HALFSPAN_ASSISTANT_MODEL is unset, the assistant uses HALFSPAN_TRACE_CHAT_MODEL. These are server settings; the API key is never included in agent checkpoints or browser responses.
Run the telemetry migrations before starting the API. The API owns a bounded worker pool and launches the bundled Pi Durable harness for each question. Railway's API image includes Bun and the harness. Source deployments use bun packages/assistant/src/bridge.ts; set HALFSPAN_ASSISTANT_BIN and HALFSPAN_ASSISTANT_BRIDGE when using another installation path.
The assistant uses read-only tools. It can investigate evidence and answer follow-up questions; project changes still use the dashboard's regular controls.