3 ms·
> 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 o
by Zababa 3y ago
> 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
- mg 3y agoHow 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.