Ask HN: 你们如何在庞大、混乱的遗留代码库中使用 AI 代码助手?

2作者: thinkingtoilet3 个月前
我们公司开始探索 AI 编程。我是一名拥有 20 多年经验的开发人员,负责尝试帮助我们了解如何使用这个工具来帮助公司。我只使用过 Claude,所以我的经验仅限于此。 正如你可能猜到的,我发现 AI 在某些方面非常出色,但在其他方面却非常糟糕。我
查看原文
My company is starting to explore AI coding. I am a dev with 20+ years of experience and I am tasked with trying to help see how we can use this tool to help our company. I have only used Claude so my experience is limited to that.<p>As you might guess, I find AI to be extremely good at some things and actively terrible at others. A lot of the things I read and demos I watch all have to do with reasonable code bases. Our code base is not reasonable. It&#x27;s over 20 years old, coded by a multitude of different developers with different coding styles, design patterns, etc... What you would expect from a small company that has been slowly growing for decades. I also work in the medical field so slow evolving old code bases are the norm.<p>One of the reasons the AI fails constantly is that it has no context of the entire code base. It simply can&#x27;t keep that context in scope for every session. So it actively adds bloat to the system unless it&#x27;s guided by a skilled developer who already knows the system. I am using memories where I can but it has to regularly read huge chunks of code and that uses a lot of tokens. I regularly hit my limit on a Pro account.<p>What are your experiences with this? Any tips or tricks to improve output and cost? Any help is most appreciated. Thanks!