Crucible Docs

Agent Runtime

Run production agents without building durable execution, state, sandboxing, and recovery from scratch.

Runtime model

Production agents are hard in ways ordinary request-response features are not: work runs long, state must survive, users leave, and runs need clean control when something goes wrong. The Agents template ships Agent Runtime as part of the project foundation, so those execution, state, sandbox, and control patterns are in place from the first commit.

  1. Request: The project accepts an agent message through its signed-in chat API.
  2. Durable execution: A Temporal workflow on the project's dedicated worker runs the agent, so the run does not depend on the browser tab or the web request.
  3. Tool work: Each chat thread gets its own isolated sandbox, and its files persist between runs. Tools that need approval pause until the user decides.
  4. Live and durable state: Live run events stream to the client, while Postgres keeps the thread, its transcript, queued messages, and the latest run outcome.
  5. Control: The user can stop a run, approve or reject held tool calls, and send another message to continue. Messages sent during a run queue for the next turn.

Users can leave and return: the thread and transcript are still there, and the client reconnects to the live stream.

On this page