CCM v0.5.1 adds context-window declarations and Claude CLI passthrough
CCM v0.5.1, released on October 11, adds a per-model context_window field that CCM injects as CLAUDE_CODE_MAX_CONTEXT_TOKENS when launching a model directly. It also allows arguments after `--`, including `--resume <session-id>`, to pass through to Claude Code in direct and proxy modes. The author says the release followed a v0.5.0 test in which a direct GLM session began compacting at roughly 15% of its advertised 1M-token window.
For Claude Code users routing requests through third-party gateways, the update addresses both premature context compaction and the inability to resume sessions through CCM.
Claude Code 频繁 Compacting?发布次日我根治了 2 个痛点
v0.5.0 发布次日就出了 v0.5.1——不是翻车救火,是我最喜欢的一类迭代:疼了就根治,一天闭环,一步门禁没省——两个痛点,各根治一次。
先给没读过前篇的读者一句话背景:CCM(Claude Code Model Manager)是我用 Rust 写的单二进制「本地模型路由控制平面」——把 Claude Code 指向任意第三方模型网关(z.ai、DeepSeek 等),中间加装路由、熔断、观测与运行时切换。立项原因第 75 篇讲过,不展开。
时间线先摆出来,全部出自仓库 docs/V0.5_PLAN.md 的记录:
| 日期 | 事件 |
|---|---|
| 10-10 | v0.5.0 tag + Release |
| 10-10 | greenlight「ccm 侧根治」,落地 commit 2d39dae——起因:直连 glm 长会话在 1M 窗口 ~15% 处被提前压缩 |
| 10-11 | 问了一句 --resume 支不支持 → greenlight「实现吧,然后注意修改文档」(commit 84e4d2d) |
| 10-11 | v0.5.1 发布:tag 前 docs 审计 7 缺陷全是文档(修进 tag commit 05ab15c),CI 双 runner 绿,产物 + LF checksums 重下验证 |