Unofficial Hacker News companion — get notified on comment replies, and more.

SessionGraph: Visualize all your coding agent sessions in one interactive graph (opens external site)

81 points by arvindell 5 days ago | sessiongraph.ai | 39 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (9)

  1. 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.

    Replies (7)
    1. If you save the session you can reuse it later for different languages and LLMs. They take negligible storage.
    2. 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.

    3. very frequently i find myself to looking back on sessions to continue pending work or discuss past reasoning on design decisions
    4. 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."
    5. 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.

      [1]: https://github.com/jayzeng/pi-memory

    6. 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.

      Replies (1)
      1. 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.
    7. 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.