R

recall

by @arjunkmrmv
4.4(115)

通过BM25排名进行全文搜索,检索所有过去的Claude Code和Codex会话记录,帮助用户快速回顾和查找历史信息。

Information RetrievalMemory SystemsAI MemoryContextual RecallKnowledge BasesGitHub
安装方式
npx skills add arjunkmrm/recall --skill recall
compare_arrows

Before / After 效果对比

1
使用前

在没有 `recall` 技能时,用户在需要回顾或重用之前 Claude 或 Codex 会话中的信息时,往往需要手动翻阅大量的历史记录,或者在记忆中搜索。这不仅耗时耗力,而且很容易遗漏关键信息,导致重复提问或重新开始。

使用后

使用 `recall` 技能后,用户可以通过关键词或短语对所有历史 Claude 和 Codex 会话进行全文搜索。系统能够快速定位到相关的会话片段,帮助用户重用之前的上下文、代码或解决方案,极大地提高了信息检索的效率和工作连续性。

description SKILL.md

recall

/recall — Search Past Claude & Codex Sessions

Search all past Claude Code and Codex sessions using full-text search with BM25 ranking.

Usage

python3 ~/.claude/skills/recall/scripts/recall.py QUERY [--project PATH] [--days N] [--source claude|codex] [--limit N] [--reindex]

Examples

# Simple keyword search
python3 ~/.claude/skills/recall/scripts/recall.py "bufferStore"

# Phrase search (exact match)
python3 ~/.claude/skills/recall/scripts/recall.py '"ACP protocol"'

# Boolean query
python3 ~/.claude/skills/recall/scripts/recall.py "rust AND async"

# Prefix search
python3 ~/.claude/skills/recall/scripts/recall.py "buffer*"

# Filter by project and recency
python3 ~/.claude/skills/recall/scripts/recall.py "state machine" --project ~/my-project --days 7

# Search only Claude Code sessions
python3 ~/.claude/skills/recall/scripts/recall.py "buffer" --source claude

# Search only Codex sessions
python3 ~/.claude/skills/recall/scripts/recall.py "buffer" --source codex

# Force reindex
python3 ~/.claude/skills/recall/scripts/recall.py --reindex "test"

Query Syntax (FTS5)

  • Words: bufferStore — matches stemmed variants (e.g., "discussing" matches "discuss")

  • Phrases: "ACP protocol" — exact phrase match

  • Boolean: rust AND async, tauri OR electron, NOT deprecated

  • Prefix: buffer* — matches bufferStore, bufferMap, etc.

  • Combined: "state machine" AND test

After Finding a Match

To resume a session, cd into the project directory and use the appropriate command:

# Claude Code sessions [claude]
cd /path/to/project
claude --resume SESSION_ID

# Codex sessions [codex]
cd /path/to/project
codex resume SESSION_ID

Each result includes a File: path. Use it to read the raw transcript (auto-detects format):

python3 ~/.claude/skills/recall/scripts/read_session.py <File-path-from-result>

If results are missing File: paths, run --reindex to backfill.

Notes

  • Index is stored at ~/.recall.db (SQLite FTS5, auto-migrated from ~/.claude/recall.db)

  • Indexes both ~/.claude/projects/ (Claude Code) and ~/.codex/sessions/ (Codex)

  • First run indexes all sessions (a few seconds); subsequent runs are incremental

  • Only user and assistant messages are indexed (tool calls, thinking blocks, state snapshots skipped)

  • Results show [claude] or [codex] tags to indicate the source

Weekly Installs305Repositoryarjunkmrm/recallGitHub Stars111First SeenMar 3, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex298gemini-cli293kimi-cli292amp292cline292github-copilot292

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量2.9K
评分4.4 / 5.0
版本
更新日期2026年4月27日
对比案例1 组

用户评分

4.4(115)
5
20%
4
50%
3
27%
2
3%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年4月27日
🎁 Agent 知识卡片