[Feature] Surface session format version bumps in release notes #1409
VasiHemanth
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Area
Documentation, Coding agent and CLI
Problem
The session file format and its version history are documented in
session-format.md, but version bumps are not surfaced in the release notes. Because of this, anything reading~/.prime/agent/sessions/*.jsonlout of band, whether that is a twenty-linejqscript or a larger tool, fails silently when the format changes. The parser just starts dropping unrecognized rows, with no warning and no deprecation window.I ran into this while building a local reader for Prime Agent sessions in TokenTelemetry, but it applies to anyone writing scripts against these logs.
Proposed direction
Mention session format version bumps in the release notes, or post them in Announcements when a relevant release goes out. This needs no code change and does not commit the project to a stability guarantee. It just gives external readers the visibility to adapt.
Alternatives considered
version. Useful as a backstop, but it says something changed without saying what.Additional context
On why I am parsing these files at all, since it explains what the version signal is protecting.
TokenTelemetry is a local dashboard that reads the session logs coding agents already write to disk. It runs on the user's machine and uploads nothing. For Prime Agent it discovers sessions from
~/.prime/agent/sessions/, follows the active branch and its ancestry so the trace mirrors the conversation the user saw, and preserves reported token totals, cost and model metadata.TT_PRIME_SESSIONS_DIRand Prime's ownPRIME_AGENT_SESSION_DIRare both honoured when the directory is relocated. It reads about a dozen agents the same way, so a developer running Prime Agent alongside other tools sees them side by side rather than one per vendor dashboard. What it reads per agent is documented at tokentelemetry.com/docs/supported-agents.The point is helping people see their own agent work, which is otherwise invisible once a run ends:
None of that needs data to leave the machine, which is the whole reason it reads the on-disk format directly, and the reason a silent format change is a problem worth a line in the release notes.
I originally raised the integration side of this in #971, which was closed with the move to discussion-first. Re-filed here per CONTRIBUTING.md, narrowed to the part that affects the repo.
If it would be useful, I am happy to write a short "reading sessions externally" note for the docs, covering the file location, the header
versionfield and checking it before parsing. No PR attached, just offering.Separately, and only if you think it genuinely helps your users rather than just me: a pointer from the README to the Prime Agent section of the docs would make it findable for people who want to see where their tokens and time went across a long run. I know that is a promotional ask from someone outside the project, so treat it as a suggestion you are free to ignore. The release-note request above stands on its own either way, and so does the offer to write the docs note.
All reactions