117 comments

  • jedberg8 hours ago
    The way I write code with AI is that I start with a project.md file, where I describe what I want done. I then ask it to make a plan.md file from that project.md to describe the changes it will make (or what it will create if Greenfield).<p>I then iterate on that plan.md with the AI until it&#x27;s what I want. I then ask it to make a detailed todo list from the plan.md and attach it to the end of plan.md.<p>Once I&#x27;m fully satisfied, I tell it to execute the todo list at the end of the plan.md, and don&#x27;t do anything else, don&#x27;t ask me any questions, and work until it&#x27;s complete.<p>I then commit the project.md and plan.md along with the code.<p>So my back and forth on getting the plan.md correct isn&#x27;t in the logs, but that is much like intermediate commits before a merge&#x2F;squash. The plan.md is basically the artifact an AI or another engineer can use to figure out what happened and repeat the process.<p>The main reason I do this is so that when the models get a lot better in a year, I can go back and ask them to modify plan.md based on project.md and the existing code, on the assumption it might find it&#x27;s own mistakes.
    • jumploops7 hours ago
      I do something similar, but across three doc types: design, plan, and debug<p>Design works similar to your project.md file, but on a per feature request. I also explicitly ask it to outline open questions&#x2F;unknowns.<p>Once the design doc (i.e. design&#x2F;[feature].md) has been sufficiently iterated on, we move to the plan doc(s).<p>The plan docs are structured like `plan&#x2F;[feature]&#x2F;phase-N-[description].md`<p>From here, the agent iterates until the plan is &quot;done&quot; only stopping if it encounters some build&#x2F;install&#x2F;run limitation.<p>At this point, I either jump back to new design&#x2F;plan files, or dive into the debug flow. Similar to the plan prompting, debug is instructed to review the current implementation, and outline N-M hypotheses for what could be wrong.<p>We review these hypotheses, sometimes iterate, and then tackle them one by one.<p>An important note for debug flows, similar to manual debugging, it&#x27;s often better to have the agent instrument logging&#x2F;traces&#x2F;etc. to confirm a hypothesis, before moving directly to a fix.<p>Using this method has led to a 100% vibe-coded success rate both on greenfield and legacy projects.<p>Note: my main complaint is the sheer number of markdown files over time, but I haven&#x27;t gotten around to (or needed to) automate this yet, as sometimes these historic planning&#x2F;debug files are useful for future changes.
      • miki1232115 hours ago
        My &quot;heavy&quot; workflow for large changes is basically as follows:<p>0. create a .gitignored directory where agents can keep docs. Every project deserves one of these, not just for LLMs, but also for logs, random JSON responses you captured to a file etc.<p>1. Ask the agent to create a file for the change, rephrase the prompt in its own words. My prompts are super sloppy, full of typos, with 0 emphasis put on good grammar, so it&#x27;s a good first step to make sure the agent understands what I want it to do. It also helps preserve the prompt across sessions.<p>2. Ask the agent to do research on the relevant subsystems and dump it to the change doc. This is to confirm that the agent correctly understands what the code is doing and isn&#x27;t missing any assumptions. If something goes wrong here, it&#x27;s a good opportunity to refactor or add comments to make future mistakes less likely.<p>3. Spec out behavior (UI, CLI etc). The agent is allowed to ask for decisions here.<p>4. Given the functional spec, figure out the technical architecture, same workflow as above.<p>5. High-level plan.<p>6. Detailed plan for the first incomplete high-level step.<p>7. Implement, manually review code until satisfied.<p>8. Go to 6.
      • jedberg6 hours ago
        &gt; At this point, I either jump back to new design&#x2F;plan files, or dive into the debug flow. Similar to the plan prompting, debug is instructed to review the current implementation, and outline N-M hypotheses for what could be wrong.<p>I&#x27;m biased because my company makes a durable execution library, but I&#x27;m super excited about the debug workflow we recently enabled when we launched both a skill and MCP server.<p>You can use the skill to tell your agent to build with durable execution (and it does a pretty great job the first time in most cases) and then you can use the MCP server to say things like &quot;look at the failed workflows and find the bug&quot;. And since it has actual checkpoints from production runs, it can zero in on the bug a lot quicker.<p>We just dropped a blog post about it: <a href="https:&#x2F;&#x2F;www.dbos.dev&#x2F;blog&#x2F;mcp-agent-for-durable-workflows" rel="nofollow">https:&#x2F;&#x2F;www.dbos.dev&#x2F;blog&#x2F;mcp-agent-for-durable-workflows</a>
        • zknill5 hours ago
          Why an MCP? dbos already ships a cli that appears to have the same features. Why an MCP over a skill that gives context on using the cli?<p><a href="https:&#x2F;&#x2F;docs.dbos.dev&#x2F;python&#x2F;reference&#x2F;cli" rel="nofollow">https:&#x2F;&#x2F;docs.dbos.dev&#x2F;python&#x2F;reference&#x2F;cli</a>
          • jumploops5 hours ago
            &gt; we launched both a skill and MCP server.<p>My guess is that the MCP was easy enough to add, and some tools only support MCP.<p>Personal opinion: MCP is just codified context pollution.
        • jumploops6 hours ago
          This is great, giving agents access to logs (dev or prod) tightens the debug flow substantially.<p>With that said, I often find myself leaning on the debug flow for non-errors e.g. UI&#x2F;UX regressions that the models are still bad at visualizing.<p>As an example, I added a &quot;SlopGoo&quot; component to a side project, which uses an animated SVG to produce a &quot;goo&quot; like effect. Ended up going through 8 debug docs[0] until I was satisified.<p>[0]<a href="https:&#x2F;&#x2F;github.com&#x2F;jumploops&#x2F;slop.haus&#x2F;tree&#x2F;main&#x2F;debug" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jumploops&#x2F;slop.haus&#x2F;tree&#x2F;main&#x2F;debug</a>
          • nubinetwork4 hours ago
            &gt; giving agents access to logs (dev or prod) tightens the debug flow substantially.<p>Unless the agent doesn&#x27;t know what it&#x27;s doing... I&#x27;ve caught Gemini stuck in an edit-debug loop making the same 3-4 mistakes over and over again for like an hour, only to take the code over to Claude and get the correct result in 2-3 cycles (like 5-10 minutes)... I can&#x27;t really blame Gemini for that too much though, what I have it working on isn&#x27;t documented very well, which is why I wanted the help in the first place...
      • wek54 minutes ago
        Similar, but we have the agent write the test cases after writing the plan and then iterate until it passes the test cases.
      • frumiousirc3 hours ago
        &gt; Note: my main complaint is the sheer number of markdown files over time, but I haven&#x27;t gotten around to (or needed to) automate this yet, as sometimes these historic planning&#x2F;debug files are useful for future changes.<p>FWIW, what you describe maps well to Beads. Your directory structure becomes dependencies between issues, and&#x2F;or parent&#x2F;children issue relationship and&#x2F;or labels (&quot;epic&quot;, &quot;feature&quot;, &quot;bug&quot;, etc). Your markdown moves from files to issue entries hidden away in a JSONL file with local DB as cache.<p>Your current file-system &quot;UI&quot; vs Beads command line UI is obviously a big difference.<p>Beads provides a kind of conceptual bottleneck which I think helps when using with LLMs. Beads more self-documenting while a file-system can be &quot;anything&quot;.
    • ryanmcl22 minutes ago
      This is fascinating and I wish I&#x27;d started with something like this from day one.<p>I&#x27;m 8 months into my first app as a self-taught developer and my biggest regret is having no artifact trail. I can describe what every piece of my app does, but if you asked me WHY I made specific architectural decisions, I&#x27;d struggle. Those conversations happened in Claude chat windows that are long gone.<p>The plan.md approach solves something I didn&#x27;t realize was a problem until it was&#x2F;whom [your future self] (or your future model) needs to understand not just what was built but what was considered and rejected. I&#x27;ve lost count of the times I&#x27;ve asked Claude &quot;why does this work this way?&quot; about my own code and neither of us could remember.<p>Starting a project.md for every feature going forward. Better late than never.
    • anbende55 minutes ago
      Here’s how I do the same thing, just with a slightly different wrapper: I’m running my own stepwise runtime where agents are plugged into defined slots.<p>I’ll usually work out the big decisions in a chat pane (sometimes a couple panes) until I’ve got a solid foundation: general guidelines, contracts, schemas, and a deterministic spec that’s clear enough to execute without interpretation.<p>From there, the runtime runs a job. My current code-gen flow looks like this: 1. Sync the current build map + policies into CLAUDE|COPILOT.md 2. Create a fresh feature branch 3. Run an agent in “dangerous mode,” but restricted to that branch (and explicitly no git commands) 4. Run the same agent again—or a different one—another 1–2 times to catch drift, mistakes, or missed edge cases 5. Finish with a run report (a simple model pass over the spec + the patch) and keep all intermediate outputs inspectable<p>And at the end, I include a final step that says: “Inspect the whole run and suggest improvements to COPILOT.md or the spec runner package.” That recommendation shows up in the report, so the system gets a little better each iteration instead of just producing code.<p>I keep tweaking the spec format, agent.md instructions and job steps so my velocity improves over time.<p>--- To answer the original article&#x27;s question. I keep all the run records including the llm reasoning and output in the run record in a separate store, but it could be in repo also. I just have too many repos and want it all in one place.
    • frank000017 hours ago
      Sounds like the spec driven approach. You should take a look at this <a href="https:&#x2F;&#x2F;github.com&#x2F;github&#x2F;spec-kit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;github&#x2F;spec-kit</a>
      • kriro3 hours ago
        I basically use a spec driven approach except I only let Github Spec Kit create the initial md file templates and then fill them myself instead of letting the agent do it. Saves a ton of tokens and is reasonably quick and I actually know I wrote the specs myself and it contains what I want. After I&#x27;m happy with the md file &quot;harness&quot; I let the agents loose.<p>The most frustrating issues that pop up are usually library&#x2F;API conflicts. I work with Gymnasium or PettingZoo and Rlib or stablebaselines3. The APIs are constantly out of sync so it helps to have a working environment were libraries and APIs are in sync beforehand.
      • jedberg6 hours ago
        Sort of, depending on if your spec includes technology specifics.<p>For example it might generate a plan that says &quot;I will use library xyz&quot;, and I&#x27;ll add a comment like &quot;use library abc instead&quot; and then tell it to update the plan, which now includes specific technology choices.<p>It&#x27;s more like a plan I&#x27;d review with a junior engineer.<p>I&#x27;ll check out that repo, it might at least give me some good ideas on some other default files I should be generating.
      • shinycode7 hours ago
        Thanks for the link ! I’m very curious about their choices and methods, I’ll try it
      • wolletd7 hours ago
        &gt; 110 releases in 6 months
        • sethammons4 hours ago
          Almost a release per work day, esp. if you count standard holidays.
      • malloryerik5 hours ago
        Have you tried this? Review?
    • dmd2 hours ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;obra&#x2F;superpowers" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;obra&#x2F;superpowers</a> &quot;brainstorming&quot; is pretty much exactly this workflow, and it&#x27;s great.
    • adam_patarino1 hour ago
      You check the plan files into git? Don’t you end up with dozens of md files?<p>I’ve been copying and pasting the plan into the linear issue or PR to save it, but keep my codebase clean.
      • thearn416 minutes ago
        Yeah I had the same question. I suppose you could put the project+plan text into the commit message?
    • shinycode7 hours ago
      I also do that and it works quite well to iterate on spec md files first. When every step is detailed and clear and all md files linked to a master plan that Claude code reads and updates at every step it helps a lot to keep it on guard rails. Claude code only works well on small increments because context switching makes it mix and invent stuff. So working by increments makes it really easy to commit a clean session and I ask it to give me the next prompt from the specs before I clear context. It always go sideways at some point but having a nice structure helps even myself to do clean reviews and avoid 2h sessions that I have to throw away. Really easier to adjust only what’s wrong at each step. It works surprisingly well
    • tlb2 hours ago
      Do you clear the file and use the same name for the next commit? Or create a new directory with a plan.md for each set of changes?
    • the-grump7 hours ago
      Stealing this brilliant idea. Thank you for sharing!
      • jedberg6 hours ago
        I wish I could say I came up with it, but it&#x27;s just a small variation on something I saw here on HN!
      • peyton7 hours ago
        For big tasks you can run the plan.md’s TODOs through 5.2 pro and tell it to write out a prompt for xyz model. It’ll usually greatly expand the input. Presumably it knows all the tricks that’ve been written for prompting various models.
    • vorticalbox3 hours ago
      you may like openspec[0]<p>[0] <a href="https:&#x2F;&#x2F;openspec.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openspec.dev&#x2F;</a>
    • iainmck293 hours ago
      is this not what entire.io is doing? Was founded by the old Github CEO Thomas Dohmke
    • Bombthecat2 hours ago
      Then you might like to look into automaker.
    • fhub6 hours ago
      I do something similar but I get Claude to review Codex every step of the way and feed it back (or visa versa depending on day)
      • jedberg6 hours ago
        My next step was to add in having another LLM review Claude&#x27;s plans. With a few markdown artifacts it should be easy for the other LLM to figure it out and make suggestions.
    • matkoniecz3 hours ago
      I do the same, but put it as a comment on top of generated file.<p>(So far I have not used LLMs to generate code larger than fitting in one file.)<p>Overall idea is that I modify and tweak prompt, and keep starting new LLM sessions and dispose of old ones.
    • stackghost8 hours ago
      &gt;I then iterate on that plan.md with the AI until it&#x27;s what I want.<p>Which tools&#x2F;interface are you using for this? Opencode&#x2F;claude code? Gas town?
      • StrangeSound8 hours ago
        I find that Antigravity is really good for this. You can comment on the plan documents in-line.
        • d1sxeyes3 hours ago
          Best feature of Antigravity
      • anshumankmr7 hours ago
        While I have not commited my personal mind map, I just had Claude Code write it down for me. Plus I have a small Claude.MD, copilots-innstructions.md that are mentioning the various intricacies of what I am working on so the agent knows to refer to that file.
      • jedberg6 hours ago
        I&#x27;m using the Claude desktop app and vi at the moment. But honestly I would probably do better with a more modern editor with native markdown support, since that&#x27;s mostly what I&#x27;m writing now.
  • 827a10 hours ago
    IMO: This might be a contrarian opinion, but I don&#x27;t think so. Its much the same problem as asking, for example, if every single line you write, or every function, becomes a commit. The answer to this granularity is, much like anything, you have to think of the audience: Who is served by persisting these sessions? I would suspect that there is little reason why future engineers, or future LLMs, would need access to them; they likely contain a significant amount of noise, incorrect implementations, and red herrings. The product of the session is what matters.<p>I do think there&#x27;s more value in ensuring that the initial spec, or the &quot;first prompt&quot; (which IME is usually much bigger and tries to get 80% of the way there) is stored. And, maybe part of the product <i>is</i> an LLM summary of that spec, the changes we made to the spec within the session, and a summary of what is built. But... that could be the commit message? Or just in a markdown file. Or in Notion or whatever.
    • arppacket8 hours ago
      While it&#x27;s noisy and complicated for <i>humans</i> to read through, this session info is primarily for <i>future AI</i> to read and use as additional input for their tasks.<p>We could have LLMs ingest all these historical sessions, and use them as context for the current session. Basically treat the current session as an extension of a much, much longer previous session.<p>Plus, future models might be able to &quot;understand&quot; the limitations of current models, and use the historical session info to identity where the generated code could have deviated from user intention. That might be useful for generating code, or just more efficient analysis by focusing on possible &quot;hotspots&quot;, etc.<p>Basically, it&#x27;s high time we start capturing <i>any and all</i> human input for future models, especially open source model development, because I&#x27;m sure the companies already have a bunch of this kind of data.
      • JeremyNT2 hours ago
        But AI can just read the diff. The natural language isn&#x27;t important.
      • serial_dev4 hours ago
        Or just <i>&quot;write a good commit message based on our session, pls&quot;</i>, then both humans and llms can use it.
      • woctordho6 hours ago
        That&#x27;s exactly one of the reasons I&#x27;ve been archiving the sessions using DataClaw. The sessions can contain more useful information than the comments for humans.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;peteromallet&#x2F;dataclaw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;peteromallet&#x2F;dataclaw</a>
      • staticassertion5 hours ago
        TBH I don&#x27;t think it&#x27;s worth the context space to do this. I&#x27;m skeptical that this would have any meaningful benefits vs just investing in targeted docs, skills, etc.<p>I already keep a &quot;benchmarks.md&quot; file to track commits and benchmark results + what did&#x2F; did not work. I think that&#x27;s far more concise and helpful than the massive context that was used to get there. And it&#x27;s useful for a human to read, which I think is good. I prefer things remain maximally beneficial to both humans and AI - disconnects seem to be problematic.
      • JustFinishedBSG3 hours ago
        &gt; While it&#x27;s noisy and complicated for humans to read through, this session info is primarily for future AI to read and use as additional input for their tasks.<p>Context rot is very much a thing. May still be for future agents. Dumping tens&#x2F;hundreds of thousand of trash tokens into context very much worsen the performance of the agent
      • ZeroGravitas7 hours ago
        Similarly, git logs of existing human code seem to be a good source of info that llms don&#x27;t look at unless explicitly prompted to do so.
      • jfoster7 hours ago
        Future AIs can probably infer the requirements better than humans can write them.
    • xlii1 hour ago
      &gt; Its much the same problem as asking, for example, if every single line you write, or every function, becomes a commit.<p>As a huge fan of atomic commits I&#x27;d say that smallest logical piece should be a commit. I never seen &quot;intention-in-a-commit&quot;, i.e. multiple changes with overarching goal influence reviews. There&#x27;s usually some kind of ticket that can be linked to the code itself if needed.
    • JeremyNT2 hours ago
      I think this too. I use the initial spec from the issue tracker as the prompt and work from there.<p>The missteps the agent takes and the nudging I do along the way are ephemeral, and new models and tooling will behave differently.<p>If you have the original prompt and the diff you have everything you need.
    • eru9 hours ago
      &gt; Its much the same problem as asking, for example, if every single line you write, or every function, becomes a commit.<p>Hmm, I think that&#x27;s the wrong comparison? The more useful comparison might be: should all your notes you made and dead ends you tried become part of the commit?
      • panarky8 hours ago
        When a human writes the code should all their slack messages about the project be committed into the repo?
        • blharr7 hours ago
          Ideally, yes? Or a reference ticket number pointing to that discussion<p>The main limitation is the human effort to compile that information, but if the LLM already has the transcript ready, its free
        • woctordho6 hours ago
          Ideally, yes. Although Slack is a vendor lock-in and we need a better platform to archive the sessions.
        • fragmede7 hours ago
          That would be amazing! In the moment, it&#x27;s a lot of noise, but say you&#x27;re trying to figure out a bit of code that Greg wrote four years ago and oh btw he&#x27;s no longer with the company. Having access to his emails and slack would be amazing context to try reverse engineer and figure out whytf he did what he did. Did he just pick a thing and run with it, so I can replace it and not worry about it, or was it a very intentional choice and do not replace, because everything else will break?
      • mocamoca7 hours ago
        In some cases this is what I ask from my juniors. Not for every commit, but during some specific reviews. The goal is to coach them on why and how they got a specific result.
        • adithyassekhar6 hours ago
          What is a junior? I don&#x27;t see it in claude.
    • Muromec8 hours ago
      There is some potential value for the audit if you work in a special place where you are sworn in and where transparency is important, but who gonna read all of that and how do you even know that the transcript corresponds to the code if the committer is up to something
    • rzerowan9 hours ago
      This is a central problem that weve already seen proliferate wildly in Scientific research , and currently if the same is allowed to be embedded in foundational code. The future outlook would be grim.<p>Replication crisis[1].<p>Given initial conditions and even accounting for &#x27;noise&#x27; would a LLm arrive at the same output.It should , for the same reason math problems require one to show their working. Scientific papers require the methods and pseudocode while also requireing limitations to be stated.<p>Without similar guardrails , maintainance and extension of future code becomes a choose your own adventure.Where you have to guess at the intent and conditions of the LLM used.<p>[1] <a href="https:&#x2F;&#x2F;www.ipr.northwestern.edu&#x2F;news&#x2F;2024&#x2F;an-existential-crisis-for-science.html" rel="nofollow">https:&#x2F;&#x2F;www.ipr.northwestern.edu&#x2F;news&#x2F;2024&#x2F;an-existential-cr...</a>
      • 827a9 hours ago
        Agentic engineering is fundamentally different, not just because of the inherent unpredictability of LLMs, but also because there&#x27;s a wildly good chance that two years from now Opus 4.6 will no longer even be a model anyone can use to write code with.
      • majormajor9 hours ago
        You can leave commit messages or comments without spamming your history with every &quot;now I&#x27;m inspecting this file...&quot; or &quot;oops, that actually works differently than I expected&quot; transcript.<p>In fact, I&#x27;d wager that all that excess noise would make it harder to discern meaningful things in the future than simply distilling the meaningful parts of the session into comments and commit messages.
        • AlexCoventry8 hours ago
          IMO, you should do both. The cost of intellectual effort is dropping to zero, and getting an AI to scan through a transcript for relevant details is not going to cost much at all.
        • devmor8 hours ago
          Those messages are part of the linguistic context used to generate the code, though. Don’t confuse them for when humans (or human written programs) display progress messages.<p>If they aren’t important for your specific purposes, you can summarize them with an LLM.
      • veunes3 hours ago
        Even if you pin the seed and spin up your own local LLM, changes to continuous batching at the vLLM level or just a different CUDA driver version will completely break your bitwise float convergence. Reproducibility in ML generation is a total myth, in prod we only work with the final output anyway
      • JustFinishedBSG3 hours ago
        &gt; for the same reason math problems require one to show their working.<p>We don&#x27;t put our transitional proofs in papers, only the final best one we have. So that analogy doesn&#x27;t work.<p>For every proof in a paper there is probably 100 non-working &#x2F; ugly sketches or just snippets of proofs that exist somewhere in a notebook or erased on a blackboard.
      • itemize1239 hours ago
        but we&#x27;ve been doing the same without llm. what&#x27;re the new pieces which llm would bring in?
        • rzerowan9 hours ago
          with normal practice , say if im reading through the linux source for a particular module.Id be able to refernce mailing lists and patchsets which by convention have to be human parsable&#x2F;reviewable.Wit the history&#x2F;comments&#x2F;git blame etc putting in ones headspace the frame of reference that produced it.
    • solarkraft9 hours ago
      I agree that probably not everything should be stored - it’s too noisy. But the reason the session is so interesting is precisely the later part of the conversation - all the corrections in the details, where the <i>actual</i>, more precise requirements crystallize.
      • insin7 hours ago
        AKA the code. You&#x27;re all talking about the code.
        • medstrom7 hours ago
          The prompt is the code :) The code is like a compiled binary. How long until we put the prompts in `src&#x2F;` and the code in `bin&#x2F;`, I wonder...
        • solarkraft3 hours ago
          Not at all, unless it contains very thorough reasoning comments (which arguably it should). The code is only an artifact, a lot of which is incidental and flexible. The prompts contain the actual constraints.
        • whywhywhywhy5 hours ago
          People are trying to retain value as their value is being evaporated.
      • slashdave9 hours ago
        Then just summarize the final requirements
        • solarkraft3 hours ago
          That’s what I do! I think it works well and helps future agents a lot in understanding <i>why</i> the codebase is the way it is. I do have to oversee the commit messages, but it does avoid a lot of noise and maybe it’s a normal part of HITL development.
        • lsaferite3 hours ago
          If it&#x27;s non-trivial work, have the Agent distill it down to an ADR.
    • matchagaucho9 hours ago
      For me, it’s about preserving optionality.<p>If I can run <i>resume {session_id}</i> within 30 days of a file’s latest change, there’s a strong chance I’ll continue evolving that story thread—or at least I’ve removed the friction if I choose to.
      • majormajor9 hours ago
        It seems unlikely that a file that hasn&#x27;t changed in 30 days in an environment with a lot of &quot;agents&quot; cranking away on things is going to be particularly meaningful to revisit with the context from 30 days ago, vs using new context with everything that&#x27;s been changed and learned since then.
    • D-Machine9 hours ago
      First N prompts is a good &#x2F; practical heuristic for something worth storing (whether N = 1 or greater).
    • wickedsight7 hours ago
      &gt; Who is served by persisting these sessions? I would suspect that there is little reason why future engineers, or future LLMs, would need access to them<p>I disagree. When working on legacy code, one of my biggest issues is usually the question &#x27;why is this the way it is?&#x27; Devs hate documentation, Jira often isn&#x27;t updated with decisions made during programming, so sometimes you just have to guess why &#x27;wait(500)&#x27; or &#x27;n = n - 1&#x27; are there.<p>If it was written with AI and the conversation history is available, I can ask my AI: &#x27;why is this code here?&#x27;, which would often save me a ton of time and headache when touching that code in the future.
    • stackghost10 hours ago
      LLM session transcripts as part of the commit is a neat idea to consider, to be sure, but I know that I damn well don&#x27;t want to read eight pages of &quot;You&#x27;re absolutely right! It&#x27;s not a foo. It&#x27;s a bar&quot; slop (for each commit no less!) when I&#x27;m trying to find someone to git blame.<p>The solution is as it always has been: the commit message is where you convey to your fellow humans, succinctly and clearly, <i>why</i> you made the commit.<p>I like the idea of committing the initial transcript somewhere in the <i>docs&#x2F;</i> directory or something. I&#x27;ll very likely start doing this in my side projects.
    • notedbrew9 hours ago
      You ignore the reality of vibe coding. If someone just prompts and never reads the code and tests the result barely, then the prompts can be a valuable insight.<p>But I am not rooting for either, just saying.
      • refactor_master9 hours ago
        If A vibes, and B is overwhelmed with noise, how does B reliably go through it? If using AI, this necessarily faces the same problems that recording all A&#x27;s actions was trying to solve in the first place, and we&#x27;d be stuck in a never-ending cycle.<p>We could also distribute the task to B, C, D, ... N actors, and assume that each of them would &quot;cover&quot; (i.e. understand) some part of A&#x27;s output. But this suddenly becomes very labor intensive for other reasons, such as coordination and trust that all the reviewers cover adequately within the given time...<p>Or we could tell A that this is not a vibe playground and fire them.
  • dogas3 minutes ago
    I created a tool that will automatically suck in claude sessions into a separate repo. It sanitizes any sensitive data like API keys. Our team finds this useful to share sessions + context.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gammons&#x2F;ai-session" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gammons&#x2F;ai-session</a>
  • dang11 hours ago
    I floated that idea a week ago: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47096202">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47096202</a>, although I used the word &quot;prompts&quot; which users pointed out was obsolete. &quot;Session&quot; seems better for now.<p>The objections I heard, which seemed solid, are (1) there&#x27;s no single input to the AI (i.e. no single session or prompt) from which such a project is generated,<p>(2) the back-and-forth between human and AI isn&#x27;t exactly like working with a compiler (the loop of source code -&gt; object code) - it&#x27;s also like a conversation between two engineers [1]. In the former case, you can make the source code into an artifact and treat that as &quot;the project&quot;, but you can&#x27;t really do that in the latter case, and<p>(3) even if you could, the resulting artifact would be so noisy and complicated that saving it as part of the project wouldn&#x27;t add much value.<p>At the same time, people have been submitting so many Show HNs of generated projects, often with nothing more than a generated repo with a generated readme. We need a better way of processing these because treating them like old-fashioned Show HNs is overwhelming the system with noise right now [2].<p>I don&#x27;t want to exclude these projects, because (1) some of them are good, (2) there&#x27;s nothing wrong with more people being able to create and share things, (3) it&#x27;s foolish to fight the future, and (4) there&#x27;s no obvious way to exclude them anyhow.<p>But the status quo isn&#x27;t great because these projects, at the moment, are mostly not that interesting. What&#x27;s needed is some kind of support to make them more interesting.<p>So, community: what should we do?<p>[1] this point came from seldrige at <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47096903">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47096903</a> and <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47108653">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47108653</a>.<p>YoumuChan makes a similar point at <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47213296">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47213296</a>, comparing it to Google search history. The analogy is different but the issue (signal&#x2F;noise ratio) is the same.<p>[2] <i>Is Show HN dead? No, but it&#x27;s drowning</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47045804">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47045804</a> - Feb 2026 (422 comments)
    • amarant10 hours ago
      My current thinking is based on boris tanes[1] formalised method of coding with Claude code. I commit the research and plan.md files as they are when I finally tell Claude to implement changes in code. This becomes a living lexicon of the architecture and every feature added. A very slight variation I do from Boris&#x27;s method is that I prefix all my research and plan .md filenames with the name of the feature. I can very quickly load relevant architecture into context by having Claude read a previous design document instead of analysing the whole code base. I&#x27;ll take pieces I think are relevant and tell Claude to base research from those design documents.<p>[1] <a href="https:&#x2F;&#x2F;boristane.com&#x2F;blog&#x2F;how-i-use-claude-code&#x2F;" rel="nofollow">https:&#x2F;&#x2F;boristane.com&#x2F;blog&#x2F;how-i-use-claude-code&#x2F;</a>
    • Lerc1 hour ago
      From my perspective, I have two projects that I have considered [Show HN] posts for. One of those I have not yet posted because I have not yet completed writing up the process I used to construct it (a non-trivial project in an artifact). Without that commentary it falls into a different class, which i agree shouldn&#x27;t be outright excluded, but is of less general interest. The other project I think some people would be interested in it just for what it is in itself, I just want to add a bit more to it.<p>Perhaps [Show HN] for things that have commentary or highlight a particular thing. It&#x27;s a bit nebulous because it gets to be like Wikipedia&#x27;s notability and is more of a judgement call.<p>But if that is backed up with a [Creations], simply for things that have been made that people might like or because you are proud of your achievement.<p>So if you write a little Chess engine, it goes under [Creations]. If it is a Chess engine in 1k, or written in BrainFuck, or has a discussion on how you did it, it goes under [Show HN]<p>[Creations] would be much less likely to hit the front page of course, but I think there might need a nudge to push the culture towards recognising that being on the front page should not be the goal.<p>For reference here are the two things, coming to a [Show HN] near you (maybe).<p><a href="https:&#x2F;&#x2F;fingswotidun.com&#x2F;PerfBoard&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fingswotidun.com&#x2F;PerfBoard&#x2F;</a> (Just an app, Commentary would be the value.)<p><a href="https:&#x2F;&#x2F;lerc.neocities.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lerc.neocities.org&#x2F;</a> (this is just neat (to a certain mind anyway), awaiting some more polish)
    • majormajor9 hours ago
      &gt; But the status quo isn&#x27;t great because these projects, at the moment, are mostly not that interesting. What&#x27;s needed is some kind of support to make them more interesting.<p>IMO it&#x27;s not the lack of context that makes them uninteresting. It&#x27;s the fact that the bar for &quot;this took effort and thought to make&quot; has moved, so it&#x27;s just a lot easier to make things that we would&#x27;ve considered interesting two years ago.<p>If you&#x27;re asking HN readers to sift through additional commit history or &quot;session transcripts&quot; in order to decide if it&#x27;s interesting, because there&#x27;s a lot of noise, you&#x27;ve already failed. There&#x27;s gonna be too much noise to make it worth that sifting. The elevator pitch is just gonna need to be that much different from &quot;vibe coded thing X&quot; in order for a project to be worth much.
    • sillysaurusx11 hours ago
      Unfortunately Codex doesn’t seem to be able to export the entire session as markdown, otherwise I’d suggest encouraging people to include that in their Show HNs. It’s kind of nuts that it’s so difficult to export what’s now a part of the engineering process.<p>I don’t have anything against vibe coded apps, but what makes them interesting is to see the vibe coding session and all the false starts along the way. You learn with them as they explore the problem space.
      • woctordho6 hours ago
        You can export it with DataClaw. By default it outputs jsonl and publishes to HuggingFace, but you can also do analysis locally with it.
      • dang11 hours ago
        mthurman pointed me to <a href="https:&#x2F;&#x2F;static.simonwillison.net&#x2F;static&#x2F;2025&#x2F;claude-code-microjs&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;static.simonwillison.net&#x2F;static&#x2F;2025&#x2F;claude-code-mic...</a> - is that what you have in mind?
        • sillysaurusx10 hours ago
          Yeah! That’s great. Having those alongside vibe coded apps would make them way more interesting.
          • duggan2 hours ago
            I&#x27;ve been tinkering away on one of these myself, <a href="https:&#x2F;&#x2F;rockstar.ninja" rel="nofollow">https:&#x2F;&#x2F;rockstar.ninja</a>. I expect there are a hundred others out there, going to be interesting to see what the end shape of these tools is.
      • esperent11 hours ago
        I don&#x27;t think it&#x27;s hard to export, on the contrary its all already saved it your ~&#x2F;.claude which so you could write up a tool to convert the data there to markdown.
    • airstrike6 hours ago
      1. I think at a minimum we need a separate &quot;Show HN&quot; for AI posts, that people can filter out, so that users are not incentivized to spam Show HNs hoping to make it to the front page<p>2. Then that separate group, call it &quot;Vibe HN&quot;, gets to decide what they find valuable through their own voting and flagging.<p>Some guidelines on what makes a good &quot;Vibe HN&quot; post would be helpful to nudge the community towards the things you&#x27;re suggesting, but I think (1) cutting off self-promotion incentives given the low cost of creating software now and (2) allowing for self-moderation given the sheer number of submissions is the only tenable path
    • maxbond6 hours ago
      &gt; So, community: what should we do?<p>My diagnosis is that the friction that existed before (the effort to create a project) was filtering out low-effort projects and keeping the amount of submissions within the capacity the community to handle. Now that the friction is greatly reduced, there&#x27;s more low-effort content and it&#x27;s beyond the community&#x27;s capacity (which is the real problem).<p>So there&#x27;s two options: increase the amount of friction or increase the capacity. I don&#x27;t think the capacity options are very attractive. You could add tags&#x2F;categories to create different niches&#x2F;queues. The most popular tags would still be overwhelmed but the more niche ones would prosper. I wouldn&#x27;t mind that but I think it goes against the site&#x27;s philosophy so I doubt you&#x27;ll be interested.<p>So what I would propose is to create a heavier submission process.<p>- Make it so you may only submit 1 Show HN per week.<p>- Put it into a review queue so that it isn&#x27;t immediately visible to everyone.<p>- Users who are eligible to be reviewers (maybe their account is at least a year old with, maybe they&#x27;ve posted to Show HN at least once) can volunteer to provide feedback (as comments) and can approve of the submission.<p>- If it gets approved by N people, it gets posted.<p>- If the submitter can&#x27;t get the approvals they need, they can review the feedback and submit again next week.<p>High effort projects should sail through. Projects that aren&#x27;t sufficently effortful or don&#x27;t follow the Show HN guidelines (eg it&#x27;s account walled) get the opportunity to apply more polish and try again.<p>A note on requirements for reviewers: A lot of the best comments come from people with old accounts who almost never post and so may have less than 100 karma. My interpretation is that these people have a lot of experience but only comment when they have an especially meaningful contribution. So I would suggest having requirements for account age (to make it more difficult to approve yourself from a sockpuppet) but being very flexible with karma.
    • grey-area7 hours ago
      1. Comments - Ban fully automated HN comments&#x2F;accounts - can’t think of any reason to allow these or others to have to read them.<p>2. Require submissions which use GAI to have a text tag in title Show HN GAI would be fine for example - this would be a good first step and can be policed by readers mostly.<p>I do think point 1 is important to prevent fully automated voting rings etc.<p>Point 2 is preparation for some other treatment later - perhaps you could ask for a human written explanation on these ones?<p>I don’t think any complex or automated requirements are going to be enforceable or done so keep it simple. I also wonder whether show posts are enough - I’ve noticed a fair few blogspam posts using AI to write huge meandering articles.
    • tempestn10 hours ago
      Why does the regular voting system fail here? Are there just too many Show HNs for people to process the new ones, so the good ones get lost in the noise?
      • dang10 hours ago
        Yes I believe that&#x27;s it.
      • th0ma510 hours ago
        [dead]
    • pjc505 hours ago
      All the agentic AI projects remind me of &quot;draw the rest of the owl&quot;: <a href="https:&#x2F;&#x2F;knowyourmeme.com&#x2F;memes&#x2F;how-to-draw-an-owl" rel="nofollow">https:&#x2F;&#x2F;knowyourmeme.com&#x2F;memes&#x2F;how-to-draw-an-owl</a> - there&#x27;s a lot of steps missing.<p>Unlike many people, I&#x27;m on the trailing edge of this. Company is conservative about AI (still concerned about the three different aspects of IP risk) and we&#x27;ve found it not very good at embedded firmware. I&#x27;m also in the set of people who&#x27;ve been negatively polarized by the hype. I might be willing to give it another go, but what I don&#x27;t see from the impressive Show HN projects (e.g. the WINE clone from last week) is .. how do you get those results?
    • wging10 hours ago
      Regarding the noise you mention, I wonder if memento&#x27;s use of the git &#x27;notes&#x27; feature is an acceptable way to contain or quarantine that noise. It might still not add much value, but at least it would live in a separate place that is easily filtered out when the user judges it irrelevant. Per the README of the linked repo,<p>&gt; It runs a commit and then stores a cleaned markdown conversation as a git note on the new commit.<p>So it doesn&#x27;t seem that normal commit history is affected - git stores notes specially, outside of the commit (<a href="https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-notes" rel="nofollow">https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-notes</a>).<p>In fact github doesn&#x27;t even display them, according to some (two-year-old) blog posts I&#x27;m seeing. Not sure about other interfaces to git (magit, other forges), but git log is definitely able to ignore them (<a href="https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-log#Documentation&#x2F;git-log.txt---no-notes" rel="nofollow">https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-log#Documentation&#x2F;git-log.txt--...</a>).<p>This doesn&#x27;t mean the saved artifacts would necessarily be <i>valuable</i> - just that, unlike a more naive solution (saving in commit messages or in some directory of tracked files) they may not get in the way of ordinary workflows aside from maybe bloating the repo to some degree.
      • mandel_x9 hours ago
        You are 100% and that’s why I chose git notes. If you do not sync them you have no knowledge of their existence.
    • bandrami11 hours ago
      Plenty of commits link to mailing list discussions about the proposed change, maybe something like that, with an archive of LLM sessions?
    • esperent11 hours ago
      &gt; the resulting artifact would be so noisy and complicated that saving it as part of the project wouldn&#x27;t really add that much value.<p>This is the major blocker for me. However, there might be value in saving a summary - basically the same as what you would get from taking meeting notes and then summarizing the important points.
    • killingtime7410 hours ago
      Also the models change all the time and are not deterministic
    • tptacek8 hours ago
      A starting point would be excluding Show HNs with generated READMEs, or that lack human-written explanations.
    • grayhatter10 hours ago
      &gt; So, community: what should we do?<p>&gt; Is Show HN dead? No, but it&#x27;s drowning<p>Is spam on topic? and are AI codegen bots part of the community?<p>To me, the value of Show HN was rarely the <i>thing</i>, it was the work and attention that someone put into it. AI bot&#x27;s don&#x27;t do work. (What they do is worth it&#x27;s own word, but it&#x27;s not the same as work).<p>&gt; I don&#x27;t want to exclude these projects, because (1) some of them are good,<p>Most of them are barely passable at best, but I say that as a very biased person. But I&#x27;ll reiterate my previous point. I&#x27;m willing to share my attention with people who&#x27;ve invested significant amounts of their own time. SIGNIFICANT amounts, of their <i>time</i>, not their tokens.<p>&gt; (2) there&#x27;s nothing wrong with more people being able to create and share things<p>This is true, only in isolation. Here, the topic is more, what to do about all this new noise, (not; should people share things they think are cool). If the noise drowns out the signal, you&#x27;re allowed that noise to ruin something that was useful.<p>&gt; (3) it&#x27;s foolish to fight the future<p>coward!<p>I do hope you take that as the tongue-in-cheek way I meant it, because I say it as a friend would; but I refuse to resign myself completely to fatalism. Fighting the future is different from letting people doing something different ruin the good thing you currently have. Sure electric cars are the future, but that&#x27;s no reason to welcome them in a group that loves rebuilding classic hot rods.<p>&gt; (4) there&#x27;s no obvious way to exclude them anyhow.<p>You got me there. But then, I just have to take your word for it, because it&#x27;s not a problem I&#x27;ve spent a lot of time figuring out. But even then, I&#x27;d say it&#x27;s a cultural problem. If people <i>ahem</i>, in a leadership position, comment ShowHN is reserved for projects that took a lot of time investment, and not just ideas with code... eventually the problem would solve itself, no? The inertia may take some time, but then this whole comment is about time...<p>I know it&#x27;s not anymore, but to me, HN still somehow, feels a niche community. Given that, I&#x27;d like to encourage you to optimize for the people who want to invest time into getting good at something. A very small number of these projects could become those, but trying to optimize for best fairness to everyone, time spent be damned... I believe will turn the people who lift the quality of HN away.
    • mandel_x9 hours ago
      &gt; people have been submitting so many Show HNs of generated projects<p>In this case, it was more of write the X language compiler using X. I had to prove to myself if keeping the session made sense, and what better way to do it than to vibe code the tool to audit vibe code.<p>I do get your point though
    • d--b2 hours ago
      The issue is that there is more HN submissions than the community is able to process. But you could say the same of the front page, which is mostly a fairly small sample of the good stuff that go through &#x2F;new<p>So you could treat Show HN as the same. Like what gets floated on &#x2F;show is only a small sample of the good stuff in &#x2F;shownew and be fine with the idea that a lot of the good Show HN just slip through the crack. Which seems to me like the best alternative. Possibly with a &#x2F;showpool maybe?<p>You could split Show HN into categories, but you&#x27;d have done it by now if you thought it a good idea.<p>You could also rate Show HN submissions algorithmically trying to push for those projects that have been around longer and that look like more effort has been put into them, but I guess that&#x27;s kind of hard.<p>Or you&#x27;d have to hire actual people to pre-sort the submissions, and gut all the ones that are not up-to-par. In fact, if there was a human-based approval system for new Show HN, you&#x27;d possibly get a lot fewer submissions and more qualitative ones, which in itself would make the work of sorting through them simpler.
    • jgraham2 hours ago
      &gt; it&#x27;s foolish to fight the future<p>And yet, the premise of the question assumes that it&#x27;s possible in this case.<p>Historically having produced a piece of software to accomplish some non-trivial task implied weeks, months, or more of developing expertise and painstakingly converting that expertise into a formulation of the problem precise enough to run on a computer.<p>One could reasonably assume that any reasonable-looking submission was in fact the result of someone putting in the time to refine their understanding of the problem, and express it in code. By discussing the project one could reasonably hope to learn more about their understanding of the problem domain, or about the choices they made when reifying that understanding into an artifact useful for computation.<p>Now that no longer appears to be the case.<p>Which isn&#x27;t to say there&#x27;s no longer any skill involved in producing well engineered software that continues to function over time. Or indeed that there aren&#x27;t classes of software that require interesting novel approaches that AI tooling can&#x27;t generate. But now anyone with an idea, some high level understanding of the domain, and a few hundred dollars a month to spend, can write out a plan can ask an AI provider to generate them software to implement that plan. That software may or may not be good, but determining that requires a significant investment of time.<p>That change fundamentally changes the dynamics of &quot;Show HN&quot; (and probably much else besides).<p>It&#x27;s essentially the same problem that art forums had with AI-generated work. Except they have an advantage: people generally agree that there&#x27;s some value to art being artisan; the skill and effort that went into producing it are — in most cases — part of the reason people enjoy consuming it. That makes it rather easy to at least develop a policy to exclude AI, even if it&#x27;s hard to implement in practice.<p>But the most common position here is that the value of software is what it does. Whilst people might intellectually prefer 100 lines of elegant lisp to 10,000 lines of spaghetti PHP to solve a problem, the majority view here is that if the latter provides more economic value — e.g. as the basis of a successful business — then it&#x27;s better.<p>So now the cost of verifying things for interestingness is higher than the cost of generating plausibly-interesting things, and you can&#x27;t even have a blanket policy that tries to enforce a minimum level of effort on the submitter.<p>To engage with the original question: if one was serious about extracting the human understanding from the generated code, one would probably take a leaf from the standards world where the important artifact is a specification that allows multiple parties to generate unique, but functionally equivalent, implementations of an idea. In the LLM case, that would presumably be a plan detailed enough to reliably one-shot an implementation across several models.<p>However I can&#x27;t see any incentive structure that might cause that to become a common practice.
    • acedTrex11 hours ago
      &gt; (2) there&#x27;s nothing wrong with more people being able to create and share things<p>There is very clearly many things wrong with this when the things being shown require very little skill or effort.
      • dang11 hours ago
        That is by no means all of these projects. I&#x27;m not interested in a circle-the-wagons crackdown because it won&#x27;t work (see &quot;it&#x27;s foolish to fight the future&quot; above), and because we should be welcoming and educating new users in how to contribute substantively to HN.
        • lelanthran3 hours ago
          &gt; That is by no means all of these projects. I&#x27;m not interested in a circle-the-wagons crackdown because it won&#x27;t work (see &quot;it&#x27;s foolish to fight the future&quot; above), and because we should be welcoming and educating new users in how to contribute substantively to HN.<p>Is it really that difficult to identify bot accounts right now? Or people who create a HN account only to post their project?<p>That seems like low-hanging fruit that should be picked immediately.
        • imiric8 hours ago
          Which users?<p>The future you&#x27;re concerned with defending includes bots being a large part of this community, potentially the majority. Those bots will not only submit comments autonomously, but create these projects, and Show HN threads. I.e. there will be no human in the loop.<p>This is not something unique to this forum, but to the internet at large. We&#x27;re drowning in bot-generated content, and now it is fully automated.<p>So the fundamental question is: do you want to treat bots as human users?<p>Ignoring the existential issue, whatever answer you choose, it will inevitably alienate a portion of existing (human) users. It&#x27;s silly I have to say this, but bots don&#x27;t think, nor &quot;care&quot;, and will keep coming regardless.<p>To me the obvious answer is &quot;no&quot;. All web sites that wish to preserve their humanity will have to do a complete block of machine-generated content, or, at the very least, filter and categorize it correctly so that humans who wish to ignore it, can. It&#x27;s a tough nut to crack, but I reckon YC would know some people capable of tackling this.<p>It&#x27;s important to note that this state of a human driving the machine directly is only temporary. The people who think these are tools as any other are sorely mistaken. This tool can do their minimal effort job much more efficiently, cheaper, and with better results, and it&#x27;s only a matter of time until the human is completely displaced. This will take longer for more complex work, of course, but creating regurgitated projects on GitHub and posting content on discussion forums is a very low bar activity.
      • newswasboring2 hours ago
        Why exactly is the skill level required for something a gating parameter?
      • CuriouslyC10 hours ago
        Taking a good picture requires very little effort once you&#x27;ve found yourself in the right place. You gonna shit on Ansel Adams?
  • yuvrajangads2 hours ago
    The session itself is mostly noise. Half of it is the model going down wrong paths, backtracking, and trying again. Storing that alongside the commit is like saving your browser history next to your finished code.<p>What actually helps is a good commit message explaining the intent. If an AI wrote the code, the interesting part isn&#x27;t the transcript, it&#x27;s why you asked for it and what constraints you gave it. A one-paragraph description of the goal and approach is worth more than a 200-message session log.<p>I think the real question isn&#x27;t about storing sessions, it&#x27;s about whether we&#x27;re writing worse commit messages because we assume the AI context is &quot;somewhere.&quot;
  • rfw30012 hours ago
    Why should it be? The agent session is a messy intermediate output, not an artifact that should be part of the final product. If the &quot;why&quot; of a code change is important, have your agent write a commit message or a documentation file that is polished and intended for consumption.
    • addcn2 hours ago
      This reduces down to the problem of summarization - a quite difficult one. At commit time it’s difficult to know what questions readers will have. You can get close but never all the way there.<p>Pre AI when engineers couldn’t find the answer in commit messages or documentation they would ask the author “why” and that human would “compute” the summary on demand.<p>I think that’s what I expect to do with these agent sessions - I don’t want more markdown, I want to ask it questions on demand. Git AI (<a href="https:&#x2F;&#x2F;github.com&#x2F;git-ai-project&#x2F;git-ai" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;git-ai-project&#x2F;git-ai</a>) uses the prompts that way. I think that model will win out. Save sessions. Read&#x2F;ask questions relevant to the current agent’s work.<p>On asking peers. This is regrettably on the way out today - I’ll ask engineers about complex code they generated and they can’t give good answers. I think it’s because it all happened so fast — they didn’t sit with the problem for 48 hours. So even if they steered the agent thoughtfully it’s hard to remember all the decisions they made a week later.
    • D-Machine10 hours ago
      It should be a distillation of the session and&#x2F;or the prompts, at bare minimum. No, it should not include e.g. research-type questions, but it should include prompts that the user wrote after reading the answers to those research-type questions, and perhaps some distillation of the links &#x2F; references surfaced during the research.<p>Prompts probably should be distilled &#x2F; summarized, especially if they are research-based prompts, but code-gen prompts should probably be saved verbatim.<p>Reproducibility is a thing, and though perfect reproducibility isn&#x27;t desirable, <i>something</i> needs to make up for the fact that vibe-coding is highly inscrutable and hard to review. Making the summary of the session too vague &#x2F; distilled makes it hard to iterate and improve when &#x2F; if some bad prompts &#x2F; assumptions are not documented in any way.
      • tpmoney9 hours ago
        You have the source code though. That is the &quot;reproducibility&quot; bit you need. What extra reproducibility does having the prompts give you? Especially given that AI agents are non-deterministic in the first place. To me the idea that the prompts and sessions should be part of the commit history is akin to saying that the keystroke logs and commands issued to the IDE should be part of the commit history. Is it important to know that when the foo file was refactored the developer chose to do it by hand vs letting the IDE do it with an auto-refactor command vs just doing a simple find and replace? Maybe it is for code review purposes, but for &quot;reproducibility&quot; I don&#x27;t think it is. You have the code that made build X and you have the code that made build X+1. As long as you can reliably recreate X and X+1 from what you have in the code, you have reproducibility.
        • D-Machine9 hours ago
          &gt; You have the source code though. That is the &quot;reproducibility&quot; bit you need.<p>I am talking about reproducing the (perhaps erroneous) <i>logic</i> or <i>thinking</i> or <i>motivations</i> in cases of bugs, not reproducing outputs perfectly. As you said, current LLM models are non-deterministic, so we can&#x27;t have perfect reproducibility based on the prompts, but, when trying to fix a bug, having the basic prompts we can see if we run into <i>similar</i> issues given a bad prompt. This gives us information about whether the bad &#x2F; bugged code was just a random spasm, or something reflecting bad &#x2F; missing logic in the prompt.<p>&gt; Is it important to know that when the foo file was refactored the developer chose to do it by hand vs letting the IDE do it with an auto-refactor command vs just doing a simple find and replace? Maybe it is for code review purposes, but for &quot;reproducibility&quot; I don&#x27;t think it is.<p>I am really using &quot;reproducibility&quot; more abstractly here, and don&#x27;t mean perfect reproducibility of the same code. I.e. consider this situation: &quot;A developer said AI wrote this code according to these specs and prompt, which, according to all reviewers, shouldn&#x27;t produce the errors and bad code we are seeing. Let&#x27;s see if we can indeed reproduce similar code given their specs and prompt&quot;. The less evidence we have of the specifics of a session, the less reproducible their generated code is, in this sense.
          • xmcqdpt22 hours ago
            It&#x27;s not reproducible though.<p>Even with the exact same prompt and model, you can get dramatically different results especially after a few iterations of the agent loop. Generally you can&#x27;t even rely on those though: most tools don&#x27;t let you pick the model snapshot and don&#x27;t let you change the system prompt. You would have to make sure you have the exact same user config too. Once the model runs code, you aren&#x27;t going to get the same outputs in most cases (there will be date times, logging timestamps, different host names and user names etc.)<p>I generally avoid even reading the LLM&#x27;s own text (and I wish it produced less of it really) because it will often explain away bugs convincingly and I don&#x27;t want my review to be biased. (This isn&#x27;t LLM specific though -- humans also do this and I try to review code without talking to the author whenever possible.)
          • newswasboring2 hours ago
            You are talking about documenting the intent of a piece of software if I understand correctly. But isn&#x27;t that what READMEs and comments are for?
        • xigoi6 hours ago
          The source code is whatever is easiest for a human to understand. Committing AI-generated code without the prompts is like committing compiler-generated machine code.
      • e3bc54b29 hours ago
        &gt; It should be a distillation of the session and&#x2F;or the prompts, at bare minimum.<p>Huh, I thought that&#x27;s what commit message is for.
        • D-Machine9 hours ago
          I mean, sure, a good, detailed commit message is perfectly fine to me in place of the prompts &#x2F; a session distillation. But I am not holding my breath for vibe-coders to properly review their code and make such a commit message. But, if they, do, great! No need for prompt &#x2F; session details.
    • hatmanstack10 hours ago
      Completely agree. Until recently I only let LLMs write my commit messages, but I&#x27;ve found that versioning the plan files is the better artifact, it preserves agentic decisions and my own reasoning without the noise.<p>My current workflow: write a detailed plan first, then run a standard implement -&gt; review loop where the agent updates the plan as errors surface. The final plan doc becomes something genuinely useful for future iterations, not just a transcript of how we got there.
    • sunir11 hours ago
      In my case I have set up the agent is the repo. The repo texts compose the agent’s memory. Changes to the repo require the agent to approve.<p>Repos also message each other and coordinate plans and changes with each other and make feature requests which the repo agent then manages.<p>So I keep the agents’ semantically compressed memories as part of the repo as well as the original transcripts because often they lose coherence and reviewing every user submitted prompt realigns the specs and stories and requirements.
    • aspenmartin12 hours ago
      post mortems &#x2F; bug hunting -- pinpointing what part of the logic was to blame for a certain problem.
      • monster_truck11 hours ago
        this is what granular commits are for, the kilobytes long log of claude running in circles over bullshit isn&#x27;t going to help anyone
        • ahupp10 hours ago
          I think the parent comment is saying “why did the agent produce this big, and why wants it caught”, which is a separate problem from what granular commits solve, of finding the bug in the first place.
          • xmcqdpt22 hours ago
            There is no &quot;why.&quot; It will give reasons but they are bullshit too. Even with the prompt you may not get it to produce the bug more than once.<p>If you sell a coding agent, it makes sense to capture all that stuff because you have (hopefully) test harnesses where you can statistically tease out what prompt changes caused bugs. Most projects wont have those and anyway you don&#x27;t control the whole context if you are using one of the popular CLIs.
            • aspenmartin2 hours ago
              If I have a session history or histories, I can (and have!) mine them to pinpoint where an agent either did not implement what it was supposed to, or understand who asked for a certain feature an why, etc. It complements commits, sessions are more like a court transcript of what was said &#x2F; claimed (session) and then you can compare that to what was actually done (commits).
    • lacunary12 hours ago
      but that takes more tokens and time. if you just save the raw log, you can always do that later if you want to consume it. plus, having the full log allows asking many different questions later.
    • AndrewKemendo12 hours ago
      How’s it any different than a diff log?
      • xboxnolifes12 hours ago
        Better question: how is it in any way similar?
        • AndrewKemendo11 hours ago
          If you read the history of both and assuming that there’s good comments and documentation, it shows you the reasoning that went into the decision-making
  • onion2k10 hours ago
    Conceptually this is very similar to the question of whether or not you should squash your commits. To the point that it&#x27;s really the same question.<p>If you think you should squash commits, then you&#x27;re only really interested in the final code change. The history of how the dev got there can go in the bin.<p>If you don&#x27;t think you should squash commits then you&#x27;re interested in being able to look back at the journey that got the dev to the final code change.<p>Both approaches are valid for different reasons but they&#x27;re a source of long and furious debate on every team I&#x27;ve been on. Whether or not you should be keeping a history of your AI sessions alongside the code could be useful for debugging (less <i>code</i> debugging, more <i>thought process</i> debugging) but the &#x27;prefer squash&#x27; developers usually prefer to look the existing code rather than the history of changes to steer it back on course, so why would they start looking at AI sessions if they don&#x27;t look at commits?<p>All that said, your AI&#x27;s memory could easily be stored and managed somewhere separately to the repo history, and in a way that makes it more easily accessible to the LLM you choose, so probably not.
    • mikepurvis9 hours ago
      I&#x27;ve generally been in the squash camp but it&#x27;s more out of a sense of wanting a &quot;clean&quot; and bisectable repo history. In a word where git (and git forges) could show me atomic merge commits but also let me seamlessly fan those out to show the internal history and iteration and maybe stuff like llm sessions, I&#x27;d be into that.<p>And yes, it&#x27;s my understanding that mercurial and fossil do actually do more of this than git does, but I haven&#x27;t actually worked on any projects using those so I can&#x27;t comment.
    • D-Machine9 hours ago
      I think this is the right analogy, contrary to some other very poor ones in this thread. Yes, it is rare to really look at commit messages, but it can be invaluable in some cases.<p>With vibe-coding, you risk having no documentation at all for the reasoning (AI comments and tests can be degenerate &#x2F; useless), but the prompts, at bare minimum, reveal something about the reasoning &#x2F; motivation.<p>Whether this needs to be in git or not is a side issue, but there is benefit to having this available.
      • mikepurvis9 hours ago
        Depending on the size it might make sense as a kind of commit metadata reference to external, like the signed-off-by field.<p>Chat-Session-Ref: claude:&#x2F;&#x2F;gjhgdvbnjuteshjoiyew<p>Perhaps that could also link out to other kinds of meeting transcripts or something too.
        • onion2k8 hours ago
          That wouldn&#x27;t be very portable. A benefit of committing to your history is that it lives with the code no matter where the code or the AI service you use goes.
    • globular-toast8 hours ago
      This only works if the software is still crafted by a human and merely using AI as a tool. In that case the use of AI is similar to using editor macros or test-driven development. I don&#x27;t need to see that process playing out in real time.<p>It&#x27;s less clear to me if the software isn&#x27;t crafted by a human at all, though. In that case I would prefer to see the prompt.
      • onion2k8 hours ago
        I agree that fully agentic development will change things, but I don&#x27;t know how. I&#x27;m still very much in the human-in-the-loop phase of AI where I want to understand and verify that it&#x27;s not done anything silly. I care <i>far</i> more about the code that I&#x27;m deploying than the prompt that got me there and probably will for a long time. So will my prodsec team.
        • D-Machine8 hours ago
          Appreciate this very sane take. The actual code always is more important than the intentions, and this is basically tautological.<p>When dealing with a particularly subtle &#x2F; nuanced issue, knowing the intentions is still invaluable, but this is usually rare. How often AI code runs you into these issues is currently unclear, and constantly changing (and how often such issue are actually crucial depends heavily on the domain).
  • ZoomZoomZoom4 hours ago
    If by AI you mean the LLM-based tools common now, then I don&#x27;t want the commits in PRs I&#x27;m going to review to bring any more noise than they already do. The human operator is responsible for every line, like they always were.<p>If by AI you mean non-supervised, autonomous conscience (as I believe the term has to be reserved for), then the answer is again no, as it&#x27;s as responsible for the quality of its PRs as humans.<p>If the thing writing code is the former, but there&#x27;s no human or responsible representative of the latter in the loop, then the code shouldn&#x27;t be even suggested for consideration in a project where any people do participate. In such case there&#x27;s no point in storing any additional information as the code itself doesn&#x27;t have any value (besides electricity wasted to create it) and can be substituted on demand.<p>Commit comments are generally underused, though, as a result of how forges work, but that&#x27;s another discussion.
  • D-Machine10 hours ago
    Obviously yes, at least if not the prompts in the session, some simple &#x2F; automated distillation of those prompts. Code generated by AI is already clearly not going to be reviewed as carefully as code produced by humans, and intentions &#x2F; assumptions will only be documented in AI-generated comments to some limited degree, completely contingent on the prompt(s).<p>Otherwise, when fixing a bug, you just risk starting from scratch and wasting time using the same prompts and&#x2F;or assumptions that led to the issue in the first place.<p>Much of the reason code review was&#x2F;is worth the time is because it can teach people to improve, and prevent future mistakes. Code review is not really about &quot;correctness&quot;, beyond basic issues, because subtle logic errors are in general very hard to spot; that is covered by testing (or, unfortunately, deployment surprises).<p>With AI, at least as it is currently implemented, there is no learning, as such, so this removes much of the value of code review. But, if the goal is to prevent future mistakes, having some info about the prompts that led to the code at least brings some value back to the review process.<p>EDIT: Also, from a business standpoint, you still need to select for competent&#x2F;incompetent prompters&#x2F;AI users. It is hard to do so when you have no evidence of what the session looked like. Also, how can you teach juniors to improve their vibe-coding if you can&#x27;t see anything about their sessions?
    • tpmoney9 hours ago
      &gt; Obviously yes<p>I don&#x27;t think this is obvious at all. We don&#x27;t make the keystroke logs part of the commit history. We don&#x27;t make the menu item selections part of the commit history. We don&#x27;t make the 20 iterations you do while trying to debug an issue part of the commit history (well, maybe some people do but most people I know re-write the same file multiple times before committing, or rebase&#x2F;squash intermediate commits into more useful logical commits. We don&#x27;t make the search history part of the commit history. We don&#x27;t make the discussion that two devs have about the project part of the commit history either.<p>Some of these things might be useful to preserve some of the time either in the commit history or along side it. For example, having some documentation for the intent behind a given series of commits and any assumptions made can be quite valuable in the future, but every single discussion between any two devs on a project as part of the commit history would be so much noise for very little gain. AI prompts and sessions seem to me to fall into that same bucket.
      • D-Machine9 hours ago
        &gt; well, maybe some people do but most people I know re-write the same file multiple times before committing, or rebase&#x2F;squash intermediate commits into more useful logical commits<p>Right, agreed on this, we want a distillation, not documentation of every step.<p>&gt; For example, having some documentation for the intent behind a given series of commits and any assumptions made can be quite valuable in the future, but every single discussion between any two devs on a project as part of the commit history would be so much noise for very little gain. AI prompts and sessions seem to me to fall into that same bucket.<p>Yes, documenting every single discussion is a waste &#x2F; too much to process, but I do think prompts at least are pretty crucial relative to sessions. Prompts basically are the core intentions &#x2F; motivations (skills aside). It is hard to say whether we really want earlier &#x2F; later prompts, given how much context changes based on the early prompts, but having no info about prompts or sessions is a definite negative in vibe-coding, where review is weak and good documentation, comments, and commit messages are only weakly incentivized.<p>&gt; Some of these things might be useful to preserve some of the time either in the commit history or along side it<p>Right, along side is fine to me as well. Just <i>something</i> has to make up for the fact that vibe-coding only appears faster (currently) if you ignore the fact it is weakly-reviewed and almost certainly incurring technical debt. Documenting some basic aspects of the vibe-coding process is the most basic and easy way to reduce these long-term costs.<p>EDIT: Also, as I said, information about the prompts quickly reveals competence &#x2F; incompetence, and is crucial for management &#x2F; business in hiring, promotions, managing token budgets, etc. Oh, and of course, one of the main purposes of code review was to <i>teach</i>. Now, that teaching has to shift toward teaching better prompting and AI use. That gets a lot harder with no documentation of the session!
        • Lyrkan3 hours ago
          &gt; Also, as I said, information about the prompts quickly reveals competence &#x2F; incompetence, and is crucial for management &#x2F; business in hiring, promotions, managing token budgets, etc.<p>I fail to see why you would need that kind of information to find out if someone is not competent. This really sounds like an attempt at crazy micro-management.<p>The &quot;distillation&quot; that you want already exists in various forms: the commit message, the merge request description&#x2F;comments, the code itself, etc.<p>Those can (and should) easily be reviewed.<p>Did you previously monitor which kind of web searches developpers where doing when working on a feature&#x2F;bugfix? Or asked them to document all the thoughts that they had while doing so?
    • adampunk25 minutes ago
      Just out of curiosity, what session size do you think we&#x27;re talking about here?
  • YoumuChan12 hours ago
    Should my google search history be part of the commit? To that question my answer is no.
    • travisjungroth11 hours ago
      I was looking for an analogy and this is a good one.<p>The noise to signal ratio seems so bad. You’d have to sift through every little “thought”. If I could record my thought stream would I add it to the commit? Hell no.<p>Now, a summary of the reasoning, assumptions made and what alternatives were considered? Sure, that makes for a great message.
      • rerdavies11 hours ago
        Heck no. I don&#x27;t even read the vast majority of the cack that my AI spits out for my own prompts. Why would I inflict that on anyone else?
    • woctordho6 hours ago
      If you archive the session, you automatically archive all Google search history (queries and outputs) that the AI did, and it&#x27;s usually relevant to the project.
    • veunes3 hours ago
      Perfect analogy. Nobody cares how many times you googled &quot;how to center a div&quot; before finally writing proper CSS. Same goes for agents: I only care about the final architectural state and performance, not how the model brain-farted over trivial boilerplate because of a scuffed system prompt
    • charcircuit10 hours ago
      And not all google searches you do while working on that commit may even be related to that commit. It may be entirely unrelated, or sensitive information that should not be made public.
  • rDr4g0n1 hour ago
    When I began reviewing my teammate’s PRs with AI generated code in it, something started to feel weird. It took a bit, but I realized the problem: I am not reviewing the work my teammate did.<p>What are they even supposed to do with feedback on the code? It has to be translated by my teammate into the language of the work they did, which is the conversation they had with the AI agent.<p>But the conversation isn&#x27;t the &quot;real work&quot;: the <i>decisions</i> made in the conversation are the real work. That is what needs capture and review.<p>So now I know why code reviews are kinda wrong, what can we do to have meaningful reviews of the work my teammates have done?<p>What I landed on is aiming to capture more and more “work” in the form of a spec, review the spec, ignore the code. this isn&#x27;t novel or interesting. HOWEVER...<p>For the large, messy, legacy codebases I work in today, I don’t like the giant spec driven development approach that is most popular today. It’s too risky to solely trust the spec because it touches so much messy code with so many gotchas. However, with the rate of AI generated code rolling in, I simply can’t switch context quickly enough to review it all efficiently. Also, it’s exhausting.<p>The approach I have been refining is defining very small modules (think a class or meaningful collection of utils) with a spec and a concise set of unit tests, generating code from the spec, then not reading or editing the generated code.<p>Any changes to the code must be made to the spec, and the code re-generated. This puts the PR conversation in the right place, against the work I have done: which is write the spec.<p>So far the approach has worked for replacing simple code (eg: a nestjs service that has a handful of public methods, a bit of business logic, and a few API client calls). PRs usually have a handful of lines of glue code to review, but the rest are specs (and a selection of “trust” unit tests) and the idea is that the code can be skipped.<p>AI review bots still review the PR and comment around code quality and potential security concerns, which I then translate into updates to the spec.<p>I find this to be a good step towards the codegen future without totally handing over my (very messy and not very agent friendly) codebases.
  • jollymonATX49 minutes ago
    How verbose a history is even plausible to store and recall in modern git? This could add decent pressure on those mechanisms and the usability, for humans at least, would be taxing to consume.
  • raincole11 hours ago
    I hope people start doing that. Not that it has any practical usage for the repo itself, but if <i>everyone</i> does that, it&#x27;d probably make it much easier for open weight models to catch up the proprietary ones. It&#x27;d be like a huge crowdsourced project to collect proprietary models&#x27; output for future training.
  • abustamam11 hours ago
    I don&#x27;t think it should be. I think a distilled summary of what the agent did should be committed. This requires some dev discipline. But for example:<p>Make a button that does X when clicked.<p>Agent makes the button.<p>I tell it to make the button red.<p>Agent makes it red.<p>I test it, it is missing an edge case. I tell it to fix it.<p>It fixes it.<p>I don&#x27;t like where the button is. I tell it to put it in the sidebar.<p>It does that.<p>I can go on and on. But we don&#x27;t need to know all those intermediaries. We just need to know Red button that does X by Y mechanism is in the sidebar. Tests that include edge cases here. All tests passing. 2026-03-01<p>And that document is persisted.<p>If later, the button gets deleted or moved again or something, we can instruct the agent to say why. Button deleted because not used and was noisy. 2026-03-02<p>This can be made trivial via skills, but I find it a good way to understand a bit more deeply than commit messages would allow me to do.<p>Of course, we can also just write (or instruct agents to write) better PRs but AFAICT there&#x27;s no easy way to know that the button came about or was deleted by which PR unless you spelunk in git blame.
  • tototrains8 hours ago
    I considered this and even built a claude code extension to bring history&#x2F;chats into the project folder.<p>Not once have I found it useful: if the intention isn&#x27;t clear from the code and&#x2F;or concise docs, the code is bad and needs to be polished.<p>Well written code written with intention is instantly interpretable with an LLM. Sending the developer or LLM down a rabbit hole of drafts is a waste of cognition and context.
  • veunes3 hours ago
    The idea of &quot;saving prompts for reproducibility&quot; is dead on arrival. LLMs are non-deterministic by nature. In a year, they&#x27;ll deprecate this model&#x27;s API, and the new version will spit out completely different code with entirely new bugs for the exact same prompt. A prompt isn&#x27;t source code, it&#x27;s just a temporary crutch for stochastic generation. And if I have to read 50 pages of schizophrenic dialogue with an LLM just to understand why a specific function exists, that PR gets an instant reject. The artifact is and always will be readable code plus a sane commit message. Dumping a log of hallucinations will only make debugging a nightmare when this Frankenstein inevitably falls apart in prod tbh
    • jwrallie2 hours ago
      This is something that should be possible in principle, since the machines underneath are deterministic, it’s just a limitation of the implementation.
  • tokiory1 hour ago
    Hell no, there are many companies, which doesn&#x27;t use any AI (or just using copilot). I would hate to read a commit history where every commit had a &quot;conversation&quot; attached to it. Code should be human-first, always
  • eddyg1 hour ago
    <a href="https:&#x2F;&#x2F;specstory.com&#x2F;specstory-cli" rel="nofollow">https:&#x2F;&#x2F;specstory.com&#x2F;specstory-cli</a> is another tool in this space (it writes clean Markdown session files into the project for future reference)
  • JustFinishedBSG3 hours ago
    I understand the idea but the way I work, a commit isn&#x27;t &quot;a&quot; session, it&#x27;s potentially tens of sessions with branching in each session.<p>I honestly don&#x27;t know if I&#x27;m doing something very wrong or if I have a very different working style than many people, but for me &quot;just give the prompt&#x2F;session&quot; isn&#x27;t a possibility because there isn&#x27;t one.<p>I&#x27;m probably incredibly inefficient, because even when I don&#x27;t use AI it is the same, a single commit is usually many different working states &#x2F; ideas &#x2F; branches of things I tried and explored that have been amended &#x2F; squashed.
  • brendanmc69 hours ago
    A few things really leveled up both my software quality and my productivity in the last few months. It wasn’t session history, memory files, context management or any of that.<p>1. Writing a spec with clear acceptance criteria.<p>2. Assigning IDs to my acceptance criteria. Sounds tedious, but actually the idea wasn’t mine, at some point an agent went and did it without me asking. The references proved so useful for guiding my review that I formalized the process (and switched from .md to .yaml to make it easier).<p>3. Giving my agents a source of truth to share implementation progress so they can plan their own tasks and more effectively review.<p>Of course, I can’t help myself, I had to formalize it into a spec standard and a toolkit. Gonna open source it all soon, but I really want feedback before I go too far down the rabbit hole:<p><a href="https:&#x2F;&#x2F;acai.sh" rel="nofollow">https:&#x2F;&#x2F;acai.sh</a>
    • eru9 hours ago
      &gt; Assigning IDs to my acceptance criteria. Sounds tedious, [...]<p>Might be tedious for a human, but agents should do that just fine?
      • brendanmc69 hours ago
        Yup and they do, but then I figured out that I can just write loosely structured yaml and the ids come for free. I then encourage the agents to tag and reference them everywhere, especially tests.
  • claud_ia5 hours ago
    The raw session noise — repeated clarifications, trial-and-error prompting, hallucinated APIs — probably isn&#x27;t worth preserving. But AI sessions contain one category of signal that almost never makes it into code or commit messages: the counterfactual space — what approaches were tried and rejected, which constraints emerged mid-session, why the chosen implementation looks the way it does.<p>That&#x27;s what architectural decision records (ADRs) are designed to capture, and it&#x27;s where the workflow naturally lands. Not committing the full transcript, but having the agent synthesize a brief ADR at the close of each session: here&#x27;s what was attempted, what was discarded and why, what the resulting code assumes. Future maintainers — human or AI — need exactly that, and it&#x27;s compact enough that git handles it fine.
  • mandel_x14 hours ago
    I’ve been thinking about a simple problem: We’re increasingly merging AI-assisted code into production, but we rarely preserve the thing that actually produced it — the session. Six months later, when debugging or reviewing history, the only artifact left is the diff. So I built git-memento. It attaches AI session transcripts to commits using Git notes.
    • denismi12 hours ago
      &gt; the only artifact left is the diff<p>You also have code comments, docs in the repo, the commit message, the description and comments on the PR, the description and comments on your Issue tracker.<p>Providing context for a change is a solved problem, and there is relatively mature MCP for all common tooling.
      • rerdavies11 hours ago
        Not to mention AIs predilection for copious and overly abundant comments.
    • jwbron9 hours ago
      The former GitHub CEO has a startup and this was their first release. They call it checkpoints: <a href="https:&#x2F;&#x2F;entire.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;entire.io&#x2F;</a><p>I copied it for my own tooling to make it work a bit better for my workflows.
      • onel4 hours ago
        Have you been using it? How useful do you find it?
    • latexr14 hours ago
      A better solution would be to read and understand the code before committing it.
      • hrmtst938376 hours ago
        Reading and understanding the code is essential, but in a collaborative environment, reviewing AI-generated code can be complex. It&#x27;s about balancing trust in AI with the need for human oversight.
      • mandel_x14 hours ago
        People won’t do that, unfortunately. We are a dying breed (I hate it). I went against my own instincts and vibe code this, works as a proof of concept.<p>You can see the session (including my typos) and compare what was asked for and what you got.
        • kace9112 hours ago
          Your starting point is that people won’t read code, and you expect them to read someone’s llm session from git?
          • bonoboTP11 hours ago
            Another LLM will read it of course.
        • midnitewarrior12 hours ago
          Sounds like we&#x27;ve got an Ape Coder here!<p><a href="https:&#x2F;&#x2F;rsaksida.com&#x2F;blog&#x2F;ape-coding&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rsaksida.com&#x2F;blog&#x2F;ape-coding&#x2F;</a>
          • dang11 hours ago
            Related ongoing thread:<p><i>Ape Coding [fiction]</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47206798">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47206798</a> - March 2026 (93 comments)
        • add-sub-mul-div12 hours ago
          Personally, I&#x27;m not going to be complicit in reshaping the field around the lazy and undisciplined.
    • hrmtst938377 hours ago
      Capturing the AI session is practical for maintaining context during reviews. It will help when tracing back through history after the fact.
    • midnitewarrior12 hours ago
      I already invented this in my head, thanks for not making me code it.<p>Excellent idea, I just wish GitHub would show notes. You also risk losing those notes if you rebase the commit they are attached to, so make sure you only attach the notes to a commit on main.
      • mandel_x12 hours ago
        I added an action that will add a comment with the notes in GitHub so that you can see them directly.<p>I did work around squash to collect all sessions and concatenate them as a single one
        • midnitewarrior11 hours ago
          Well done.<p>There is so much undefined in how agentic coding is going to mature. Something like what you&#x27;re doing will need to be a part of it. Hopefully this makes some impressions and pushes things forward.
  • lionkor7 hours ago
    Sone of the best engineers I&#x27;ve seen use commit messages to explain their intent, sometimes even in many sentences, below the message.<p>I bet, without trying to be snarky, that most AI users don&#x27;t even know you can commit with an editor instead of -m &quot;message&quot; and write more detail.<p>It&#x27;s good that AI fans are finding out that commits are important, now don&#x27;t reinvent the wheel and just spend a couple minutes writing each commit message. You&#x27;ll thank yourself later.
    • handfuloflight5 hours ago
      This gave me a good chuckle. Anyone doing &quot;good&quot; engineering with coding agents are having them write detailed, high signal, low noise git commits... it&#x27;s table stakes.
  • xhcuvuvyc10 hours ago
    No? For the same reason I don&#x27;t want to work 8 hours a day with the boss looking over my shoulder.
  • kzahel7 hours ago
    I would love to be able to share all my sessions automatically. But I would want to share a carefully PII&#x2F;secrets redacted session. I added a &quot;session sharing&quot; feature to my agent wrapper that just grabs innerHTML and uploads to cloudflare. So I can share how I produced&#x2F;vibe coded an entire project from start to finish.<p>For example: <a href="https:&#x2F;&#x2F;github.com&#x2F;kzahel&#x2F;PearSync&#x2F;blob&#x2F;main&#x2F;sessions&#x2F;sessions.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kzahel&#x2F;PearSync&#x2F;blob&#x2F;main&#x2F;sessions&#x2F;sessio...</a><p>I think it&#x27;s valuable to share that so people who are interested can see how you interact with agents. Sharing raw JSONL is probably a waste and contains too many absolute paths and potential for sharing unintentionally.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;peteromallet&#x2F;dataclaw?tab=readme-ov-file#give-this-to-your-agent" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;peteromallet&#x2F;dataclaw?tab=readme-ov-file#...</a> is one project I saw that makes an attempt to remove PII&#x2F;secrets. But I certainly wouldn&#x27;t share all my sessions right now, I just don&#x27;t know what secrets accidentally got in them.
  • ajam15072 hours ago
    Yes, please, it would solve the problem of the relentless HN discussions about how useful AI is for coding. We could actually see how productive people are using it.
  • vtemian7 hours ago
    Git was designed for humans.<p>Commits, branches, and the entire model works really well for human-to-human collaboration, but it starts to be too much for agent-to-human interactions.<p>Sharing the entire session, in a human, readble way, offering a rich experiences to other humans to understand, is way better then having git annotations.<p>That&#x27;s why we built <a href="https:&#x2F;&#x2F;github.com&#x2F;wunderlabs-dev&#x2F;claudebin.com" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;wunderlabs-dev&#x2F;claudebin.com</a>. A free and open-source Claude Code session sharing tool, which allows other humans to better understand decisions.<p>Those sessions can be shared in PR <a href="https:&#x2F;&#x2F;github.com&#x2F;vtemian&#x2F;blog.vtemian.com&#x2F;pull&#x2F;21" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vtemian&#x2F;blog.vtemian.com&#x2F;pull&#x2F;21</a>, embedded <a href="https:&#x2F;&#x2F;blog.vtemian.com&#x2F;post&#x2F;vibe-infer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.vtemian.com&#x2F;post&#x2F;vibe-infer&#x2F;</a> or just shared with other humans.
  • kaycey20224 hours ago
    This feels woefully inadequate. It should be saving everything. Not just the prompts and replies, but also the tool calls and skill invocations. If that is too much, then why even save anything in the session?<p>Right now this paradigm is so novel to us that we don’t know if what is being saved is useful in anyway or just hoarding garbage.<p>There are some who (rightly IMO) just neatly squash their commits and destroy the working branch after merging. There are others who would rather preserve everything.
    • alansaber3 hours ago
      Given that LLM providers capture this information anyway, seems only fair to let the consumer do the same
  • causal12 hours ago
    If a car is used to get you somewhere, should you put the exhaust in bags to bring with you?
    • cyberax11 hours ago
      We use flight data recorders on airplanes, though.
    • mannanj12 hours ago
      Is session context car exhaust? Or is it the Event logs and code of the CPU&#x2F;car&#x27;s brains?
      • adampunk19 minutes ago
        It&#x27;s exhaust. Retrospectively, chat is essentially worthless. You&#x27;re going to chase hallucinations down conversations that maybe didn&#x27;t even impact code.
        • mannanj13 minutes ago
          I have difficulty believing chat is worthless.<p>And I think that not everyone will entertain or chase the hallucinations down. Or maybe enough non-hallucinations are chased that it is valuable.
  • Lerc7 hours ago
    I would say not, because it would lead some to think that what was said to the model represented what output was desired. While there is quite a bit of correlation with describing what you want with the output you receive, the nature of models as they stand mean you are not asking for what you want, you are crafting the text that elicits the response that you want. That distinction is important, and is model specific. Without keeping an archive of the entire model used to generate the output, the conversation can be very misleading.<p>Conversations may also be very non-linear. You can take a path attempting something, roll back to a fork in the conversation and take a different path using what you have learned from the models output. I think trying to interpret someone else&#x27;s branching flow would be more likely to create an inaccurate impression than understanding.
  • nomilk5 hours ago
    The way I&#x27;ve been storing prompts is a directory in the project called &#x27;prompts&#x27; and an .md file for each topic&#x2F;feature. Since I usually iterate a lot on the same prompt (to minimise context rot), I store many versions of the same prompt ordered chronologically (newest at top).<p>That way if I need to find a prompt from some feature from the past, I just find the relevant .md file and it&#x27;s right at the top.<p>Interestingly, my projects are <i>way</i> better documented (via prompts) than they ever were in the pre-agentic era.
  • hakanderyal10 hours ago
    I created a system which I call &#x27;devlog&#x27;. Agent summarizes what it did &amp; how it did in a concise file, and its gets committed along with first prompt and the plan file if any. Later due to noise &amp; volume, I started saving those in a database and adding only devlog id to commit nowadays.<p>Now whenever I need to reason with what agent did &amp; why, info is linked &amp; ready on demand. If needed, session is also saved.<p>It helps a lot.
  • D-Machine8 hours ago
    An important consideration somewhat missing in discussion in this thread: if we don&#x27;t carefully document AI-assisted coding sessions, how can we ever hope to improve our use of AI coding tools?<p>This applies both to future AI tools and also experts, and experts instructing novices.<p>To some degree, the lack of documenting AI sessions is also at the core of much of the skepticism toward the value of AI coding in general: there are so many claims of successes &#x2F; failures, but only a vanishingly small amount of actual detailed receipts.<p>Automating the documentation of <i>some</i> aspects of the sessions (skills + prompts, at least) is something both AI skeptics and proponents ought to be able to agree on.<p>EDIT: Heck, if you also automate documenting the <i>time</i> spent prompting and waiting for answers and&#x2F;or code-gen, this would also go a long way to providing really concrete evidence for &#x2F; against the various claims of productivity gains.
  • brainlounge8 hours ago
    The more fundamental question is: Is there information in the AI-coding session that should be preserved? Only if the answer is &quot;yes&quot;, the next question becomes: Where do we store that data?<p>git is only one possible location.<p>I think there is very valuable information in session logs, like the prompts, or the usage statistics at the end of the session, which model was used etc. But git history or the commit messages should focus on the outcome of the work, not on the process itself. This is why the whole issue discussion before work in git starts is also typically kept separately in tickets. Not in git itself, but close to it.<p>There&#x27;re platforms like tulpal.com which move the whole local agent-supported process to the server and therefore have much better after-the-fact observability in what happened.
  • voidUpdate3 hours ago
    People keep talking about how LLMs are like a compiler from human language to code. We commit source code instead of just compiled machine code, so why should this be any different? The &quot;source code&quot; is the prompts
    • criley23 hours ago
      The prompt isn&#x27;t very useful. You&#x27;d see the exact same prompt on every ticket for me.<p>Prompt 1: &quot;Research &lt;X&gt; domain, think deeply, and record a full analysis in &#x2F;docs&#x2F;TICKET-123-NOTES.md&quot;<p>Prompt 2: Based on our research, read TICKET-123 and began formulating solutions. Let&#x27;s think this problem through and come up with multiple potential solutions. Document our solutions in TICKET-123-SOLUTIONS.md<p>Prompt 3: Based on Solution X, let&#x27;s formulate a complete plan to implement. Break the work into medium sized tasks that a human could complete in 5-10 hours. Write our plan in TICKET-123-PLAN.md<p>I&#x27;ve often thought that some of this metadata, such as the research, solutioning and plan could be shared. I think they&#x27;re valuable for code review. I&#x27;ve also translated these artifacts into other developer documentation paradigms.<p>But the prompts? You&#x27;re not getting a lot of value there.
      • lelanthran3 hours ago
        &gt; Prompt 1: &quot;Research &lt;X&gt; domain, think deeply, and record a full analysis in &#x2F;docs&#x2F;TICKET-123-NOTES.md&quot;<p>&gt; Prompt 2: Based on our research, read TICKET-123 and began formulating solutions. Let&#x27;s think this problem through and come up with multiple potential solutions. Document our solutions in TICKET-123-SOLUTIONS.md<p>&gt; Prompt 3: Based on Solution X, let&#x27;s formulate a complete plan to implement. Break the work into medium sized tasks that a human could complete in 5-10 hours. Write our plan in TICKET-123-PLAN.md<p>Sounds to me that all these 10x - 100x &quot;engineers&quot; can be removed from the loop.
        • criley23 hours ago
          Almost! We are certainly on the precipice of the vast majority of white collar work being removed from the loop.<p>However, what each domain will tell you (engineering included) is that AI doesn&#x27;t understand the full context of what you&#x27;re doing and the point of the business and where to spend effort and where to cut corners. There is definitely still room for competent engineers to iterate here on the solutioning and plans to refine the AI work into something more sturdy.<p>Although this is only in domains where code quality truly matters. A lot of consumer software without SLA&#x27;s are just vibe coding full speed now. No code review, AI writing 100% of the code.
          • voidUpdate3 hours ago
            Judging by what I&#x27;ve seen recently, 100% LLM code is often buggy and not that great. I&#x27;d say code quality truly matters in all domains
            • criley22 hours ago
              What a utopia, where code quality matters in all domains!<p>In my opinion nearly the opposite is true: modern business solves for the &quot;minimum viable quality&quot;. What is the absolute lowest quality the software can be and not tank the business.
              • ajam15072 hours ago
                If you could prove what &quot;minimum viable quality&quot; actually was this would be true. We have standards and procedures exactly because it is unknowable. One engineers idea of &quot;good enough&quot; might bankrupt the business.
              • voidUpdate2 hours ago
                Maybe you&#x27;re different, but I prefer to write code that at least attempts to be performant, tidy and readable, as well as working at least 90% of the time. Maybe I don&#x27;t achieve perfection, but I try to care about the quality of what I write
              • lelanthran2 hours ago
                &gt; What a utopia, where code quality matters in all domains!<p>It does. The degree may not, though.<p>&quot;We have a threshold of at least 5 hours total uptime every 24 hours&quot; is still a quality bar, even if it is different to &quot;We have a threshold of 99.99% uptime per year&quot;.
  • gingersnap7 hours ago
    My instinct is to say that I don&#x27;t want the session as part of the commit. For me that is like a Slack thread discussing the new feature, and that is not something I would commit. I think that the split shouldn&#x27;t be &quot;is this done with a machine&quot;=&gt; commit, I think the split for AI should be the same as before. Is it code or changes of code, then it should be included. Is it discussing, going back and forth, that is not commited now. On the other hand, if you do a plan that is then implemented, I actually do think it makes sense to save the plan, either as commit, or if you save that back to the issue.
  • micw9 hours ago
    IMO it depends a bit, but in most cases: No!<p>If you do proper software development (planing, spec, task breakdown, test case spec, implementation, unit test, acceptance test, ...) implementation is just a single step and the generated artifact is the source code. And that&#x27;s what needs to be checked in. All the other artifacts are usually stored elsewhere.<p>If you do spec and planing with AI, you should also commit the outcome and maybe also the prompt and session (like a meeting note on a spec meeting). But it&#x27;s a different artifact then.<p>But if you skip all the steps and put your idea directly to an coding agent in the hope that the result is a final, tested and production ready software, you should absolutely commit the whole chat session (or at least make the AI create a summary of it).
    • ffsm89 hours ago
      LLMs frequently hallucinate and go off on wild goose chases. It&#x27;s admittedly gotten a lot better, but it still happens.<p>From that perspective alone the session would be important meta information that could be used to determine the rationale of a commit - right from the intent (prompt) to what the harness (Claude code etc) made of it. So there is more value in keeping it even in your second scenario
      • micw7 hours ago
        I try to use AI incremental and verify each result. If it goes mad, I just revert and start over. It&#x27;s a bit slower but ensures consistency and correctness and it&#x27;s still a huge improvement over doing everything manually.
  • jumploops8 hours ago
    I&#x27;ve been experimenting with a few ways to keep the &quot;historical context&quot; of the codebase relevant to future agent sessions.<p>First, I tried using simple inline comments, but the agents happily (and silently) removed them, even when prompted not to.<p>The next attempt was to have a parallel markdown file for every code file. This worked OK, but suffered from a few issues:<p>1. Understanding context beyond the current session<p>2. Tracking related files&#x2F;invocations<p>3. Cold start problem on an existing codebases<p>To solve 1 and 3, I built a simple &quot;doc agent&quot; that does a poor man&#x27;s tree traversal of the codebase, noting any unknowns&#x2F;TODOs, and running until &quot;done.&quot;<p>To solve 2, I explored using the AST directly, but this made the <i>human</i> aspect of the codebase even less pronounced (not to mention a variety of complex edge-cases), and I found the &quot;doc agent&quot; approach good enough for outlining related files&#x2F;uses.<p>To improve the &quot;doc agent&quot; cold start flow, I also added a folder level spec&#x2F;markdown file, which in retrospect seems obvious.<p>The main benefit of this system, is that when the agent is working, it not only has to change the source code, but it has to reckon with the explanation&#x2F;rationale behind said source code. I haven&#x27;t done any rigorous testing, but in my anecdotal experience, the models make fewer mistakes and cause less regressions overall.<p>I&#x27;m currently toying around with a more formal way to mark something as a human decision vs. an agent decision (i.e. this is very important vs. this was just the path of least resistance), however the current approach seems to work well enough.<p>If anyone is curious what this looks like, I ran the cold start on OpenAI&#x27;s Codex repo[0].<p>[0]<a href="https:&#x2F;&#x2F;github.com&#x2F;jumploops&#x2F;codex&#x2F;blob&#x2F;file-specs&#x2F;codex-rs&#x2F;cli&#x2F;src&#x2F;login.rs.spec.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jumploops&#x2F;codex&#x2F;blob&#x2F;file-specs&#x2F;codex-rs&#x2F;...</a>
  • alainrk10 hours ago
    My complete reasoning, notes, errors have never been part of the commit. I don&#x27;t see a valid reason on why the raw conversation must be included. Rather I have hooks (or just &quot;manually&quot; invoked) to process all of it and update the relevant documentation that I&#x27;ve been putting under docs&#x2F;.
    • D-Machine10 hours ago
      If you also ensure the AI writes relevant (and correct) docs, and also code comments and commit message, then I agree there is not much need for extra info, e.g. prompts &#x2F; session distillation. I am not sure that that is the case currently (though we might be getting there soon at least in some cases).
      • alainrk9 hours ago
        Agree with this, I&#x27;ve been testing how AGENTS.md and similar can do to automatically have these behaviours and I feel (it&#x27;s just feeling) it&#x27;s been improving over time. Clearly depends a lot on the agent, the model, the codebase size and so on.
        • D-Machine9 hours ago
          Yup. Realistically there will always be simple changes that AI can handle completely (docs, comments, and commit message), and other changes where some human input will be hugely valuable.<p>Until then, it makes sense to automatically include <i>some</i> distillation of the AI generation process, by default, IMO.
  • umairnadeem12310 hours ago
    IMO this is solving the wrong problem. the session log is just noise - its like attaching your google search history to a stackoverflow answer to &quot;prove&quot; you did the research. nobody wants to read 500 lines of an agent going back and forth debugging a race condition.<p>the actual problem is that AI produces MORE code not better code, and most people using it aren&#x27;t reviewing what comes out. if you understood the code well enough to review it properly you wouldn&#x27;t need the session log. and if you didn&#x27;t understand it, the session log won&#x27;t help you either because you&#x27;ll just see the agent confidently explaining its own mistakes.<p>&gt; have your agent write a commit message or a documentation file that is polished and intended for consumption<p>this is the right take. code review and commit messages matter more now than they ever did BECAUSE there&#x27;s so much more code being generated. adding another artifact nobody reads doesn&#x27;t fix the underlying issue which is that people skip the &quot;understand what was built&quot; step entirely.
  • PeterStuer4 hours ago
    The session might contain many artifacts that are not suited for open sourcing. The additional fine grained curation effort required might be more of an obstacle to open sourcing than the perceived benefits.<p>That said preserved private session records might be of great personal benefit.
  • daemonk12 hours ago
    I did this in the beginning and realized I never went back to it. I think we have to learn to embrace the chaos. We can try to place a couple of anchors in the search space by having Claude summarize the code base every once in a while, but I am not sure if even that is necessary. The code it writes is git versioned and is probably enough to go on.
    • xhcuvuvyc10 hours ago
      Just get it to write more comments about reasoning as you go.
    • esafak10 hours ago
      It is a great way to document your thinking. I think we should get in the habit of checking conversations in with git notes or something.
  • akoskomuves3 hours ago
    I&#x27;ve done something similar with full analytics and options to add the full team. <a href="https:&#x2F;&#x2F;getpromptly.xyz" rel="nofollow">https:&#x2F;&#x2F;getpromptly.xyz</a>
  • ramoz12 hours ago
    We think so as well with emphasis on &quot;why&quot; for commits (i.e. intent provenance of all decisions).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;eqtylab&#x2F;y" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eqtylab&#x2F;y</a> <i>just a prototype, built at codex hackathon</i><p>The barrier for entry is just including the complete sessions. It gets a little nuanced because of the sheer size and workflows around squash merging and what not, and deciding where you actually want to store the sessions. For instance, get notes is intuitive; however, there are complexities around it. Less elegant approach is just to take all sessions in separate branches.<p>Beyond this, you could have agents summarize an intuitive data structure as to why certain commits exist and how the code arrived there. I think this would be a general utility for human and AI code reviewers alike. That is what we built. Cost &#x2F;utility need to make sense. Research needs to determine if this is all actually better than proper comments in code
    • handfuloflight4 hours ago
      Why is this so complicated? Store a session id that points to the full conversation artifacts (off repo) with the git commit and look it up ad hoc as needed. Why do the conversations need to be in the git repos?
  • otar10 hours ago
    In the ideal world a specification file should be committed to the repository and then linked to the PR&#x2F;commit. But it slows you down and is no longer a vibe coding?<p>Soon only implementation details will matter. Code can be generated based on those specifications again and again.
    • brendanmc610 hours ago
      I agree, and am so captivated with the idea that I decided to build a whole toolkit around it. Would be very keen to get feedback if anyone wants to try it when it’s ready.<p><a href="https:&#x2F;&#x2F;acai.sh" rel="nofollow">https:&#x2F;&#x2F;acai.sh</a><p>So far this workflow is the only way I’ve been able to have any real success running parallel agents or assigning longer running tasks that don’t get thrown out.
  • bloomca7 hours ago
    I don&#x27;t think it&#x27;s worth to include the session -- it would bloat the context too much anyway.<p>However, I do think that a higher-level description of every notable feature should be documented, along with the general implementation details. I use this approach for my side projects and it works fairly well.<p>The biggest question whether it will scale, I suspect that no, and I also suspect it is probably better to include nothing than a poor&#x2F;disjointed&#x2F;rare documentation of the sessions.
  • crossroadsguy10 hours ago
    Goodness no! Sometimes I literally SHOUT at these agents&#x2F;chats and often stoop down to using cuss words, which I am not proud of, but surprisingly it has shown to work here and there. As real as that is, I&#x27;d not want that on record in a commit.
  • daxfohl12 hours ago
    I think so. If nothing else, when you deploy and see a bug, you can have a script that revives the LLMs of the last N commits and ask &quot;would your change have caused this?&quot; Probably wouldn&#x27;t work or be any more efficient than a new debugging agent most of the time, but it might sometimes and you&#x27;d have a fix PR ready before you even answered the pager, and a postmortem that includes WHY it did so, and a prompt to prevent that behavior in the future. And it&#x27;s cheap, so why not.<p>Maybe not a permanent part of the commit, but something stored on the side for a few weeks at a time. Or even permanently, it could be useful to go back and ask, &quot;why did you do it <i>that</i> way?&quot;, and realize that the reason is no longer relevant and you can simplify the design without worrying you&#x27;re breaking something.
  • natex8412 hours ago
    If the model in use is managed by a 3rd party, can be updated at will, and also gives different output each time it is interacted with, what is the main benefit?<p>If I chat with an agent and give an initial prompt, and it gets &quot;aspect A&quot; (some arbitrary aspect of the expected code) wrong, I&#x27;ll iterate to get &quot;aspect A&quot; corrected. Other aspects of the output may have exactly matched my (potentially unstated) expectation.<p>If I feed the initial prompt into the agent at some later date, should I expect exactly &quot;aspect A&quot; to be incorrect again? It seems more likely the result will be different, maybe with some other aspects being &quot;unexpected&quot;. Maybe these new problems weren&#x27;t even discussed in the initial archived chat log, since at that time they happened to be generated in a way in alignment with the original engineers expectation.
    • bear3r12 hours ago
      reproducibility isn&#x27;t really the goal imo. more like a decision audit trail -- same reason code comments have value even though you can&#x27;t regenerate the code from them. six months later when you&#x27;re debugging you want to know &#x27;why did we choose this approach&#x27; not &#x27;replay the exact conversation.&#x27;
    • fragmede12 hours ago
      Because intent matters and 6 months or 3 years down the line and it&#x27;s time to refactor, and the original human author is long gone, there&#x27;s a difference if the prompt was &quot;I need a login screen&quot; vs &quot;I need a login screen, it should support magic link login and nothing else&quot;.
      • superturkey65012 hours ago
        Isn’t that point of design docs and not the commit log?
  • zkmon5 hours ago
    Source code repositories such as git are for &quot;sources&quot; which are direct outputs of human effort. Sny generated stuff is not &quot;source&quot;. It is same as the outputs of compile and build activities. Only the direct outputs of human effort should go into git.
  • root_axis11 hours ago
    This seems wrong, like committing debug logs to the repo. There&#x27;s also lots of research showing that models regularly produce incorrect trace tokens even with a correct solution, so there&#x27;s questionable value even from a debugging perspective.
  • ryan_velazquez4 hours ago
    If the agent is like a compiler, show me the source code.<p>I&#x27;m not sure about becoming part of the repo&#x2F;project long term but I think providing your prompts as part of the pull request makes the review much easier because the reviewer can quickly understand your _intent_. If your intent has faulty assumptions or if the review disagrees with the intent, that should be addressed first. If the intent looks good, a reviewer can then determine if you (or your coding agent) have actually implemented it first.
  • fladrif10 hours ago
    I think this is a lot of &quot;kicking can down the road&quot; of not understanding what code the ai is writing. Once you give up understanding the code that is written there is no going back. You can add all the helper commit messages, architecture designs, plans, but then you introduce the problem of having to read all of those once you run into an issue. We&#x27;ve left readability on the wayside to the alter of &quot;writeability&quot;.<p>The paradigm shift, which is a shift back, is to embrace the fact that you have to slow down, and understand all the code the ai is writing.
  • willbeddow9 hours ago
    Increasingly, I&#x27;d like the code to live alongside a journal and research log. My workflow right now is spending most of my time in Obsidian writing design docs for features, and then manually managing claude sessions that I paste them back and forth into. I have a page in obsidian for each ongoing session, and I record my prompts, forked paths, thoughts on future directions, etc. It seems natural that at some point this (code, journal, LLM context) will all be unified.
  • visarga9 hours ago
    Yes, it should remain part of the commit, and the work plan too, including judgements&#x2F;reviews done with other agents. The chat log encodes user intent in raw form, which justifies tasks which in turn justify the code and its tests. Bottom up we say the tests satisfy the code, which satisfies the plan and finally the user intent. You can do the &quot;satisfied&#x2F;justified&quot; game across the stack.<p>I only log my own user messages not AI responses in a chat_log.md file, which is created by user message hook in the repo.
  • rhgraysonii9 hours ago
    I think the decisions it made along the way are worth tracking. And it’s got some useful side effects with regard to actually going through the programming and architecture process. I made a tool that really helps with this and finds a pretty portable middle ground that can be used by one person or a team too, it’s flexible. <a href="https:&#x2F;&#x2F;deciduous.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;deciduous.dev&#x2F;</a>
  • Marlinski4 hours ago
    If there was a standardized way to save this information, and tie it up to each commits, it would be insanely useful to amass a very valuable training dataset.
  • dizlexic39 minutes ago
    No
  • burntoutgray13 hours ago
    YES! The session becomes the source code.<p>Back in the dark ages, you&#x27;d &quot;cc -s hello.c&quot; to <i>check</i> the assembler source. With time we stopped doing that and hello.c became the originating artefact. On the same basis the session becomes the <i>originating artefact</i>.
    • lich_king12 hours ago
      I&#x27;m not sure this analogy holds, for two reasons. First, even in the best case, chain-of-thought transcripts don&#x27;t reliably tell you what the agent is doing and why it&#x27;s doing it. Second, if you&#x27;re dealing with a malicious actor, the transcript may have no relation to the code they&#x27;re submitting.<p>The reason you don&#x27;t have to look at assembly is that the .c file is essentially a 100% reliable and unambiguous spec of how the assembly will look like, and you will be generating the assembly from that .c file as a part of the build process anyway. I don&#x27;t see how this works here. It adds a lengthy artifact without lessening the need for a code review. It may be useful for investigations in enterprise settings, but in the OSS ecosystem?...<p>Also, people using AI coding tools to submit patches to open-source projects are weirdly hesitant to disclose that.
    • WD-4212 hours ago
      This is only true if a llm session would produce a deterministic output which is not the case. This whole “LLMs are the new compiler” argument doesn’t hold water.
      • bonoboTP11 hours ago
        &quot;Deterministic&quot; is not the issue either, it&#x27;s that small changes of the input will cause unknown changes in the output. You might theoretically achieve determinism and reproducibility for the exact same input (seeding the random number generators etc.), but the issue is that even if you formulate your request just a little differently, by changing punctuation for example, you&#x27;ll get an entirely different output.<p>With compilers, the rules are clear, e.g. if you replace variable names with different ones, the program will still do the same thing. If you add spaces in places where whitespace doesn&#x27;t matter, like around operators, the resulting behavior will still be the same. You change one function&#x27;s definition, it doesn&#x27;t impact another function&#x27;s definition. (I&#x27;m sure you can nitpick this with some edge case, but that&#x27;s not the point, it overwhelmingly can be relied upon in this way in day to day work.)
    • sumeno12 hours ago
      cc was deterministic, you could be confident that the same code produced the same assembly each time you ran it<p>That is very much not the case with LLMs
    • ehnto12 hours ago
      LLMs are non-deterministic, you would end up with a different output even if you paste the same conversation in. Even if the model was identical at the time you tried to reproduce it. Which gets less likely as time passes.<p>Also, why would you need to reproduce it? You have the code. Almost any modification to said code would benefit from a fresh context and refined prompt.<p>An actual full context of a thinking agent is asinine, full of busy work, at best if you want to preserve the &quot;reason&quot; for the commits contents maybe you could summarise the context.<p>Other than that I see no reason to store the whole context per commit.
  • jillesvangurp7 hours ago
    I think that&#x27;s covered by the YAGNI rule. It has very little value that rapidly drops off as you commit more code. Maybe some types of software you might want to store some stuff for compliance&#x2F;auditing reasons. But beyond that, I don&#x27;t see what you would use it for.
  • reflectt9 hours ago
    The session capture problem is harder than it looks because you need to capture intent, not steps.<p>A coding session has a lot of &#x27;left turn, dead end, backtrack&#x27; noise that buries the decision that actually mattered. Committing the full session is like committing compiler output — technically complete, practically unreadable.<p>We&#x27;ve been experimenting with structured post-task reflections instead: after completing significant work, capture what you tried, what failed, what you&#x27;d do differently, and the actual decision reasoning. A few hundred tokens instead of tens of thousands. Commits with a reflection pointer rather than an embedded session.<p>The result is more useful than raw logs. Future engineers (or future AI sessions) can understand intent without replaying the whole conversation. It&#x27;s closer to how good commit messages work — not &#x27;here&#x27;s what changed&#x27; but &#x27;here&#x27;s why&#x27;.<p>Dang&#x27;s point about there being no single session is also real. Our biggest tasks span multiple sessions and multiple contributors. &#x27;Capture the session&#x27; doesn&#x27;t compose. &#x27;Capture the decision&#x27; does.
    • D-Machine9 hours ago
      Something like &quot;it is important to document core &#x2F; crucial prompts somewhere&quot; covers it. Whether this should be in git or elsewhere is trickier, but doing vibe-coding without documenting any aspect of the process is a recipe for disaster.<p>Also, how can we (or future AI models) hope to improve if there is only limited and summary documentation of AI usage?
  • galaxyLogic5 hours ago
    Couldn&#x27;t AI write the commit-message based on the prompts-history up till the commit thus making it easier to understand for any future reviewers what lead to and what is in a specific commit?
  • kkarpkkarp9 hours ago
    For my own projects in private repos I would benefit from exporting the session. For example if I need to return to the task, it could be great to give it as a context<p>For my work as one of developers in team, no. The way I prompt is my asset and advantage over others in a team who always complain about AI not being able to provide correct solutions and secures my career
  • saratogacx11 hours ago
    I&#x27;ve gotten into the habit of having the LLM produce a description of their process and summarize the change, Than I add that along with the model I used after my own commit message. It lets me know where I use AI and what I thought it did as well as what I thought it did.<p>The entire prompt and process would be fine if my git history was subject to research but really it is a tool for me or anyone else who wants to know what happened at a given time.
  • phyzix57619 hours ago
    Have AI explain the reasoning behind the PR. I don&#x27;t think people really care about your step by step process but reviewers might care about your approach, design choices, caveats, and trade offs.<p>That context could clarify the problem, why the solution was chosen, key assumptions, potential risks, and future work.
  • segmondy8 hours ago
    It&#x27;s already bad enough that people are saying there&#x27;s too much code to read and review. You want to add session to it? Running it again, might not yield the same output. These models are non deterministic and models are often changed and upgraded.
    • D-Machine7 hours ago
      Part of the reason there is too much code to read and review is because we lack the information to contextualize that code.<p>In many cases, seeing the prompts would help to dramatically speed up rejecting lazy slop PRs (or accepting more careful AI-assisted PRs).
  • atmosx5 hours ago
    It is a useful piece of information, but the session is not “long lived” in terms of git commit history lifetime.
  • wiseowise6 hours ago
    No, because if AI is set to replace a human – their prompting skill and approach are the only things differentiating them from the rest of the grey mass.
  • flammafex1 hour ago
    No. Make me.
  • rcy12 hours ago
    I haven&#x27;t adopted this yet, but have a feeling that something like this is the right level of recording the llm contribution &#x2F; session <a href="https:&#x2F;&#x2F;blog.bryanl.dev&#x2F;posts&#x2F;change-intent-records" rel="nofollow">https:&#x2F;&#x2F;blog.bryanl.dev&#x2F;posts&#x2F;change-intent-records</a>
    • 4b11b411 hours ago
      I like it, but it seemed test could capture some of these &quot;behaviors&quot;. But having it in a single document is helpful for context
  • heavyset_go9 hours ago
    If you need LLM sessions included to understand or explain commits, you&#x27;re doing something wrong.<p>Saving sessions is even more pointless without the full context the LLM uses that is hidden from the user. That&#x27;s too noisy.
  • travisgriggs12 hours ago
    In our (small) team, we’ve taken to documenting&#x2F;disclosing what part(s) of the process an LLM tool played in the proposed changes. We’ve all agreed that we like this better, both as submitters and reviewers. And though we’ve discussed why, none of us has coined exactly WHY we like this model better.
  • tezza7 hours ago
    I put a link to the LLM session at the end of the commit, and prefix with POH: if I wrote it by hand.<p>POH = Plain Old Human<p>Easy to achieve.<p>Why NOT include a link back? Why deprive yourself of information?
  • genghisjahn11 hours ago
    If you can, run several agents. They document their process. Trade offs considered, reasoning. Etc. it’s not a full log of the session but a reasonable history of how the code came to be. Commit it with the code. Namespace it however you want.
  • stopthe4 hours ago
    No. Even further than that, maintaining AGENTS.md and the like in your company repo, you basically train your own replacement. Which replacement will not be as capable as you in the long run, but few businesses will care. Anyway having some representation of an employee&#x27;s thinking definitely lowers cost of firing that employee.<p>That is a cynical take and not very different from an advice to never write any documentation, or never help your teammates. Only that resemblance is superficial. In any organization you shouldn&#x27;t help people stealing you time for their benefit (Sean Goedecke calls them predators <a href="https:&#x2F;&#x2F;www.seangoedecke.com&#x2F;predators&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.seangoedecke.com&#x2F;predators&#x2F;</a>).<p>On the other hand, it may be beneficial to privately save CLAUDE.md and other parts of persistent context. You may gitignore them (but that will be conspicuous unless you also gitignore .gitignore) or just load them from ~&#x2F;.claude<p>I expect an enterprise version of Claude Code that will save any human input to the org servers for later use.
  • westurner1 hour ago
    &quot;Pulp Project Policy on AI Generated Content &#x2F; AI Assisted Coding&quot; <a href="https:&#x2F;&#x2F;github.com&#x2F;pulp#pulp-project-policy-on-ai-generated-content--ai-assisted-coding" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pulp#pulp-project-policy-on-ai-generated-...</a> :<p>&gt; [...]<p>&gt; <i>All contributors must indicate in the commit message of their contribution if they used AI to create them and the contributor is fully responsible for the content that they submit.<p>&gt; </i>This can be a label such as `Assisted By: &lt;Tool&gt;` or `Generated by: &lt;Tool&gt;` based on what was used. This label should be representative of the contribution and how it was created for full transparency. The commit message must also be clear about how it is solving a problem&#x2F;making an improvement if it is not immediately obvious.*<p>From &quot;Entire: Open-source tool that pairs agent context to Git commits&quot; (2026) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46964096">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46964096</a> :<p>&gt; <i>But which metadata is better stored in git notes than in a commit message? JSON-LD can be integrated with JSON-LD SBOM metadata</i>
  • ChicagoDave7 hours ago
    The last 5 sessions. Beyond that I archive them outside the repo. But I do save them for review and summaries.
  • DonThomasitos8 hours ago
    Everything in git can and must be merge-able when merging branches. After all, git is a collaboration tool, not a undo-redo stack.
  • dolebirchwood7 hours ago
    I drop a lot of F-bombs and other unpleasantries when I talk to the robots, so I&#x27;d rather not.
  • dekken_2 hours ago
    &gt; AI writes code<p>you mean plagiarism?
  • ekjhgkejhgk6 hours ago
    If a person writes code, should all the process be part of the commit?
  • darepublic9 hours ago
    If a human writes code, should the jira ticket be part of the commit? I am actually thinking about potential merits.
  • danhergir14 hours ago
    One of the use cases i see for this tool is helping companies to understand the output coming from the llm blackbox and the process which the employee took to complete a certain task
    • rerdavies11 hours ago
      Except it doesn&#x27;t capture the majority of uses of AI, in my experience. In my current practice, the the vast majority of AI use is autocompletions, or small inline prompts. (&quot;Fix this error.&quot;; &quot;Open an ALSA midi connection&quot; (things that avoid a to trip into awful documentation); &quot;if (one of the query parameters is &quot;gear=&#x27;ir&#x27;) ...&quot; (things that break flow by forcing a trip into excellent but overly verbose Javascript URL API documentation)). Only very occasionally will I prompt for a big chunk of code.
    • tartoran12 hours ago
      Why do that? Just let them deal with it.
  • alansaber3 hours ago
    If the full session capture is not encoded s.t it provides insight into architecture&#x2F;mistakes, what was the point? There needs to be 1. complete capture (all tool calls etc) as well as 2. which is also curated to be readable (collapsible, chronological, easy to navigate etc). A .txt dump of agent COT is not particularly useful to anyone aside from another agent.
  • grahar648 hours ago
    If AI could reliably write good code then you shouldn&#x27;t need to even commit the code as the general rule is you shouldn&#x27;t commit generated code. Commit the session when you don&#x27;t need to commit the code
  • FpUser2 hours ago
    I keep trunk of conversation internally. No way I am putting it on github. The way I think, plan, interrogate LLM is part of competitive advantage in the market. I consider it my property and I would not ever let my clients read it (I pay for my usage of AI). Never mind some juicy language and being super straight and apolitical in a corporate sense. basically would be a major privacy breach
  • hirako20009 hours ago
    What&#x27;s the value given answers are not deterministic.
  • stubbi11 hours ago
    Isn’t that what entire.io, founded by former GitHub CEO, is doing?
  • SamDc738 hours ago
    pre-ai if I had to include Google search queries in a commit, I’d be so embarrassed I’d probably never commit code like ever
  • jes51997 hours ago
    instead of committing code, we should just save videos of all of the zoom meetings about the code
  • jiveturkey12 hours ago
    <a href="https:&#x2F;&#x2F;entire.io" rel="nofollow">https:&#x2F;&#x2F;entire.io</a> thinks so
    • reg_dunlop12 hours ago
      Thank you! Was looking for this company. Founder was high up at GitHub. Really an interesting proposition
  • spion12 hours ago
    A summary of the session should be part of the commit message.
  • ares62314 hours ago
    Maybe Git isn&#x27;t the right tool to track the sessions. Some kind of new Semi-Human Intelligence Tracking tool. It will need a clever and shorter name though.
    • nomel12 hours ago
      I don&#x27;t think git is the right tool for much of modern software, where things like blobs aren&#x27;t even properly supported.
    • MengerSponge12 hours ago
      I like to have a cup of coffee before my morning commit.<p>Germans are much more diligent about staging before they commit.
    • jiveturkey12 hours ago
      How about Entire?<p><a href="https:&#x2F;&#x2F;techcrunch.com&#x2F;2026&#x2F;02&#x2F;10&#x2F;former-github-ceo-raises-record-60m-dev-tool-seed-round-at-300m-valuation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;techcrunch.com&#x2F;2026&#x2F;02&#x2F;10&#x2F;former-github-ceo-raises-r...</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46961345">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46961345</a>
  • Jach7 hours ago
    In general, no, but sometimes, yes, or at least linked from the commit the same way user stories&#x2F;issues are. Admittedly the &#x27;sometimes&#x27; from my perspective is mostly when there&#x27;s a need to educate fellow humans about what&#x27;s possible or about good prompt techniques and workarounds for the AI being dumb. It can also reveal more of x% by AI, y% by human by for example diffing the outputs from the session against the final commits.
  • rclabs9 hours ago
    hell to the no, in between coding sessions, I go out on plenty of sidebars about random topics that help <i>me</i>, the prompter understand the problem more. Prompts in this way are entirely related to context (pre-knowledge) that is not available to the LLMs.
  • anishgupta9 hours ago
    isn&#x27;t a similar thing done by entire cli? the startup which raised $60M seed recently
  • exfalso6 hours ago
    Nope. Especially with these agents the thinking trace can get very large. No human will ever read it, and the agent will fill up their context with garbage trying to look for information.<p>I understand the drive for stabilizing control and consistency, but this ain&#x27;t the way.
  • weli6 hours ago
    I agree so much
  • ETH_start5 hours ago
    In principle, the documentation that&#x27;s included in the code edit should have all the relevant information that a future agent would need.
  • mock-possum11 hours ago
    I’ve had the same thought, but after playing around with it, it just seems like adding noise. I never find myself looking at generated code and wondering “what prompt lead to that?” There’s no point, I won’t get any kind of useful response - I’m better off talking to the developer who committed it, that’s how code review works.
    • what10 hours ago
      The developer that committed won’t know because they didn’t write it…<p>You can avoid the noise with git notes. Add the session as a note on the commit. No one has to read them if they’re not interested.
  • lsc471912 hours ago
    Proof sketch is not proof
  • nautilus128 hours ago
    This would just record a lot of me cursing at and calling the AI an idiot.
  • globular-toast8 hours ago
    Like any discussion about AI there are two things people are talking about here and it&#x27;s not always clear which:<p>1. Using LLMs as a tool but still very much crafting the software &quot;by hand&quot;,<p>2. Just prompting LLMs, not reading or understanding the source code and just running the software to verify the output.<p>A lot of comments here seem to be thinking of 1. But I&#x27;m pretty sure the OP is thinking of 2.
  • foamzou12 hours ago
    No. Prompt-like document is enough. (e.g. skills, AGENTS.md)
  • igetspam8 hours ago
    Yes.<p>EOM
  • tayo429 hours ago
    I feel like publishing the session is like publishing a sketch book. I don&#x27;t need all of my mistakes and dumb questions recorded.<p>If that was important, why are we not already doing things like this. Should I have always been putting my browser history in commits?
  • x3n0ph3n39 hours ago
    I include my &quot;plans&quot; and a link to my transcript on all my PRs that include AI-generated code. If nothing else, others on my team can learn from them.
  • dboreham10 hours ago
    I&#x27;ve thought about this, and I do save the sessions for educational purposes. But what I ended up doing is exactly what I ask developers to do: update the bug report with the analysis, plan, notes etc. In the case there&#x27;s a single PR fixing one bug, GitHub and Claude tend to prefer this information go in the PR description. That&#x27;s ok for me since it&#x27;s one click from the bug.
  • est8 hours ago
    obligatory: git notes<p>Lots of comments mentioned this, for those who aren&#x27;t aware, please checkout<p>Git Notes: Git&#x27;s coolest, most unloved­ feature (2022)<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44345334">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44345334</a><p>I think it&#x27;s a perfect match for this case.
  • hsuduebc212 hours ago
    I must say that would certainly show some funny converstaions in a log.
  • nicman235 hours ago
    no and neither should be the actual code. you should at least remove the excessive bs that the ai comments and autisms about
  • raggi11 hours ago
    nope. Someones going to leak important private data using something like this.<p>Consider:<p>&quot;I got a bug report from this user:<p>... bunch of user PII ...&quot;<p>The LLM will do the right thing with the code, the developer reviewed the code and didn&#x27;t see any mention of the original user or bug report data.<p>Now the notes thing they forgot about goes and makes this all public.
    • neomantra2 hours ago
      I agree with you, but also we will start sharing these conversation traces more and more. That&#x27;s why it is important for redaction to be in the export pipeline. There can be both deterministic (eg regex) and LLM-based redaction.
  • trailblaze2 hours ago
    [dead]
  • lidn124 hours ago
    [dead]
  • hackersk10 hours ago
    [dead]
  • adrian-vega6 hours ago
    [dead]