News for hackers. Stuff that matters.
Re:Aider: AI pair programming in your terminal by carom on Wednesday April 10, 2024 @06:27PM (#39996360)
How do you situate changes in a file? That seems like the hard part to me since the LLM can't necessary count to output a patch with line numbers.
Re:Aider: AI pair programming in your terminal by danenania on Wednesday April 10, 2024 @06:36PM (#39996418)
It does use line numbers, which definitely aren't infallible. That's why a `plandex changes` TUI is included to review changes before applying. Unfortunately no one has figured out a file update strategy yet that doesn't make occasional mistakes--probably we'll need either next-gen models or fine-tuning to get there.

That said, counting isn't necessarily required to use line numbers. If line numbers are included in the file when it's sent to the model, it becomes a text analysis task rather than a counting task. Here are the relevant prompts: https://github.com/plandex-ai/plandex/blob/main/app/server/m...

Re:Aider: AI pair programming in your terminal by stavros on Wednesday April 10, 2024 @07:22PM (#39996713)
Doesn't the software just give the LLM the line numbers?