Linux CLI 工具

面向 AI 编程会话的 Total Recall(跨会话历史检索)

搜索你有过的每一次 Claude Code 和 Codex CLI 对话。几周前的那条命令、那个修复、那个解决方案,几秒钟就能找到。

Claude Code(Anthropic) Codex CLI(OpenAI)
立即安装
$ /total-recall how did i fix the auth bug?

⏺ Skill(total-recall)
⎿ Successfully loaded skill

⏺ Contextify Total Recall

  Found: Auth bug fix from Jan 8, 2026

  Summary:
  - Race condition in token refresh
  - Fixed with mutex lock in AuthManager.swift:142
  - Committed as "fix(auth): prevent token refresh race"

AI 对话的导入引擎。

Linux CLI 会为 Claude Code 和 Codex 的对话记录建立索引,存入同一个可搜索的数据库。你可以通过命令行工具、Total Recall 技能(skill),或 Claude Code 或 Codex 中的研究型子智能体访问这些记录。

注意:实时摘要和可视化对话时间线是 macOS 独有的功能。Linux CLI 专注于索引和搜索。

为 Linux 高级用户打造

🔍

全文搜索

即时搜索所有对话。按关键词、项目或时间范围查找解决方案,无需记住原话。

📂

跨项目查询

一次搜索所有项目,或筛选到某个仓库。完整的 AI 编程历史集中在一处。

🌳

Git worktree(工作树)支持

对 Git worktree 提供一流支持。Contextify 理解你的多分支工作流,让上下文井然有序。

复杂搜索在后台运行

需要多步研究时,可以交给研究型子智能体。在 Claude Code 中,它是 query:contextify-researcher(随插件提供)。在 Codex 中,它是 contextify_researcher(安装到 $CODEX_HOME/agents/)。两者都会在只读沙盒中运行多次查询,并返回附带引用的综合结论。

> Use a task to figure out what decisions we made about the database schema

● query:contextify-researcher(Search for database schema decisions)
⎿ Done (9 tool uses · 34.1k tokens · 1m 14s)

⏺ Contextify Total Recall

  Found: 4 conversations about schema design

  Key decisions:
  - Switched from JSON to normalized tables (Jan 3)
  - Added composite index on project_id + timestamp
  - Kept content as TEXT, not BLOB

开始使用

一行命令安装

curl -fsSL https://contextify.sh/install.sh | sh

自动检测架构(x86_64 或 ARM64),安装二进制文件,导入现有对话记录,并通过 systemd 配置自动导入。

安装程序会:

  • 下载适合当前架构的最新 contextify 二进制文件
  • 安装到 ~/.local/bin/(符合 XDG 规范)
  • 为 Claude Code 和 Codex 安装 Total Recall 技能
  • 导入 ~/.claude/ 和 ~/.codex/ 中的现有对话记录
  • 配置 systemd 用户定时器,定期自动导入

或手动下载

Intel / AMD

大多数服务器和台式机

下载 x86_64 版

ARM64

Raspberry Pi、AWS Graviton

下载 ARM64 版

验证与使用

# Check installation
$ contextify status

# Run health check
$ contextify doctor

# Then in Claude Code or Codex, use the skill:
$ /total-recall what did we build yesterday?

帮助与支持

配置指南、定期导入和故障排查,请参阅:

文档 联系我们(英文)

系统要求

Linux x86_64 或 ARM64

Ubuntu、Debian、Fedora、Arch 等

Claude Code 或 Codex CLI

至少已安装一种 AI 编程工具

CLI 工具从 ~/.claude/ 和 ~/.codex/ 读取对话记录

也提供 macOS 版

完整的 Contextify 应用还提供可视化时间线、实时监控和 AI 摘要。

下载 Mac 版