PulseAugur
实时 07:09:31
English(EN) We cut our CLAUDE.md from 548KB to 34KB: what loads when, measured — and the commit gate that keeps it small

开发者使用技能和路径范围规则将 Claude.md 文件大小缩小 94%

一位开发者通过战略性地重组内容,将其 CLAUDE.md 文件的大小从 548KB 大幅减少到 34KB。这是通过将过程移至技能、将代码约定移至路径范围规则,并将参考资料移至单独的文档文件来实现的。开发者发现 HTML 注释在注入之前会被剥离,不消耗 token,并且 `@path` 导入不会减少上下文窗口的使用。这种优化对于子代理至关重要,因为 CLAUDE.md 会加载到每个子代理中。 AI

影响 优化配置文件大小可以缩短 AI 代理的启动时间并降低运营成本。

排序理由 该条目描述了针对特定 AI 产品配置文件进行的技术优化,而不是新版本发布或重大的行业事件。

在 dev.to — Claude Code tag 阅读 →

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

开发者使用技能和路径范围规则将 Claude.md 文件大小缩小 94%

报道来源 [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Rulestack ·

    我们将 CLAUDE.md 从 548KB 压缩到 34KB:测量加载内容及时间 — 以及保持其小巧的提交门禁

    <p>Our CLAUDE.md was 548KB. Every session — including every subagent — loaded all of it before doing any work. One measured headless run wrote about 150,000 tokens to cache before the actual task started, and the file itself was the dominant contributor.</p> <p>This week we cut i…