Live data from Hacker News

Aider: AI pair programming in your terminal

github.com

51–60 of 170 posts

Re: Aider: AI pair programming in your terminal

#51

People interested in Aider (which is an awesome tool) might also be interested in checking out my project Plandex[1]. It's terminal-based like Aider and has a somewhat comparable set of features, but is more focused on using LLMs to work on larger and more complex tasks that span many files and model responses. It also uses a git-style CLI approach with independent commands for each action vs. Aider's interactive she…

Can we get someone to automate stuff like copying files, renaming stuff, setting env variables, any common tasks done in an OS.

You could do this with Plandex (or Aider... or ChatGPT) by having it output a shell script then `chmod +x` it and run it. I experimented early on with doing script execution like this in Plandex, but decided to just focus on writing and updating files, as it seemed questionable whether execution could be made reliable enough to be worthwhile without significant model advances. That said, I'd like to revisit it eventually, and some more constrained tasks like copying and moving files around are likely doable without full-on shell script execution, though some scary failure cases are possible here if the model gets the paths wrong in a really bad way.

OpenInterpreter is another project you could check out that is more focused on code/script execution: https://github.com/OpenInterpreter/open-interpreter

Re: Aider: AI pair programming in your terminal

#52

Earlier quoted context omitted.

Can we get someone to automate stuff like copying files, renaming stuff, setting env variables, any common tasks done in an OS.

You could do this with Plandex (or Aider... or ChatGPT) by having it output a shell script then `chmod +x` it and run it. I experimented early on with doing script execution like this in Plandex, but decided to just focus on writing and updating files, as it seemed questionable whether execution could be made reliable enough to be worthwhile without significant model advances. That said, I'd like to revisit it eventu…

I feel like what I am saying should be natively supported.

If youre worried about changes getting it wrong, just show a prompt with all the batched changes.

me > build my jar, move it to the last folder I copied it to, and run it. LLM > built jar xyz.jar moving jar to x/y/z me > yes. me > redo last command.

Provide rollback/log for these features if need be.

I really dont think you even need an LLM for this. I feel like I can do it with a simple classifier. It just needs to be hooked into to OS, so that it can scan what you were doing, and replicate it.

For example if I keep opening up folder x and dropping a file called build.jar to folder y, a program should be able to easily understand "copy the new jar over"

I imagine at point this is going to be done at the OS level

Re: Aider: AI pair programming in your terminal

#53
> GPT can write and edit code in most popular languages: python, javascript, typescript, html, css, etc.

I love how everyone always leaves PHP off these lists of "popular languages" despite the fact that 80% of the web runs on PHP.

Re: Aider: AI pair programming in your terminal

#54

Earlier quoted context omitted.

You could do this with Plandex (or Aider... or ChatGPT) by having it output a shell script then `chmod +x` it and run it. I experimented early on with doing script execution like this in Plandex, but decided to just focus on writing and updating files, as it seemed questionable whether execution could be made reliable enough to be worthwhile without significant model advances. That said, I'd like to revisit it eventu…

I feel like what I am saying should be natively supported. If youre worried about changes getting it wrong, just show a prompt with all the batched changes. me > build my jar, move it to the last folder I copied it to, and run it. LLM > built jar xyz.jar moving jar to x/y/z me > yes. me > redo last command. Provide rollback/log for these features if need be. I really dont think you even need an LLM for this. I feel l…

It's a great concept and I agree it will definitely exist at some point, but working a lot with GPT-4 has made me viscerally aware of how many different ways something like "build my jar, move it to the last folder I copied it to, and run it" can be spectacularly misinterpreted, and how much context is needed for that command to have any hope of being understood. The other big issue is that there is no rollback for a `rm` or `mv` command that screws up your system.

I had similar ideas when I started on Plandex. I wanted it to be able to install dependencies when needed, move files around, etc., but I quickly realized that there's just so much the model needs to know about the system and its state to even have a chance of getting it right. That's not to say it's impossible. It's just a really hard problem and I'd guess the first projects/products to nail it will either come from the OS vendors themselves, or else from people focusing very specifically on that challenge.

Re: Aider: AI pair programming in your terminal

#55
post #53

> GPT can write and edit code in most popular languages: python, javascript, typescript, html, css, etc. I love how everyone always leaves PHP off these lists of "popular languages" despite the fact that 80% of the web runs on PHP.

PHP has had enormous staying power despite its idiosyncrasies.

I would however be curious to know what percentage of the 80% (or so) is WordPress et al. Since those largely don't involve folks actually writing code. I suspect a very small amount of PHP code is being run a lot.

Re: Aider: AI pair programming in your terminal

#56

People interested in Aider (which is an awesome tool) might also be interested in checking out my project Plandex[1]. It's terminal-based like Aider and has a somewhat comparable set of features, but is more focused on using LLMs to work on larger and more complex tasks that span many files and model responses. It also uses a git-style CLI approach with independent commands for each action vs. Aider's interactive she…

I _cannot_ wait for you to get local models working with this (I know, they need function calling/streaming first). It's amazing! I burned through $10 like it was nothing and bigger context+local is going to make this killer IMHO. It needs additional guidance and with more context maybe loading lint rules into the context would get back code matching my coding style/guide but even as-is there is a ton of value here.…

Thanks for trying it and your feedback. I'm keeping tabs on open source/local models and will include them as soon as it's feasible.

I hear you on the API costs. You should see my OpenAI bills from building Plandex :-/

Re: Aider: AI pair programming in your terminal

#57

Earlier quoted context omitted.

When we reach that world, let me know. I'm still tripping over a "python-lsp-server was simply not implemented async so sometimes when you combine it with emacs lsp-mode it eats 100% CPU and locks your console" issue.

Wait, so this is why Emacs has been locking up on me in most of my Python projects??

Possibly. Definitely why it has been locking up on me when I added lsp-mode.

Lsp-mode will schedule one request per keypress but then cancel that request at the next keypress. But since the python LSP server doesn't do async, it handles cancel requests by ignoring them

Re: Aider: AI pair programming in your terminal

#59
post #53

> GPT can write and edit code in most popular languages: python, javascript, typescript, html, css, etc. I love how everyone always leaves PHP off these lists of "popular languages" despite the fact that 80% of the web runs on PHP.

I’ve updated the list to include php. Sorry for the oversight!

Re: Aider: AI pair programming in your terminal

#60

I'm interested in this and will probably set it up but I wish more AI tools were better integrated to my IDE. I know GH Copilot is and other big AI tools have plugins with chat/edit features but most of the cool open source doesn't seem to support IDEA/JetBrains. I see the power of LLMs. I use GH Copilot, I use ChatGPT, but I crave deeper integration in my existing toolset. I need to force myself to try in-IDE Copilo…

I've been using https://cursor.sh/ heavily for about 2 months and I'm pretty happy.

Cursor is a fork of VSCode focused on AI. I'd prefer to use something totally open-source, but Cursor is free, gets regular updates, and I can use my OpenAI API key.

The diff view works well with AI coding assistants. I end up parallelizing more. I let cursor do its thing while I'm already looking at the next file.

I love aider too! Have used it to automate things such as maintaining a translated version of the page in a git pre-commit hook.

Post reply on HN