‹ BackHN Continuity

Thread

Markdown in /src

154 points · 99 comments · perrygeo

  1. aDyslecticCrow · · focus · HN ↗
    You've seen test-rot, specification rot, and documentation rot; we now introduce; prompt rot!

    Cluttering the repo with out-dated, very wordy and quickly aging prompts will just confuse any agent tasked with looking at the repo in the future. Keeping context windows down is a real limitation to good LLM output, and this workflow may work completely against it.

    - A plan.md describing the project, main abstraction idea, end costumer, and so on is great; but it should be kept minimal and up-to-date with the repo.

    - Block comments on top of source-files and functions are great, and already very useful to coding agents. I don't see a value to anything more than what is already typical best practice.

    1. xg15 · · focus · HN ↗
      I wonder if instead of checking the prompts into the repo as files, a better idea would be to store them inside the commit messages.

      If prompts are specifications for a change of the system's behavior, then it seems natural to manage them as changes and not as resources.

      This would also keep them in the right "historical context" of the repo and avoid the "prompt rot" you were talking about.

      1. boomlinde · · focus · HN ↗
        I am skeptical of adding anything but a brief description of the change, the reason for the change and possibly some explanation of non-obvious implementation choices to the commit message.

        The reason is that the commit message log serves as an overview of the changes commited. That's what humans use it for, anyway: to get an idea of what happened since they last pulled, to help give an idea of where a regression might have been introduced and so on, at a glance. To that end, brevity is very useful.

        My understanding is that chatbots used to perform such tasks will also benefit from brevity.

        1. xg15 · · focus · HN ↗
          Well, at least in Git, the commit message already has two sections.

          AFAIK, the first line is supposed to be the a very brief summary, while the other lines may contain additional information and can sometimes make up a pretty long text. Lots of tools make use of this convention and only show the first line if no detail information is needed.

          Most tools that show the history only show the first line of each commit.

          But I agree with you, this still assumes that long commit messages are rare and not that almost every commit has a huge message. Also, "long" doesn't mean you should put a novel in there.

          1. boomlinde · · focus · HN ↗
            I think long is fine if that's necessary to get a rough idea of what the change is about across. Discerning in the choice of what information to include is perhaps a better way to put it. In those terms we should consider how likely it is for prompts to be immediately useful information when browsing the commit history, and whether it can't instead be reduced to an informative summary.

            As far as specifications for changes go, the diff itself is as good a spec as it gets. It unambiguously describes the exact change that was made. The prompt you give a chatbot to make that change is IMO something else. Maybe it's more fair to call that a specification of the work you wanted it to perform.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.