Mole 一键清理 Claude Code、Codex、Cursor 残留的缓存与会话记录
如果你电脑里装过 Claude Code、Codex 或 Cursor,大概率留了一堆缓存和聊天记录没清。Mole 这个免费小工具能一次扫描全部找出,还按误删风险分好类,worktree 要 git 确认没独有改动才让删,比较稳。
Claude Code、Codex 和 Cursor 会在本地电脑留下大量残留:已删除项目的聊天记录、旧版 CLI 构建文件、缓存、改动已合并的 worktree,以及指向已卸载程序的 MCP 配置条目。清理工具 Mole(支持 Mac 和 Windows,网站 mole.fit)可以一站式扫描并清理这些文件。
在 Clean 页面点击右上角的小月亮图标,一次扫描会按风险程度分类:缓存和旧 CLI 构建默认勾选;聊天记录默认不勾选,可按工具单独设置保留窗口;已卸载工具的残留单独列出。所有选项排除最近 24 小时内使用过的文件,删除内容统一进入回收站。
Mac 版额外支持清理 worktree、闲置 30 天以上的 CLI,以及失效的 hook 和 MCP 条目;worktree 只有在 git 确认没有未合并改动后才会出现在清理列表中。对同时使用多个 AI 编程工具的开发者来说,这类残留长期占用磁盘并可能泄露项目对话内容。
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.
This report is categorized under AITOP's "How-to" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Claude Code, Codex, Cursor, Mole.
Source attribution: curated from Tw93 (@HiTw93).