D
cot-lint
v0.2.1 · 2 天前发布
Lint your repo for chain-of-thought leakage — the session-transcript residue AI assistants leave in docs, comments, and commit-adjacent prose. Ships the cot-trim skill as an installable DeepSeek Harness plugin.
README
cot-lint
English | 中文
扫描仓库中的"思维链泄漏"——AI 助手留在文档、注释、JSDoc 里的会话残留。
你的 coding agent 代码写得很好,但会把"思考过程"漏得到处都是:
diff
// This PR adds a retry loop (decision 7) so the diff stays reviewable.
// The manager used to serialize writes itself; it no longer does after v1.
// The cast is safe — it simply narrows the union. Probably fine for now.
+ // Retries transient provider failures up to 3 times with jittered backoff.
+ // The shared coordinator serializes writes per session.
+ // The cast narrows a union already validated at the loader boundary.
左边一列对代码的描述并没有错,错的是读者设定:它在和一个早已离开的评审者争论,引用一个谁都打不开的设计会话,叙述一次变更而不是陈述行为。
唯一测试
站在 HEAD 上的读者——没有任何会话记录、PR 讨论或未提交草稿——能否解析其中每一个引用、验证每一个断言?
不能,就是思维链泄漏。cot-lint 负责把它找出来。
快速开始
DeepSeek Harness —— 以插件形式装入 `cot-tr
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- cot-lint
- Repo
- git+https://github.com/YuanyuanMa03/cot-lint.git
- Engines
{"node":">=20"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}