历史与记忆
即使智能体已删除写过的内容,你仍能搜索到。
Caprock 会导入磁盘上仍保留的会话并记录新会话,因此即使超过 Claude Code 的 30 天清理期限,仍可搜索这些会话。
经过 Apple 公证。同一个文件支持 Apple 芯片和 Intel,适用于 macOS 13 或更高版本。
适用于 Windows 10 22H2 或更高版本,x64。Windows 可能会询问一次是否运行:点击 More info,再点击 Run anyway。
粘贴到 Claude Code、Codex 或任何编程智能体中。
查看它的内容 ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local app for my coding agents: https://github.com/dspv/caprock What the install does and how to remove it: https://github.com/dspv/caprock/blob/master/docs/install-agent.md Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or /linux.sh. Read it before you run it if you like. Leave my Claude Code settings alone; the app asks me itself. Tell me when it's open.
或自行运行:
粘贴到 PowerShell:它会为你安装并打开 Caprock。
105 answers matching “the bug” · across every session and folder
- caprock · claude-opus-525 days ago
Found the bug. The cleanup revokes
url, buturlis assigned inside the async closure — when the effect re-runs on a period change, the new effect's cleanup captures its ownurlvariable. - caprock · claude-opus-5 · mid-thought25 days ago
The effect looks correct — it depends on
period. So the bug is likely incollectCardData, which may ignore the period. - caprock · claude-opus-525 days ago
This confirms the bug's real scope: seven elements on this screen alone now show their intended colours — the premium button, accent buttons, and ok/warn status pills — all of which had been silently grey.
一台电脑上的 105 条真实回答中的三条:搜索“the bug”,找到 Claude 在 25 天前的解释。
Claude Code 历史记录存在哪里,如何搜索?
每段 Claude Code 对话都是一个 ~/.claude/projects/<project>/<session-id>.jsonl 文件,默认在 30 天后删除;cleanupPeriodDays 可以延长保留时间,但无法恢复已删除的文件。claude --resume 会在你输入时筛选会话,codex resume --all 对 Codex 也一样。两者都不搜索对话内容,要搜索内容,请用 rg -i "keyword" ~/.claude/projects ~/.codex/sessions 搜索对话记录。
Caprock 会在 Claude Code、Codex 和 OpenCode 会话写入时,将每个会话复制到本地数据库,即使原文件已删除,也能搜索智能体写过的内容。详见 Claude Code 历史记录。
跨会话搜索
一次搜索,查找 Claude Code、Codex、OpenCode 和 DeepSeek Harness 的回复,以及你向 Gemini 提过的问题。
保留超过 30 天
Claude Code 默认在 30 天后删除对话记录;Caprock 已读取的内容会保留。
以聊天形式阅读会话
智能体标签页可在终端与同一对话的聊天视图之间切换,工具调用折叠为一行。
接着上次继续
在你工作过的文件夹中启动新的 Claude Code 会话时,会将上一个会话在此处的最后一条回复交给新会话。默认开启。
2nd Brain
记住智能体学到的内容,让下一个智能体从一开始就更懂你的项目。你同意后,你自己的 claude 会读取电脑上已结束的会话;选一个仓库,就能看到下次会话将获得的记忆。如果新决策与现行决策冲突,它会在智能体同时执行两者之前指出冲突并解释原因:保留其中一项,或将两项都忽略。免费;随着时间积累,成为你的私人 Jarvis,一个了解你项目的助手。
在另一个智能体中继续
先阅读摘要,了解说了什么、改了什么、打开了什么,再用你选择的智能体开始新会话。
caprock export
所有智能体的数据汇集在磁盘上的一张表中,可导出为 TSV、CSV 或 JSON lines,用于电子表格或 notebook。
caprock mcp
只读 MCP 服务器:Claude Code、Codex 或任何 MCP 客户端都可以查询 2nd Brain、历史会话、成本和 CI。它绝不会启动或停止会话,也不会向会话输入内容。
导入你的 Obsidian 笔记
将笔记库导入 2nd Brain,不改动库中的文件;允许智能体使用笔记由单独的开关控制,默认关闭。
用你正在运行的会话试试。
免费开源 · macOS、Windows 和 Linux · 无需账号
经过 Apple 公证。同一个文件支持 Apple 芯片和 Intel,适用于 macOS 13 或更高版本。
适用于 Windows 10 22H2 或更高版本,x64。Windows 可能会询问一次是否运行:点击 More info,再点击 Run anyway。
粘贴到 Claude Code、Codex 或任何编程智能体中。
查看它的内容 ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local app for my coding agents: https://github.com/dspv/caprock What the install does and how to remove it: https://github.com/dspv/caprock/blob/master/docs/install-agent.md Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or /linux.sh. Read it before you run it if you like. Leave my Claude Code settings alone; the app asks me itself. Tell me when it's open.
或自行运行:
粘贴到 PowerShell:它会为你安装并打开 Caprock。