9 ms·
Aider: AI pair programming in your terminal
- florid 3y ago[dead]
- tyoma 3y agoI’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.
- fyrn_ 3y agoTo 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
- shadowgovt 3y agoWhen 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.
- skeledrew 3y agoWait, so this is why Emacs has been locking up on me in most of my Python projects??
- shadowgovt 3y agoPossibly. 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
- fyrn_ 3y agoIf emacs hard blocks on LSP requests, that may be on emacs as well. I recomemd you try ruff-lsp, although it does not iver everything and is more for linting, it's higb quality
- tyoma 3y agoAider can answer questions I can’t search for via LSP, like “what code would process the following URL” and similar.
- seadan83 3y agoNot sure if that's making things "fair". Grep & find are insanely powerful when you're a CLI power user. Nonetheless, I'm particularly curious which cases the AI tool can find things that are not easy to find via find & grep (eg: finding URLs that are created via string concatenation, those that do not appear as a string literal in the source code) Perhaps a larger question there, what's the overall false negative rate of a tool like this? Are there places where it is particularly good and/or particularly poor? edits: brevity & clarity
- cess11 3y agoI evaluate a lot of code, like ten-twenty applications per year currently, terminal tooling is my goto. Mostly the basic stuff, tree, ripgrep, find, wc, jq, things like that. I also use them on top of output from static analysis tooling. It's not as slick as SQL on a RDBMS, but very close, and integrates well into e.g. vim, so I can directly pull in output from the tools and add notes when I'm building up my reports. Finding partial URL:s, suspicious strings like API keys, SQL query concatenation and the like is usually trivial. For me to switch to another toolset there would have to be very strong guarantees that the output is correct, deterministic and the full set of results, since this is the core basis for correctness in my risk assessments and value estimations.
- spopejoy 3y agoPersonally I don't like the fragility/IDE-specificity of a lot of LSP setups. I wish every language just came with a good ctags solution that worked with all IDEs. When this is set up properly I rarely need more power than a shortcut to look up tags.
- 3327 3y ago[dead]
- danenania 3y agoPeople 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 shell. I studied Aider's code and prompts quite a bit in the early stages of building Plandex. I'm grateful to Paul for building it and making it open source. 1 - https://github.com/plandex-ai/plandex https://github.com/plandex-ai/plandex
- warvstar 3y agoAny chance for multi agents and/or a vs-code extension(for diffing / applying changes)? nmv on the vscode extension, I just found your other comment.
- danenania 3y agoCould you explain what you mean by "multi agents"?
- joshstrange 3y agoDo you have any plans to build IDE plugins for this? I understand it's open source and anyone could add that, I was just wondering if that was even on the roadmap? Having this run in my IDE would just so awesome with diff tool I'm used to, with all the other plugins/hotkeys/etc I use.
- danenania 3y agoYes, VSCode and JetBrains plugins are on the roadmap. Here's the current roadmap by the way: https://github.com/plandex-ai/plandex#roadmap-%EF%B8%8F https://github.com/plandex-ai/plandex#roadmap-%EF%B8%8F (it's not exhaustive, but can give you a sense of where I'd like to take Plandex in the future).
- 3y ago
- beastman82 3y agoThis tool is amazing
- deleted 3y ago[deleted]
- rbren 3y agoWe have an issue in OpenDevin to add Aider as an agent, if anyone wants to take a crack at it: https://github.com/OpenDevin/OpenDevin/issues/120 https://github.com/OpenDevin/OpenDevin/issues/120
- pax 3y agoI revisited Aider a couple of days ago, after going in circles with AutoGPT - which seemed to either forget or go lazy after a few prompts - to the point it refused to do something that it did a few prompts before. Then Aider delivered from the first prompt. PS. I've gathered a list of LLM agents (for coding and general purpose) https://docs.google.com/spreadsheets/d/1M3cQmuwhpJ4X0jOw5XWT1fEjofTaCQZ5/ https://docs.google.com/spreadsheets/d/1M3cQmuwhpJ4X0jOw5XWT...
- joshstrange 3y agoI'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 Copilot Chat. My habit is to go to ChatGPT for anything of that nature and I'm not sure why that is. Sometimes it's the same way I break down my search to for things "I know I can find" then put together the results. In the same way I break down the problem into small pieces and have ChatGPT write them individually or somethings additively.
- solumunus 3y agoIn my experience, Supermaven makes Copilot look like a joke, and they’ve just released a Jetbrains plugin. YMMV. It’s just code suggestions though, no chat box.
- hackerlight 3y agoHave you compared it to Sourcegraph Cody which also has a Jetbrains plugin? Same monthly cost as Supermaven.
- joshstrange 3y agoI’ve tried Cody Pro. I canceled my subscription in 3 days. The plugin (for JetBrains at least) gave auth and other errors regularly and when it did work its completions were “meh” at best. I’ll admit some of that might be from me being used to what I get from GH Copilot but basic stuff like initializing a variable called “count” with `0` or “++”-ing it in a loop were both things it didn’t auto-complete. I switched back to Copilot and it did exactly what I expected. The polish is lacking with Cody and the errors are completely unacceptable in a paid product. I’ve seen 2 Copilot outages the entire time I’ve been using it (since before GA) so to have Cody barf up stupid errors multiple times in a 3-day period is just ridiculous.
- joshstrange 3y ago
- wanderingmind 3y agoAider 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 suggest using Plandex which is based on Go and can work across any environment within the system
- anotherpaulg 3y agoThanks 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-python-package-conflicts 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?
- stavros 3y agoThis is the correct solution, use pipx to install any Python cli and save yourself a ton of hassle.
- wanderingmind 3y agoThank you, didn't know about pipx possibility. Will give it a shot. I don't want aider in prod environment. Im saying its hard to remove it from prod if we can't isolate it from code dependencies as its hard to maintain multiple requirements.txt for different envs.
- bumbledraven 3y agoThat 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 https://www.bitecode.dev/p/back-to-basics-with-pip-and-venv
- DonHopkins 3y agoWhen working alone remotely from home, I simulate pair programming with a methodology I call "The Stranger". I sit on one of my hands until it becomes numb and tingly, and then it feels like somebody else is typing and moving the mouse!
- Gibbon1 3y agoI use synthetic aperture pair programming. I write some code and get it working. Then I get pulled off it for a few months and come back to it. Me + 3 months: da fuk.
- renewiltord 3y agoI have used this technique for months and it’s great https://x.com/arjie/status/1575201117595926530 https://x.com/arjie/status/1575201117595926530 I just have copilot in my editor and switch into my editor with C-x C-e for AI completion. I use neovim like example but you can use whatever you like. EDIT: Oh never mind. I see what it is now. It’s a terminal based flow for editing code. Mine is for command line writing live.
- febed 3y agoThat’s cool, but is there a way to use another vendor instead of GitHub CoPilot?
- renewiltord 3y agoThere’s the fauxpilot project. This is just the minimal stuff to use the AI completer. But you can sub out faux pilot and get the same result (modulo quality).
- 090rf 3y ago[dead]
- devstein 3y agoBig fan of Aider. We are interesting in integrating Aider as a tool for Dosu https://dosu.dev/ https://dosu.dev/ to help it navigate and modify a codebase on issues like this https://github.com/langchain-ai/langchain/issues/8263#issuecomment-1652724177 https://github.com/langchain-ai/langchain/issues/8263#issuec...
- fvdessen 3y agoI just tried it and it's amazingly cool, but the quality of the output just isn't there for me yet. It makes too much subtle errors to be as useful as the screenshots and the gifs makes it look
- alexose 3y agoI agree with you. It's okay at really simple code changes for really simple repos, but it falls apart for anything outside the ordinary. I'm sure I'll have to eat these words, but: This just doesn't feel like the right interface to me. LLMs are incredible at generating "inroads" to a problem, but terrible at execution. Worse yet at anticipating future problems. All this might very well change. But until it does, I just want my LLMs to help me brainstorm and help me with syntax. I think there's a sweet spot somewhere between this tool and Copilot, but I'm not sure where.
- paradite 3y agoHi, for somewhere between GitHub Copilot and aider, you can try the desktop app 16x Prompt. I have been using it daily for the past few months and it suits my working style nicely. It is capable of handling complex tasks like feature development and refactoring across multiple files, but it doesn't try to generate diff and apply them automatically. Instead, you will get a response from LLM that is easy to read and allow you as a developer to quickly apply to your existing codebase. You can check it out here: https://prompt.16x.engineer/ https://prompt.16x.engineer/
- bumbledraven 3y agoI appreciate @anotherpaulg's continual benchmarking of LLM performance with aider, for example: > OpenAI just released GPT-4 Turbo with Vision and it performs worse on aider’s benchmark suites than all the previous GPT-4 models. In particular, it seems much more prone to “lazy coding” than the GPT-4 Turbo preview models. https://aider.chat/2024/04/09/gpt-4-turbo.html https://aider.chat/2024/04/09/gpt-4-turbo.html
- pax 3y ago+ accompanying HN thread (117 comments) https://news.ycombinator.com/item?id=39985596 https://news.ycombinator.com/item?id=39985596
- paradite 3y agoIf you prefer GUI with more space to write task requirements, or use your existing ChatGPT/Claude subscription without additional API costs, you can check out my desktop app: https://prompt.16x.engineer/ https://prompt.16x.engineer/
- visarga 3y agoEveryone has one, I just made a script to print all the files in the current folder to the terminal. I have .context-ignore files to exclude some patterns, similar to .gitignore The first file is a README.md that contains my initial description of what I am working on. At the end I type a new command. I copy & paste the text into chatGPT web interface. I think I used it for 10-15 rounds of iteration on my latest project and it generated about 50% of the code of a web app with Python backend. Pretty sweet and costs nothing on top of the web subscription. The funny part is that I was using this AI coding tool to build another AI tool to manage a collection of prompts and demonstrations including automatic prompt evaluation, so I was using an AI tool to make another AI tool.
- paradite 3y agoThat's exactly how I started as well, I was using a similar workflow to build an AI-driven game. Then I thought maybe it's a good idea to turn it into something less ad-hoc, more user-friendly, and work for any project.
- takets 3y ago[dead]
- foundval 3y agoIf you're interested in this sort of stuff, you might like this diff-based CLI tool I wrote: https://github.com/freuk/iter https://github.com/freuk/iter It runs on Groq (the company I work for), so it's super snappy.
- bearjaws 3y agoAider is the only tool I use for coding now with ChatGPT. Copilot is pretty good but I like the split context of declaring what you are working on in the CLI. It still suffers from ChatGPT laziness sometimes, you can see it retrying several times to get a correct output before giving up.
- dools 3y ago> 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.
- elromulous 3y agoPHP 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.
- noduerme 3y agoPHP is still my go to for anything web-page based that's not a single page app. It's just a really nice solution for protoyping and making web quickly. I mean, custom stuff, not wordpress. A lot of my successful projects have been rewritten later in nodejs. But for getting something up and running to test a concept, PHP is great if you're comfortable with its idiosyncracies. I'd say Python is just as idiosyncratic, and its packaging system is just too much of a pain point. And Node doesn't ship with mature database interfaces, its dependencies are scary, there's more concern about runaway scripts, crashes are harder to recover from, and a lot of times all you really want from a router is to serve your file structure with some access rules. I think PHP is still the best choice for prototyping dynamic HTML and logic fast, without any packages or plug-ins. A lotta times I still even use it for short CLI scripts and cron tasks that do database ops.
- aiauthoritydev 3y ago+1 I had a largish website with few thousand static webpages. Over a period the pages grew into around 100K with some server side features. Over the course of 10 years I did and redid this site in multiple technologies. React, Angular, Spring Boot + Freemarker etc. However the PHP power version of it remains best for SEO has near zero downtime and no maintenance what so ever runs on a VM that shares like 10 other websites. traffic serves is around 100K visits a day.
- 3y ago
- 1ark 3y agoFor the Emacs user, maybe not exactly one-to-one, but useful: https://github.com/s-kostyaev/ellama https://github.com/s-kostyaev/ellama
- pmarreck 3y agoPython projects depress me because of the dependency management problem.
- alexose 3y agoNo problem, just install it in a virtualized containerized pyenv virtualenv pipx poetry conda dies
- pmarreck 3y agoExactly. How do Python people put up with that? Have none of them tried to run multiple Python projects over time on the same Linux install with commandline access to all of them at once?
- tjtang2019 3y ago[dead]
- xyst 3y agoI’m still waiting for that bastard Devin to write my killer app. Now you want me to code my own killer app with an AI micromanage me?
- datashaman 3y agoexactly. who's training who here? :)
- deleted 3y ago[deleted]
- jerrygoyal 3y agoSo 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
- namanyayg 3y ago> devs suck at naming variables This is the #1 problem I've faced with my contractors and I wish I could find a good solution for it
- tjaad 3y ago> - 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 3y ago[deleted]
- vander_elst 3y agoWith all these AI tools requiring a prompt, does it really simplify/speed up things? From the example: I have to write "add a name param to the 'greeting' function, add all types", then wait for the result to be generated, read it carefully to be sure that it does what I want, probably reiterate if the result does not match the expectation. This seems to me more time consuming than actually do the work myself. Does anyone has examples where promoting and double checking is faster than doing it on your own? Is it faster when exploring new solutions and "unknown territory" and in this case, are the answers accurate (from what I tried so far they were far off)? In that case how do you compare it with "regular search" via Google/Bing/...? Sorry for the silly question but I'm genuinely trying to understand
- djleni 3y agoCan’t speak for everyone else but I almost exclusively use it for what you mentioned: > when exploring new solutions and "unknown territory" If it’s something I have no idea how to do I might describe the problem and just look at the code it spits out; not even copy pasting but just reading for a basic idea. > how do you compare it with "regular search" via Google/Bing Much worse if there’s a blog post or example in documentation that’s exactly what I’m looking for, but, if it’s something novel, much better. An example: Recently asked how I could convert pressure and temperature data to “skew T” coordinates for a meteorological plot. Not something easy to Google, and the answers the AI gave were slightly wrong, but it gave me a foot in the door.
- jamil7 3y agoThis is also where I've kind of ended up with it, I've also noticed that when I was at one point using it everyday, I'm opening it less and less, maybe a few times a week and recently cancelled my subscription. It's still pretty useful for exploritory stuff, boilerplate and sometimes it can give you a hint on debugging. Everything else I can write faster and more correctly myself.
- rolisz 3y agoWell, regular search means switching to a different application, with an implied context switch. It definitely takes longer for many things than just using GitHub copilot.
- perbu 3y agoI 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 trust this.
- Recursing 3y agoIn my experience, these things work much better with Python than with anything else
- Culonavirus 3y agoIt 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 some knowledge and just naturally expect intelligence to go with it. But it doesn't. Wikipedia has knowledge. Books have knowledge. LLMs are just the latest iteration of how humans store knowledge. That's about it, everything else is a hyped up bubble. There's nothing in physics that stops us from creating an artificial, generally intelligent being, but it's NEVER going to be with auto-regressive next-token prediction.
- Seb-C 3y agoLLMs does not store information though. Language is a tool to convey information. LLMs are only about the language, not the information.
- qwery2 3y ago[dead]
- epiccoleman 3y ago
- hackerlight 3y ago> While it is not recommended, --no-auto-commits will stop aider from git committing each of GPT’s changes. Why is it recommended to not quickly review the changes (git status, git diff) before committing?
- fragmede 3y agoit's just slower
- renegade-otter 3y agoThese tools have the same problem as image or video generative AI does - it can maybe render individual parts accurately, but what is basically autocomplete cannot reason about the bigger picture. You glance at it, and it looks ok, but then you look closer, and it's riddled with issues. Statistical prediction has its limitations - who knew.
- JensRantil 3y agoIt gets commit messages wrong. Commit messages should signal intent, not what the patch does. "changing an enum" is a horrible commit message.
- s_dev 3y agoAdopt a convention like commitizen: https://github.com/commitizen/cz-cli https://github.com/commitizen/cz-cli 'typeofchange(scopeofchange): reason for change' It sort helps force devs to type out more meaningful commit messages.
- JensRantil 3y agoThat will not necessarily make aider write better commit messages (unless I possibly tell it explicitly why I am doing something in every instruction).
- tudorw 3y agoJust finishing up a responsive website design with Claude, no typing by me, just a natural language conversation as I'm looking at the rendering differences and trying strategies to find a one size fit all without shims. The longer context is amazing, 'return the entire codebase to help us maintain a strong context, I have no hands' works extremely well, and it's handling an 875 line project of mixed html/css/js like a champ. This is as bad as it'll ever be, makes web design a pleasure again, well, sort of...
- stefanoco 3y agoPromising. Looks like it can leverage existing requirements if included in the git repository as ReqIF exchange format files. I’m currently not able to verify with an experiment because I’m dealing with huge sets of requirements and I easily reach the limits of API (I guess), need to trim down. Any experience by others?
- Upvoter33 3y agoThe author was one of the brains behind the early search engine Inktomi (which was a wild success, until Google came along ...)
- matijash 3y agoAider 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 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 https://www.youtube.com/watch?v=DXunbNBpgZg&ab_channel=Wasp
- glowzar777 3y agoNavie 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.
- retropragma 3y ago[dead]
- breakds 3y agoThanks for open sourcing this project! I've packaged it with nix to make it easier for others to use: https://github.com/nixvital/ml-pkgs/blob/main/pkgs/aider/default.nix https://github.com/nixvital/ml-pkgs/blob/main/pkgs/aider/def... If you are running nixos, an example of using it can be found here: https://github.com/breakds/nixos-machines/blob/main/flake.nix#L81-L90 https://github.com/breakds/nixos-machines/blob/main/flake.ni...