历史与记忆

即使智能体已删除写过的内容,你仍能搜索到。

Caprock 会导入磁盘上仍保留的会话并记录新会话,因此即使超过 Claude Code 的 30 天清理期限,仍可搜索这些会话。

Claude Code 历史记录的去向 →

Caprock 是桌面应用:安装在电脑上,而非手机上。

或通过邮件把链接发给自己:

支持 macOS、Windows 和 Linux。手机通过二维码与其配对。 安装选项 →

Download on the App StoreDownload on the App Store

在 iPhone 上与应用配对。

下载 Mac 版

经过 Apple 公证。同一个文件支持 Apple 芯片和 Intel,适用于 macOS 13 或更高版本。

下载 Windows 版

适用于 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.

或自行运行:

curl -fsSL https://caprock.dev/mac.sh | sh

粘贴到 Terminal:它会安装并打开 Caprock。

Homebrew

或自行运行:

irm https://caprock.dev/win.ps1 | iex

粘贴到 PowerShell:它会为你安装并打开 Caprock。

或自行运行:

curl -fsSL https://caprock.dev/linux.sh | sh

粘贴到终端:它会为你安装 Caprock,无需 sudo。

或下载 AppImage

⌕ the bug
search

105 answers matching “the bug” · across every session and folder

  • caprock · claude-opus-525 days ago

    Found the bug. The cleanup revokes url, but url is assigned inside the async closure — when the effect re-runs on a period change, the new effect's cleanup captures its own url variable.

  • caprock · claude-opus-5 · mid-thought25 days ago

    The effect looks correct — it depends on period. So the bug is likely in collectCardData, 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 历史记录。

用你正在运行的会话试试。

免费开源 · macOS、Windows 和 Linux · 无需账号

Caprock 是桌面应用:安装在电脑上,而非手机上。

或通过邮件把链接发给自己:

支持 macOS、Windows 和 Linux。手机通过二维码与其配对。 安装选项 →

Download on the App StoreDownload on the App Store

在 iPhone 上与应用配对。

下载 Mac 版

经过 Apple 公证。同一个文件支持 Apple 芯片和 Intel,适用于 macOS 13 或更高版本。

下载 Windows 版

适用于 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.

或自行运行:

curl -fsSL https://caprock.dev/mac.sh | sh

粘贴到 Terminal:它会安装并打开 Caprock。

Homebrew

或自行运行:

irm https://caprock.dev/win.ps1 | iex

粘贴到 PowerShell:它会为你安装并打开 Caprock。

或自行运行:

curl -fsSL https://caprock.dev/linux.sh | sh

粘贴到终端:它会为你安装 Caprock,无需 sudo。

或下载 AppImage

应用本身是英文界面。