跳到正文
原文
Hacker News Show HN· legend-of-alan·· 6 天前精选AI 评分68

Ghost Mode:为 Rust Agent 引入 Code Mode 的开源库,作者称可减少约 60% token 消耗

Show HN: Open-Sourced Code Mode to Cut ~60% of My Rust Agent's Token Burn

AI 导读

作者开源了 Rust 库 Ghost Mode,让模型写一段 Python 脚本自行串联工具调用,中间结果不再回传给模型,从而减少 token 消耗。作者称在自己的 Rust Agent 上砍掉约 60% 的 token 消耗,并引用八模型基准中 Code Mode 平均降低 40.7% 成本、GPT-5.4 上降低 70.6% 的数据。

推荐理由

作者开源了把 Code Mode 引入 Rust Agent 的库,并给出跨模型基准里成本与步骤的变化数据。

社媒成稿工作台 · 一键复制

飞书同步推送 · 含数据/日期/出处/启发
核心数据发布日期信源出处独立开发启发
1336
Ghost Mode:为 Rust Agent 引入 Code Mode 的开源库,作者称可减少约 60% token 消耗

📊 核心数据与事实(2026-11-27):
作者开源了 Rust 库 Ghost Mode,让模型写一段 Python 脚本自行串联工具调用,中间结果不再回传给模型,从而减少 token 消耗。作者称在自己的 Rust Agent 上砍掉约 60% 的 token 消耗,并引用八模型基准中 Code Mode 平均降低 40.7% 成本、GPT-5.4 上降低 70.6% 的数据。
• 原文实测切片:Anthropic cut one workflow from 150,000 tokens to 2,000 (98.7% less) by having the agent write code against its tools instead of loading every tool definition up front ( post ).
• 原文实测切片:Across 17 models, CodeAct's code actions needed up to 30% fewer actions and scored up to 20 points higher success than JSON or text tool calls ( paper ).
• 原文实测切片:A pre-registered study measured 70% to 90% fewer tokens with three open-weight models.

💡 对独立开发者的启发:
1/ 作者开源了把 Code Mode 引入 Rust Agent 的库,并给出跨模型基准里成本与步骤的变化数据。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。

📅 日期:2026-11-27(北京时间)
📰 信息源出处:Hacker News Show HN · legend-of-alan(github.com)
🔗 原文:https://github.com/legend-of-alan/ghostmode
📡 归档:https://billionare.me/items/ytxb2zj2p88bm348mfe9rczta
去 X 发推
每天 08:00 邮件 / 08:30 飞书准点推送一手高信噪比情报与拆解免费订阅简报

来源:Hacker News Show HN · github.com