local · open source · MIT
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.
$ npx sessionist> /sessionist-connectThat’s it. The next run is recorded as your agent makes it.
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.
why did the weather agent answer the way it did in its last run?
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.
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 sessionistRun 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-connectYour 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 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=errorget_sessionwhat happened: a compact timeline of one runget_event_payloadwhat exactly the model saw or the tool returned, at one stepsearch_sessionsdid this string appear anywhereexport_sessiona .session.jsonl file to hand overreads_summaryhow much has been read from this store, and by whomHand 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.
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.
Scrub the whole run and jump straight to errors.
The exact input and output of any step, multi-megabyte bodies included.
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.
Watch a session append in real time while the agent runs.
Link to any session, or to one step inside it, from the viewer.
Attributes truncated at the source and sessions grouped without a conversation id are always labeled. Partial capture says so on its face.
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.
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.
Keep it. Add a second exporter, or fan out from your collector. Sessionist is a layer beside your backend, not a replacement for it.
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.
--offline makes that a hard guarantee for the process.Then ask your coding agent what the last run did.
$ npx sessionist> /sessionist-connectRead the source.