> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DevTools

> Capture Ruby Agent SDK runs in the local Phaseo DevTools event format.

Enable DevTools capture while building tool timelines, approval interfaces, and run inspectors.

```ruby theme={null}
result = agent.run(
  input: prompt,
  client: client,
  devtools: PhaseoAgentSdk.create_agent_devtools(
    directory: ".phaseo-devtools"
  )
)
```

Each run and continuation writes structured JSONL containing status, usage, model attempts, tool calls, pauses, request metadata, and errors.

Local capture is a development aid, not a production audit store. Apply application-specific redaction, access control, encryption, and retention.
