• RumRunningDevil@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    20 days ago

    To quote the research paper conclusion…

    Conclusion We evaluate the impact of context files on coding agent performance for four common coding agents on SWE-BENCH and the novel CTXBENCH, built from recent GitHub issues and less popular repositories containing developer-written context files. We find that all context files consistently increase the cost and number of steps required to complete tasks. LLM-generated context files have a marginal negative effect on task success rates, while developer-written ones provide a marginal performance gain, neither statistically significant. Our trace analyses show that instructions in context files are generally followed and lead to more test- ing and broader exploration; however, they do not function as effective repository overviews. Over- all, our results suggest that context files don’t improve coding agent performance, and should only contain specific additional instructions beyond what is already available in the codebase. This high- lights a concrete gap between current agent-developer recommendations and observed outcomes, and motivates future work on principled ways to automatically generate concise, task-relevant guid- ance for coding agents.

    That sounds like “Agents.MD doesn’t work” to me.

    Am I missing something?

      • RumRunningDevil@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        20 days ago

        What is the difference between the models writing code “well” and their performance in this context? Are we referring to readability?

        Genuine question. If we use agents to read, edit, and review code, why do we care about readability? That’s a human constraint. Unless attempting to do those three is not effective and thus requires human attention to correct issues which would justify readable code. If that’s the case; why use the agent to edit the code in the first place?

        • Feathercrown@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          19 days ago

          “Writing code well” includes several relavant things:

          • Security implications
          • Stability and edge case handling
          • Performance
          • Quality of output (ie. for UI/UX)
          • Readability (Agents need to read to make changes too! Violating DRY/SOLID/etc. could still cause issues!)

          As far as I’m aware you do currently still need a human to ensure stuff like this is followed. People use agents because they don’t care about the above, or because they can get close enough and intervene to fix any issues that appear.

    • brian@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 days ago

      your research paper:

      llm generated agent.md files are harmful. handwritten ones on average don’t have an effect on ability to complete a task

      thread article:

      agents keep signing off on commits wrong. we added it to the agents.md and now they don’t

      benchmarks notoriously don’t measure the likelihood that the results would be merged by maintainers, just that they passed a test

      the old style “repo map” agents.md files that every tool used to create is no longer useful, but of course things that would otherwise be repeated prompts are still good. I cut the ones at work down from hundreds of lines each to tens. without those last few lines the amount of iteration I do - both with agent and when reviewing PRs - goes up significantly