Live data from Hacker News

Aider: AI pair programming in your terminal

github.com

151–160 of 170 posts

Re: Aider: AI pair programming in your terminal

#151
Aider is one of my favorite AI agents, especially because it can work with existing codebases. We've seen a lot of good results from folks who used it with Wasp (https://github.com/wasp-lang/wasp) - a full-stack web framework I'm working on.

A "marketingy" demo video: https://www.youtube.com/watch?v=DXunbNBpgZg&ab_channel=Wasp

Re: Aider: AI pair programming in your terminal

#152
post #149

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 you describe how you read in a repo any better than aider? Aider has a few blog posts speaking to it.

I haven't yet tried incorporating tree-sitter as Aider does to load in all definitions in the repo. In Plandex, the idea is more to load in just the files are relevant to what you're building before giving a prompt. You can also load directory layouts (with file names only) with `plandex load some-dir --tree`.

I like the idea of something like `plandex load some-dir --defs` to load definitions with tree-sitter. I don't think I'd load the whole repo's defs by default like Aider does (I believe?), because that could potentially use a lot of tokens in a large repo and include a lot of irrelevant definitions. One of Plandex's goals is to give the user granular control over what's in context.

But for now if you wanted to do something where definitions across the whole repo would be helpful (vs. loading in specific files or directories) then Aider is better at that.

Re: Aider: AI pair programming in your terminal

#153
Navie AI + AppMap I found it while looking for a tool that could read my code and create flow diagrams automatically. AppMap does exactly that: records "appmaps" while the app runs, it is one of the most useful plugins I have seen in vscode for those who have to deal with a lot of different codebases, languages, repos, on a daily basis. It is a really useful too for engineering teams, it allows devs to jump into new codebase so fast. probably one of the most powerful tools I have seen running in Visual studio code. their latest version includes a AI assistant that can feed from the appmaps + language models to build documentation, explanations, etc. in seconds.

Re: Aider: AI pair programming in your terminal

#154
post #92

So many AI coding agents popping up that claim to build entire projects but all I'm interested in (happy to pay): - Review GitHub PR and suggest fixes. - Improve the readability of code with a single command (devs suck at naming variables). - context aware autocomplete for real

> - context aware autocomplete for real If the AI tool can fetch related classes for the code that I'm working with that would be so helpful!

[deleted]

Re: Aider: AI pair programming in your terminal

#155
post #149

Earlier quoted context omitted.

Can you describe how you read in a repo any better than aider? Aider has a few blog posts speaking to it.

I haven't yet tried incorporating tree-sitter as Aider does to load in all definitions in the repo. In Plandex, the idea is more to load in just the files are relevant to what you're building before giving a prompt. You can also load directory layouts (with file names only) with `plandex load some-dir --tree`. I like the idea of something like `plandex load some-dir --defs` to load definitions with tree-sitter. I don…

But.. it was said Plandex is similar or worthy of consideration next to something like Aider.. when this post is about Aider.

Understanding a codebase, along with the in/outs between the calls is pretty vital to any codebase, especially the larger a codebase gets.

I'm not attached to the way Aider or Plandex does anything, but I'm still not clear on which scenarios it's worth considering compared to Aider, or vice Versa. Aider seems pretty unique and stands alone on a number of things. I'll still install Plandex and try it out.

Without details, it's a little surprising a post like this could get upvoted so much.

Re: Aider: AI pair programming in your terminal

#156
post #155

Earlier quoted context omitted.

I haven't yet tried incorporating tree-sitter as Aider does to load in all definitions in the repo. In Plandex, the idea is more to load in just the files are relevant to what you're building before giving a prompt. You can also load directory layouts (with file names only) with `plandex load some-dir --tree`. I like the idea of something like `plandex load some-dir --defs` to load definitions with tree-sitter. I don…

