PulseAugur
实时 21:13:43
English(EN) Why the codebase is your biggest context bill, and why output compression doesn't fix it

分析显示,AI编码成本主要由输入令牌而非输出决定

对AI编码流量的最新分析显示,输入令牌(主要是代码库本身)占AI代理使用的大部分上下文(93.4%),远远超过输出令牌(4.0%)。这表明,通过压缩模型输出来降低AI编码成本的努力在很大程度上是无效的,因为它们只解决了问题的一小部分。目前正在出现几种工具来解决输入令牌的挑战,包括压缩shell命令输出的代理、用于管理会话内存的框架以及使用本地语义搜索仅检索相关代码片段的方法。一种更基本的方法是使用抽象语法树(AST)来结构化地表示代码,通过折叠函数体来显著减少令牌使用,同时保留重要的架构信息。 AI

影响 专注于减少输入令牌,特别是通过AST操作,可以显著降低AI编码成本并提高代理效率。

排序理由 对AI编码流量的分析和对现有工具的讨论。

在 dev.to — MCP tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

分析显示,AI编码成本主要由输入令牌而非输出决定

报道来源 [1]

  1. dev.to — MCP tag TIER_1 English(EN) · foldwork ·

    Why the codebase is your biggest context bill, and why output compression doesn't fix it

    <p>When people think about reducing AI coding costs, they usually think about the model's output: fewer words, shorter explanations, tighter responses. It's intuitive. The AI talks a lot. Make it talk less.</p> <p>The problem is that output is the wrong target.</p> <p>Paul Kinlan…