logoalt Hacker News

energy123yesterday at 1:57 PM2 repliesview on HN

I feel the baseline comparison should be relative to the intuitive and simple "line-numbers only" schema.

It's less token heavy than the proposed hash approach, and I don't think frontier LLMs hallucinate line numbers if each line in the context is prefixed with them.


Replies

withinboredomyesterday at 1:59 PM

The issue is when the file changed between when the LLM read the file and when it wrote to the file. Just using line numbers will clobber a file if that happens. The hashes prevent that from being an issue.

show 1 reply
kachapopopowyesterday at 2:42 PM

it starts writing to the wrong part of the file after multiple edits.