请问HN:你们使用什么开源的LLM代理,为什么选择它?
我尝试过 aider、aider-ce 和 opencode。我在 Windows 11 上使用 MSYS2 的类 bash 终端进行编码,同时在 WSL2 下的 Ubuntu 中也使用 bash。
根据我的经验,aider 是这三者中最好的。虽然它的功能最少,但它“就是好用”。我告诉工具我想要完成的任务,经过一点学习后,它大约 90% 的时间能够准确地完成。
使用 aider-ce 和 opencode 时,我遇到了太多的错误。例如,目前在 Windows 上,复制粘贴似乎根本无法使用,这在无法将重要代码片段复制到模型时造成了巨大的功能损失。
Opencode 作为一个带有主题的 TUI 看起来非常酷,但我真的不喜欢这些代理的随机性。我不知道 Claude Code 和 Codex 是否也这样,但我给出的任何简单任务可能会立刻解决,也可能因为调用随机工具而导致耗时是 aider 的 5 倍,试图进行网络搜索以找到技术上正确但不符合需求的文档,遇到 403 错误可能是因为被检测为机器人,然后在提交一个比 aider 生成的补丁更差的结果之前又尝试了 3 次。
我本来只想坚持使用 aider,但 aider-ce(社区扩展)存在是因为开发者在它获得与 opencode 相同数量的星标后就停止了更新。我在想是否还有更好的替代方案,或者其他人是否也对 aider 的现状有相同的感受。这很可惜,因为 aider 确实在应用 AI 方面做得很好,足以让我不必担心其随机性,它正好完成我所要求的任务,没有多也没有少。我觉得使用 aider 时,我对运行在我代码上的 AI 有最大的控制权。
查看原文
I have tried aider, aider-ce, and opencode. I'm on Windows 11, I code in Windows using MSYS2's bash-like shell and in Ubuntu via WSL2 (so just bash).<p>In my experience, aider is the best out of the three. It has the least features too, but it "just works" the best. I tell the tool exactly what I want done and after learning a bit it goes and does that right like 90% of the time.<p>With aider-ce and opencode, I ran into way too many bugs. For example in Windows right now it seems that copy pasting just doesn't work, which is a massive loss of functionality when you can't copy paste important snippets to the model.<p>Opencode looks really cool as a TUI with the themes and such, but I really didn't like how random these agents are. I don't know if claude code and codex are like this too, but whatever simple task I give out could be solved right away or it could for some reason result in taking 5x as long as aider as it calls random tools, tries to do web searches for documentation that is technically correct but not the thing it needs, running into 403's probably because of bot detection, and then trying that 3 more times before it submits a worse patch than what aider would have made.<p>I'd just stick to aider, but aider-ce (community expansion) exists because the dev just kinda stopped working on it despite the fact that it has as many stars as opencode. Wondering if there are any better alternatives out there or maybe if others feel the same way about what's happening to aider. Its a shame because aider really is great at just applying AI just enough that I don't have to stress about its stochastic nature and it just does exactly what I asked no more no less. I feel like I have maximal control over AI running on my code with aider.