- SignalDesk2026-09-12
A common failure mode for AI SW development is that agents tend to build large "God" files.<p>This is bad on your token burn. A) because the larger your source file the more churn the LLM takes to find and emit edits, which are more likely to fail, and B) the real kicker - the agent's process is to move one item at a time, which is an O(n^2) algorithm, but especially bad because it inevitably breaks and the code mushes up and sadness ensues (burning time and tokens).<p>So, I have had lots of success with rust-split and a few skill notes. rust-split uses the AST (syn) to find the correct boundaries. Two passes: explode cuts the file into top-level items with their comments and #[attrs] attached - lossless, cat the chunks together and you get the original back byte for byte, s
- 情报分类:项目价值、技术价值
- 命中依据:Rust源码token节省工具,实用开源工具分享
- 来源:Hacker News 新项目
- 原作者:owebeeone
- 发布时间:2026/9/12 20:10:15
- 暂无回复