Live data from Hacker News

Aider: AI pair programming in your terminal

github.com

31–40 of 170 posts

Re: Aider: AI pair programming in your terminal

#31
post #4
post #2

I’ve used aider to understand new codebases using technologies I don’t know and it did a fantastic job; much faster than grep/find + google.

To be fair in a world of good LSP impls, grep/find are really primative tools to be using. Not saying this isn't better then a more sophisicated editor setup, just that grep and find are a _really_ low bar

Aider can answer questions I can’t search for via LSP, like “what code would process the following URL” and similar.

Re: Aider: AI pair programming in your terminal

#32

Aider has a big problem when working with python codebase. 1. Its dependencies will conflict with your code requirements. 2. If you don't install it within the code environment, you can use `aider run` where you can run local commands and pipe their outputs. 3. You will need to use all it's dependencies even in prod environment that can increase the attack surface. So until they introduce a global binary install, I s…

That is a problem with the Python packaging ecosystem in general, not with aider. @BiteCode_Dev wisely advises beginners to use virtual environments to install anything that uses Python: https://www.bitecode.dev/p/back-to-basics-with-pip-and-venv

Re: Aider: AI pair programming in your terminal

#34
post #17

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…

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.

Doesn't the software just give the LLM the line numbers?

Re: Aider: AI pair programming in your terminal

#35

Aider has a big problem when working with python codebase. 1. Its dependencies will conflict with your code requirements. 2. If you don't install it within the code environment, you can use `aider run` where you can run local commands and pipe their outputs. 3. You will need to use all it's dependencies even in prod environment that can increase the attack surface. So until they introduce a global binary install, I s…

Thanks for trying aider, and sorry to hear you had dependency conflicts. You can install aider with pipx to avoid this. There's a FAQ entry that explains how: https://aider.chat/docs/faq.html#how-to-use-pipx-to-avoid-py... Also, why would you want to install aider in a production environment? It's a development tool, I wouldn't expect anyone to use it in prod. But maybe there's a use case I'm not thinking of?

This is the correct solution, use pipx to install any Python cli and save yourself a ton of hassle.

Re: Aider: AI pair programming in your terminal

#36

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…

This looked cool and I was excited to try it until I realized that I either need a subscription, or I need to set up a server. Why does this need a server, when Aider just works via the cli?

Re: Aider: AI pair programming in your terminal

#37
post #36

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…

This looked cool and I was excited to try it until I realized that I either need a subscription, or I need to set up a server. Why does this need a server, when Aider just works via the cli?

First I should note that while cloud will have a subscription eventually, it's free for now. There's an anonymous trial (with no email required) for up to 10 plans or 10 model responses, and then just name and email is required to continue.

I did start out with just the CLI running locally, but it reached a point where I needed a database and thus a client-server model. Plandex is designed for working on many 'plans' at different levels of the project hierarchy (some users on cloud have 50+ after using it for a week), and there's also a fair amount of concurrency, so it got to be too much for a local filesystem or even something like a local SQLite db.

Plandex also has the ability to send tasks to the background, which I think will start to play a more and more important role as models get better and more capable of running autonomously for longer periods, and I want to add sharing and collaboration features in the future as well, so all-in-all I thought a client-server model was the best base to build from.

I understand where you're coming from though. That local-only simplicity is definitely a nice aspect of Aider.

Re: Aider: AI pair programming in your terminal

#38
post #36

Earlier quoted context omitted.

This looked cool and I was excited to try it until I realized that I either need a subscription, or I need to set up a server. Why does this need a server, when Aider just works via the cli?

First I should note that while cloud will have a subscription eventually, it's free for now. There's an anonymous trial (with no email required) for up to 10 plans or 10 model responses, and then just name and email is required to continue. I did start out with just the CLI running locally, but it reached a point where I needed a database and thus a client-server model. Plandex is designed for working on many 'plans'…

I had a second look and the server doesn't look too hard to deploy. I like that there's reasoning behind requiring it, although I suspect that SQLite is more than capable to very easily do this.

I'm trying to deploy the server right now so I can try Plandex, it would be easier if I hadn't forgotten my Postgres password...

As a tip, self-hosting would be much easier (which may be something you don't want to do) if you provided a plain Docker image, then it would just be "pull the Docker image, specify the local directory, specify the DB URL, done".

By the way, why does it need a local directory if it has a database? What's stored in the directory?

Re: Aider: AI pair programming in your terminal

#39
post #4

Earlier quoted context omitted.

To be fair in a world of good LSP impls, grep/find are really primative tools to be using. Not saying this isn't better then a more sophisicated editor setup, just that grep and find are a _really_ low bar

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??

Re: Aider: AI pair programming in your terminal

#40
post #38

Earlier quoted context omitted.

First I should note that while cloud will have a subscription eventually, it's free for now. There's an anonymous trial (with no email required) for up to 10 plans or 10 model responses, and then just name and email is required to continue. I did start out with just the CLI running locally, but it reached a point where I needed a database and thus a client-server model. Plandex is designed for working on many 'plans'…

I had a second look and the server doesn't look too hard to deploy. I like that there's reasoning behind requiring it, although I suspect that SQLite is more than capable to very easily do this. I'm trying to deploy the server right now so I can try Plandex, it would be easier if I hadn't forgotten my Postgres password... As a tip, self-hosting would be much easier (which may be something you don't want to do) if you…

Agreed on providing a docker image. I made an issue to track it here: https://github.com/plandex-ai/plandex/issues/78

I do want to make self-hosting as easy as possible. In my experience, there will still be enough folks who prefer cloud to make it work :)

There's a local .plandex directory in the project which just stores the project id, and a $HOME/.plandex-home directory that stores some local metadata on each project--so far just the current plan and current branch.

Post reply on HN