SessionGraph: Visualize all your coding agent sessions in one interactive graph
sessiongraph.aiThank you for this. Could you make it more clear on the front page what aspects are translated to x,y,z (or on which properties distance between nodes are solved) and what edges represent, etc?
Why do we look at git commit history? For me this sparked a recognition that software many times needs to be seen with directionality of change; the state (the files) doesn't tell you where it's going. Somehow, seeing the past (where we are as a result of historical sessions), reminds me, or perhaps allows me to see, where something should be headed.
This idea will likely be refined in the coming times.
2026 was the year i entirely stopped editing files myself. my brain now thinks in terms of "sessions". after accumulating thousands of them, i asked myself "what can i do with all this data?"
meet SessionGraph: visualize all your coding agent sessions in one interactive 3D graph.
it supports pretty much all harnesses and indexes your conversations for easy search (exposes local MCP and REST API)
What value am I missing by not caring about session history at all?
Once the session is over, I want the artifacts — code, documentation, commit messages — to speak for themselves.
Meta. Every so often, have a new agent review your last _n_ sessions (either overall or in a single project) and analyze them for ways to optimize. "Where did we get stuck? Where did we have to course-correct repeatedly and why? What tools do we need in this project to be more productive? What bad assumptions are causing us to go off course? What are we reinventing repeatedly? What skills or changes to the base prompt are needed? Etc, etc."
Resuming sessions (either the head or a previous point in time) can be interesting for forking into a different area of exploration.
IME a persistent store for session summarisation [1] can also be a nice technique. This lets you impart stylistic, architectural, and general workflow preferences that may not be represented in the artefacts themselves. Specifically things that weren’t done, or were redone based on your input. It’s essentially a more dynamic way than explicit declarations in an AGENTS.md.
Ability to build up skills based on the history of your conversations with the agent, on any topic you didn't anticipate you'd need a skill for. I use it to maintain my language-specific skills, so my agents know how I like stuff to be built and each new app takes less and less time. E.g. when building an iOS app the first time I spent a day; with the skill built on my transcripts it would get me a working and maintainable app in less than an hour.
And the nicest part is that I don't have to remember to do that right after I built the app. I can do it anytime later, when I actually need it, instead of spending time building a skill for every case that never comes up a second time.
Ditto; I am often apprehensive when clearing a session, but I reassure myself that rebuilding the context will reveal holes in my onboarding docs.
I move through sessions like a single stroke on ice-skates. I may glide along that path for a while, but I'll never need the same stroke again.
Could be I'm missing what you're missing.
If you save the session you can reuse it later for different languages and LLMs. They take negligible storage.
That’s the way to do it. The natural extension of “infrastructure as code” -- keep your institutional learnings in the repo as well.
Keeping important knowledge only inside LLM contexts is the new version of keeping important config only on running servers.
except the trajectory contains more information than just the endpoints. sometimes you want to capture and splice good examples to amplify the ability of the language model to find and stay into that basin. "few-shot learning" is still one of the most powerful in-context techniques. I use https://github.com/emberian/cv to treat contexts as first-class objects, queryable and recombinable.
very frequently i find myself to looking back on sessions to continue pending work or discuss past reasoning on design decisions
Does this have an aesthetic-only or practical value as well? Graph on the page doesn’t seem to make a lot of sense (to me). “And compare with your friends”… why? As a gamification exercise?
yes for sure! this is the spotify wrapped of AI devs (more to come)
hey, for me, the most important thing is that I don't have to explain the context all over again.
in a new session, the agent asks again about things we've already decided and repeats mistakes we've already corrected. in an old session, it remembers why we did things a certain way and performs noticeably better.
exactly! you can experiment with the mcp server to see if it makes searching your sessions more efficient. just run `ssg mcp` after installing
Some feedback; it would be great if you could convert this into some sort of an infographic explaining what we are looking at.
I see this as a GitHub commit graph but for agent sessions draw in 3d, so maybe showing a clear distinction into what projects, work trees and code we were working on.
for sure! some explanation needed there
I love beautiful graph images, but I don't know what I am looking at at the same time
try clicking around mine and see yourself: https://sessiongraph.ai/@arvindell
I find it more useful and interesting to visualize the network/connections between the sessions, highlight the workflow for one project's development within the larger organization etc. Which you could add pretty easily by the looks of it.
from my exp of building, one interesting bit that I like to see is the tradeoffs it did while coding. Git captures the outcome, but not necessarily teh outcome behind it. This becomes omp wjem you have multiple agents working in parallel. Can agents query this graph themselves to understand decisions made in other sessions?
its cool
Needs a way to specify folders for when the harness is installed as another user or in a non-standard location.
Good point. Custom locations are supported via CLI flags and environment variables, but aren’t exposed in the UI yet. on it!
added. you can now set a custom history folder for each harness in Settings → Sources. thanks for the suggestion!
Most visualization projects nowadays are pointless, whether embedding space visualizations, knowledge graphs, or in this case, coding agent session activity. The question is, what can you do with this apart from looking cool?
Quite a number of questions about the mapping of 3D coordinates to code properties—-how the graph propagates.
Without these answers there’s no visualization to speak of. It’s just pretty.
the sessions clusters / lanes are the worktrees or repositories that you start the session. orb size is represents token count of the session (small orbs are one off sessions)
Can agents query the session history themselves to recover context from previous sessions?
Yes. Just did it today. I got the idea from a post I've or two weeks ago and had it analyse all failed tries over all sessions and add some bits to my instructions to avoid the most often recurring ones.
I also recovered my session access after dev container rebuild (mounted the session memory of copilot and vs code into containers then).
absolutely, the mcp supports that our you can point it to the sqlite file directly. sessiongraph makes most sense when you can to decouple your sessions from whatever harness you choose to use
It only detected claude, missed opencode sessions entirely
fixed in v1.0.19. it now reads the sqlite files directly instead of using the running service. thanks for flagging! update is live (u can autoupdate on desktop app)
Awesome, thanks, just tested it and it works well!
awesome!
strange, i use opencode heavily and it works without issue. on it
my chart was kind of disappointing. need to vibe code more haha
only detected claude
delete worktree.