local · open source · MIT

Give your coding agent the full run.

A flight recorder for your agent. Every prompt, tool result, and reply, recorded on your machine as sent. Your coding agent reads the recording over MCP and answers from what actually happened.

# install on this machine
$ npx sessionist
# connect your agent, in its repo
> /sessionist-connect

That’s it. The next run is recorded as your agent makes it.

The problem

Your agent misbehaved at step 12. Nothing threw.

The assembled prompt it received, the tool result that sent it sideways, and the model’s reply were built in memory, sent over the wire, and dropped. Your coding agent is reading the source, which says what the agent was allowed to do, not what it did.

Re-running takes a different path and costs tokens. The one run that failed is the only evidence, and nothing captured it. In a web app the evidence of a failure is lying around by default. In an agent, the trace is the program.

Sessionist is the recorder that was running.

You

why did the weather agent answer the way it did in its last run?

Your coding agent

It called get_weather for Paris because the system prompt required a tool call for conditions. The tool returned rainy and 57with no unit preference, and the second model call turned those two fields into “It’s rainy in Paris, 57°F.” If that’s wrong for Paris, the tool is wrong, not the model.

Four tool calls. No re-running the agent, no guessing from the code.

How it works

Two steps. No code change of your own.

  1. 01

    Run it

    One command starts the recorder on localhost and, in your terminal, offers once to attach your coding agent: register the MCP server, install the skill, and start the recorder at login so a run with no terminal open is still kept. A coding agent doing the install runs npx -y sessionist setup instead, which does all three and exits. Sessions persist in SQLite on your machine.

    npx sessionist
  2. 02

    Connect your agent

    Run the skill in your agent's repo. It finds whatever already owns telemetry there, adds one exporter pointed at the recorder, asks before turning on content capture, runs the agent once, and reads the session back to prove it landed. Or point an exporter at the URL yourself.

    /sessionist-connect
  3. 03

    Ask

    Your coding agent reads any run over MCP, about four tool calls per question, and answers from what happened. Or export one run as a plain file and hand it to anyone.

    sessionist export <id>
your agent
any framework emitting the current OTel GenAI conventions
OTLP
sessionist
the recorder: OTLP in on :4318, SQLite on disk, viewer on :4319
MCP / file
your coding agent
reads the recording and fixes the code it wrote
Reading a run

Ask it.

Your coding agent reads the recording over MCP: any client, six read-only tools. sessionist setup registers the server with Claude Code and starts the recorder at login; npx sessionist setup --print gives the config block for other agents. The server hands the agent its own reading instructions on connect, so there is nothing to install to read. Payload bodies are size-capped with refs for follow-up, truncation is always labeled, and no tool can change a session. The viewer keeps an odometer of how much your coding agent has read: calls, bytes, sessions, never content.

  • list_sessionswhich run: newest first, or filter to status=error
  • get_sessionwhat happened: a compact timeline of one run
  • get_event_payloadwhat exactly the model saw or the tool returned, at one step
  • search_sessionsdid this string appear anywhere
  • export_sessiona .session.jsonl file to hand over
  • reads_summaryhow much has been read from this store, and by whom

Hand a recording over without a server. sessionist export <id> writes a plain .session.jsonl file any coding agent reads directly, and you can attach to an issue or commit beside the fix.

Or one file that opens the whole viewer. --html writes a single file that opens the full viewer from disk with zero network, for the person who will never install anything.

Every CLI command takes --json, and there is an llms.txt.

Or look yourself.

The viewer on localhost shows the run you weren’t watching, step by step, with the exact bytes each one carried. Same recording your coding agent reads, nothing summarized.

Timeline

Scrub the whole run and jump straight to errors.

Step inspector

The exact input and output of any step, multi-megabyte bodies included.

Context diff

The full message array the model received at each call, and what was added, dropped, or truncated since the previous one. Message mode for chat payloads, text mode for string prompts.

Live

Watch a session append in real time while the agent runs.

Deep links

Link to any session, or to one step inside it, from the viewer.

Honest badges

Attributes truncated at the source and sessions grouped without a conversation id are always labeled. Partial capture says so on its face.

Connect your agent

Record every AI agent run locally, over OpenTelemetry tracing.

On a framework that emits the current OTel GenAI conventions?

Point its OTLP exporter at http://localhost:4318 and turn on its message-content capture, which most frameworks keep off by default. Change nothing else. Protobuf and JSON, any language.

What exactly does it read?

Structure from gen_ai.operation.name (invoke_agent, chat, execute_tool) and content from the gen_ai.input.messages and gen_ai.output.messages span attributes, the form the official instrumentations emit in span-content mode. A conversation id, if your framework stamps one, groups runs into sessions.

Already sending traces to a hosted backend?

Keep it. Add a second exporter, or fan out from your collector. Sessionist is a layer beside your backend, not a replacement for it.

Emitting an older content generation?

Spans from older content-capture generations and from namespaces outside gen_ai are kept verbatim as passthrough steps: never dropped, never interpreted. Sessionist reads one thing, the current conventions, and does not adapt to individual frameworks.

Privacy, and how to check it

Recorded on your machine. Check it yourself.

  • Nothing leaves your machine unless you send it. No telemetry, no phone-home. Recording makes no network connections, and --offline makes that a hard guarantee for the process.
  • The HTML export loads nothing from anywhere. The file you hand someone makes no network requests. The test suite opens it under a blackholed resolver to prove it.
  • Verify it two ways. Read the source, all of it MIT-licensed, or watch the behavior with a firewall or socket monitor using the verify-it-yourself guide.
  • Your data is yours, in a format you can read with cat. The session file format is public and versioned, with a byte-equal round-trip test.
  • Never invent, never drop. If a field wasn’t in the telemetry, it is absent. Unrecognized spans are preserved verbatim. The recording is immutable: there is no edit button, because the point is evidence.

Two steps to the full run.

Then ask your coding agent what the last run did.

$ npx sessionist
> /sessionist-connect

Read the source.