But.. it was said Plandex is similar or worthy of consideration next to something like Aider.. when this post is about Aider. Understanding a codebase, along with the in/outs between the calls is pretty vital to any codebase, especially the larger a codebase gets. I'm not attached to the way Aider or Plandex does anything, but I'm still not clear on which scenarios it's worth considering compared to Aider, or vice Ve…

Plandex isn't really focused on understanding a whole codebase. It can be used for that to some extent, but it's more designed for building larger features where you'd load in maybe 5-20 relevant files and then have Plandex build the whole feature across potentially dozens of steps and model calls. With Aider (or ChatGPT) it would require a lot more back-and-forth and user interaction to get a similar result.

Like I said, I think Aider's use of tree-sitter is a great concept and something I'd like to incorporate in some way. I'm not at all trying to claim that Plandex is 'better' than Aider for every use case. I think they are suited to different kinds of tasks.

Re: Aider: AI pair programming in your terminal

#157

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 apologize if I'm not posting this in the correct place, but I've been trying to test this out (looks like it'll be fantastic, btw) and I keep running into a 429 error that I've exceeded my current quota for chatgpt but I really don't think I have, which leads me to believe that maybe it's not really taking my api key when I run the export command. Is there a way to check or another reason I could be getting this error?

Re: Aider: AI pair programming in your terminal

#158
post #87

I have this 300 line Go application which manages git tags for me. I asked it to implement a -dry-run function. It failed twice. First time it just mangled the file. Second time it just made code that didn't do anything. I asked it to rename a global variable. It broke the application and failed to understand scoping rules. Perhaps it is bad luck, or perhaps my Go code is weird, but I don't understand how y'all wanna…

It must be your app/lang/prompt/grandma/dog/... lol. LLMs are the future, and they will replaces Allllllll the coders in the woooorld (TM), and did you know "it" can create websites??? Wooo, let's go, baby! Nah these things are all stupid as hell. Any back and forth between a human and an LLM in terms of problem solving coding tasks is an absolute disaster. People here and certainly in the mainstream population see s…

> Nah these things are all stupid as hell. Any back and forth between a human and an LLM in terms of problem solving coding tasks is an absolute disaster.

I actually agree in the general case, but for specific applications these tools can be seriously awesome. Case in point - this repo of mine, which I think it's fair to say was 80% written by GPT-4 via Aider.

https://github.com/epiccoleman/scrapio

Now of course this is a very simple project, which is obviously going to have better results. And if you read through the commit history [1], you can see that I had to have a pretty good idea of what had to be done to get useful output from the LLM. There are places where I had to figure out something that the LLM was never going to get on its own, places where I made manual changes because directing the AI to do it would have been more trouble than it was worth, etc.

But to me, the cool thing about this project was that I just wouldn't have bothered to do it if I had to do all the work myself. Realistically I just wanted to download and process a list of like 15 urls, and I don't think the time invested in writing a scraper would have made sense for the level of time I would have saved if I had to figure it all out myself. But because I knew specifically what needed to happen, and was able to provide detailed requirements, I saved a ton of time and labor and wound up with something useful.

I've tried to use these sorts of tools for tasks in bigger and more complicated repos, and I agree that in those cases they really tend to swing and miss more often than not. But if you're smart enough to use it as the tool it is and recognize the limitations, LLM-aided dev can be seriously great.

[1]: https://github.com/epiccoleman/scrapio/commits/master/?befor...

Re: Aider: AI pair programming in your terminal

#159
post #157

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 apologize if I'm not posting this in the correct place, but I've been trying to test this out (looks like it'll be fantastic, btw) and I keep running into a 429 error that I've exceeded my current quota for chatgpt but I really don't think I have, which leads me to believe that maybe it's not really taking my api key when I run the export command. Is there a way to check or another reason I could be getting this er…

You'd be getting a different error if your key wasn't getting through at all. Can you double check that you're using the right OpenAI api key, have enough api credits (as distinct from chatgpt quota), and haven't hit any max spend limits? You can check here: https://platform.openai.com/account/api-keys
Post reply on HN