News for hackers. Stuff that matters.
Re:Continue will generate, refactor, and explain entire sect... by Zababa on Monday December 18, 2023 @07:04AM (#38681431)
> Giving the LLM a bit better tools, like a version of "cat" that prefixes the lines with numbers, and a "swap" command that can do "swap 179 250 ..." to swap out the lines 179 to 250 with "..." would probably be enough to empower the LLM to be pretty efficient.

ed is the standard (LLM) editor

Re:Continue will generate, refactor, and explain entire sect... by mg on Monday December 18, 2023 @07:32AM (#38681605)
How would ed help?

Say one of the files is talk.py and there is a function inside of it at line 17 which the LLM wants to change:

    17 def hello():
    18     print ("Hello!")
My approach would be to provide the LLM with a swap command, which takes filename, first line and last line and then treats the rest of the standard input as the new content:

    swap talk.py 17 18
    def hello(name):
        print(f"Hello {name}!")
My feeling is that this is the most efficient way for an LLM to code.