prettyTrace
Agent traces, readable.

Supported trace formats

prettyTrace turns raw agent logs into something you can read: a conversation with tool calls linked to their results, a timing waterfall for span-based traces, and stats on tokens, tools and errors. Paste a trace or drop a file on the viewer; the format is detected automatically.

Chat message formats

Traces that are a list of messages, optionally wrapped in a record with tools and metadata (the shape most agent datasets on Hugging Face use).

FormatWhat is recognised
OpenAI Chat Completionsrole/content, tool_calls with JSON-string arguments, role: "tool" results linked by tool_call_id, reasoning_content
Anthropic Messagestop-level system, content blocks text, thinking, tool_use and tool_result (including is_error)
ShareGPTconversations with from/value, including function_call and observation turns
LangChainserialized messages (HumanMessage, AIMessage, ToolMessage, …) and the type: "human" | "ai" dict form
OpenAI Responses APIinput/output items: message, function_call, function_call_output, reasoning
Raw API requests and responsesa Chat Completions request or response (choices), an Anthropic Messages response, a logged HTTP request with the body under body
Agent session logsClaude Code (~/.claude/projects/…/*.jsonl) and Codex CLI (~/.codex/sessions/…/*.jsonl) session files, shown as a conversation and as a timeline of user turns, model calls and tool runs. Claude Code keeps subagent transcripts in a folder next to the session (<session id>/subagents/); drop the session file and that folder together to see each subagent under the call that started it.
Gemini CLIsession files from ~/.gemini/tmp/<project>/chats/session-*.jsonl (and the older single-JSON .json files), with thoughts, tool calls, tool results and token counts. Subagent files sit in a folder named after the session; drop it together with the session file.
OpenCodethe output of opencode export <session id> > session.json, with each model step, tool timings, tokens and cost. To include a subagent, export its session too and drop both files together.
Tool calls inside textHermes / Qwen <tool_call> and <tool_response> tags, Vercel AI SDK tool-call/tool-result parts, Python-repr tool calls
JSONLone trace per line; switch between traces with the arrows or j/k. Stats → Whole dataset compares all of them: tool error rates, pass/fail rates, turn and token distributions, and a sortable table of traces.
{
  "messages": [
    {"role": "user", "content": "Where is my order?"},
    {"role": "assistant", "tool_calls": [{"id": "c1", "type": "function",
      "function": {"name": "get_order", "arguments": "{\"order_id\": \"W1\"}"}}]},
    {"role": "tool", "tool_call_id": "c1", "content": "{\"status\": \"shipped\"}"},
    {"role": "assistant", "content": "It shipped yesterday."}
  ],
  "metadata": {"model": "my-model", "reward": 1.0}
}

JSON packed inside strings (tool arguments, tool results, metadata columns) is unpacked for display, and reward/success fields are shown as pass/fail badges.

Span formats

Observability tools record an agent run as a tree of timed spans. prettyTrace shows these as a waterfall and also rebuilds the conversation from them: agents resend the full history on every LLM call, so the LLM span with the longest input usually is the whole conversation. When it isn't, the conversation is stitched together from the LLM and tool spans in order.

FormatWhat is recognised
OpenTelemetry (OTLP JSON)resourceSpans documents, or a JSONL file of them as written by the collector's file exporter. resourceLogs too: GenAI instrumentations often record message content as log events, which are attached to their spans
Console exporter outputwhat ConsoleSpanExporter prints: pretty-printed span objects back to back, copied straight from the terminal
OpenInference (Arize Phoenix)openinference.span.kind, llm.input_messages.*, llm.output_messages.*, llm.token_count.*, llm.tools.*, input.value/output.value
OpenTelemetry GenAI conventionsgen_ai.operation.name, gen_ai.input.messages / gen_ai.output.messages (parts format), gen_ai.usage.*, gen_ai.tool.*, and the older gen_ai.*.message events
Traceloop / OpenLLMetrygen_ai.prompt.N.*, gen_ai.completion.N.*, traceloop.entity.input/output
Flat span listsPhoenix-style exports with context.span_id / parent_id
Agent frameworksOTel spans from the OpenAI Agents SDK, Pydantic AI (pydantic_ai.all_messages), Mastra, Vercel AI SDK, CrewAI, Google ADK, LlamaIndex and Strands
Jaegerthe {"data": [{"traceID", "spans", "processes"}]} JSON export
LangSmithruns with run_type, nested child_runs or parent_run_id, token counts and errors
Langfusea trace with observations (SPAN, GENERATION, EVENT, …) linked by parentObservationId, or a bare list of observations

A file with spans from several traces is split into one record per trace ID.

What you get

FAQ

Are my traces uploaded?

No. Parsing and rendering happen in your browser and prettyTrace has no server that receives traces. The site does show ads, and ad scripts run inside the page, so remove secrets, credentials and personal data before pasting. See the privacy policy.

How do share links work?

The trace is compressed into the part of the link after #. Nothing is stored on a server, which also means anyone who has the link can read the trace.

Why are token counts marked with “~”?

For chat formats they are estimated from the text (about four characters per token, one per digit). Span formats that record real token usage show the recorded numbers instead.

My format isn't recognised.

prettyTrace looks for a list under messages, conversations, trajectory, turns and similar keys, or for span fields. If yours is different, the error message lists what it looked for.