自建代理框架可大幅降低成本
If you build your own harness, you can drive that cost down even further. Out-of-the-box agent harn...
朋友,别用现成的代理框架,自己动手建一个,能省下不少钱,而且更高效。
自建代理框架能显著降低成本,因为现成框架功能冗余。通过优化任务、精简系统提示词、提高工具调用效率等方式,可以大幅减少token消耗。作者自建框架后,token使用量大幅下降,证明其效率更高。
If you build your own harness, you can drive that cost down even further. Out-of-the-box agent harn...
If you build your own harness, you can drive that cost down even further. Out-of-the-box agent harnesses are, in my opinion, way too bloated. They try to solve way too many things that aren't useful for everyone. You are paying a huge premium for no good reason. While cost is not the only reason to build your own harness, it's one of the biggest benefits. A few optimizations that make it possible: - optimize for tasks you care about - lighter and more optimal system prompt - more efficient tool calling - better context compaction/handoff - leverage different models via custom routing - improved reliability through custom verifiers ... and much more. Just some quick thoughts on it, but I really think it's important for folks reading the OP to understand that token cost is not the only thing to consider in all of this. Uncle Bob Martin @unclebobmartin Since I stopped using my harness, my token consumption has fallen by a huge factor. That harness was massively inefficient. 🔗 View Quoted Tweet 💬 3 🔄 0 ❤️ 7 👀 1546 📊 4 ⚡