News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.