技巧

Mole 一键清理 Claude Code、Codex、Cursor 残留的缓存与会话记录

精选理由

如果你电脑里装过 Claude Code、Codex 或 Cursor,大概率留了一堆缓存和聊天记录没清。Mole 这个免费小工具能一次扫描全部找出,还按误删风险分好类,worktree 要 git 确认没独有改动才让删,比较稳。

Claude Code、Codex 和 Cursor 会在本地电脑留下大量残留:已删除项目的聊天记录、旧版 CLI 构建文件、缓存、改动已合并的 worktree,以及指向已卸载程序的 MCP 配置条目。清理工具 Mole(支持 Mac 和 Windows,网站 mole.fit)可以一站式扫描并清理这些文件。

图片来源 · Tw93
正文

在 Clean 页面点击右上角的小月亮图标,一次扫描会按风险程度分类:缓存和旧 CLI 构建默认勾选;聊天记录默认不勾选,可按工具单独设置保留窗口;已卸载工具的残留单独列出。所有选项排除最近 24 小时内使用过的文件,删除内容统一进入回收站。

Mac 版额外支持清理 worktree、闲置 30 天以上的 CLI,以及失效的 hook 和 MCP 条目;worktree 只有在 git 确认没有未合并改动后才会出现在清理列表中。对同时使用多个 AI 编程工具的开发者来说,这类残留长期占用磁盘并可能泄露项目对话内容。

原文 · Tw93

Claude Code, Codex and Cursor leave a lot on your computer: chats for projects you deleted, old CLI builds, caches, worktrees whose changes already landed, and MCP entries pointing at programs that are gone. Mole for Mac and Windows cleans it up in one place: mole.fit Click the small moon at the top right of the Clean page, and one scan sorts everything by how much removing it could hurt: • Caches and old CLI builds, ticked by default • Chats, unticked, with a retention window you pick per tool • Leftovers of tools you already removed Nothing used in the last 24 hours is listed, and everything goes to the Trash or the Recycle Bin. On the Mac it also covers worktrees, CLIs unused for 30 days and broken hook and MCP entries, and a worktree only shows up when git proves it holds nothing unique.

产业坐标与信源核验

本条情报归属 AITOP「技巧」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Claude Code、Codex、Cursor、Mole,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「Tw93」(@HiTw93),经 AITOP 多维评分管线结构化提炼。

发现摘要或翻译有误? 告诉我们