Chatdex — AI skill for Claude Code
本地检索 Claude Code / Codex / Grok CLI 的全部历史会话:CJK 友好的 SQLite FTS5 全文检索 + 本地 LLM 摘要 + MCP 端点.
How to install Chatdex
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cygmris/chatdex and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Chatdex does
本地检索 Claude Code / Codex / Grok CLI 的全部历史会话:CJK 友好的 SQLite FTS5 全文检索 + 本地 LLM 摘要 + MCP 端点。只读、只监听 127.0.0.1。Search your entire Claude Code / Codex / Grok CLI session history locally.
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Peekaboo — Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, o 3.2k ★
- Ataru — High-performance AI memory retrieval for local agent history — a Rust search core (SDK / API / JSON CLI) plus 351 ★
README
chatdex
**你和 AI 的全部对话记录,终于能搜了。** 支持 Claude Code、Codex、Grok CLI; 跑在你自己机器上,只读,不联网。
简体中文 | [English](README.en.md)
[](https://github.com/cygmris/chatdex/actions/workflows/ci.yml) [](https://github.com/cygmris/chatdex/releases/latest) [](https://go.dev) [](LICENSE) [](https://sqlite.org/fts5.html) [](https://modelcontextprotocol.io)
你和 AI 一起做的每个决定、踩过的每个坑、写对的每条命令,都躺在几千个 JSONL 文件里, 没有任何入口能找回来。chatdex 给它们一个入口——给你,也给 agent 自己。

它解决什么
`~/.claude/projects/`、`~/.codex/sessions/`、`~/.grok/sessions/` 和 `~/.cursor/projects/` 里堆着你全部的工作记录。`grep` 撑不住,因为:
- 中文搜不到。 SQLite FTS5 的
unicode61把一整句中文当成一个 token,搜「限流」搜不出「请求限流」。 - 命中最多 ≠ 你要找的。 真实语料实测:命中最多的两个会话(2272 / 2154 次)都不是目标, 目标只命中 669 次——那两个只是在长日志里反复提到这个词。
- 答案往往在工具调用里。 「上次那条命令怎么写的」不在对话正文,在
tool_use的参数里。 - 你记的词和原文的词对不上。 记忆里是「增量备份」,原文写的是「类似 TimeMachine 的管理工具」。
这四条各有各的解法,每条都有实测数字——见 [`docs/architecture.md`](docs/architecture.md)。
特性
| 🔍 中英混合全文检索 | CJK 单字切分 + FTS5,中位 97 ms(4662 个会话、158 万个内容块的真实语料);过滤栏的日期是自研的「消息时间」范围选择器(预设 / 月历 / 手输,筛的是消息写下的时间) |
| 🔁 近义词 | 搜 hash 也能找到写着「提交号」「SHA」的会话。词表是一个文本文件,改了下一次检索就生效;靠近义词找到的结果会标出来,不冒充原词命中 |
| 🧠 摘要也能被搜到 | 本地 LLM 给每个会话写一句话摘要。摘要用的是概念词,所以你凭印象搜也搜得到——上面那条「记的词和原文对不上」就是这么填平的 |
| 💬 问一问 | 用大白话提问,LLM 多轮改写查询自己重试,并把每一轮搜了什么都摊开给你看;可限定在某个项目内问,也可全库问 |
| 🏷 会话名 | 你 /rename 起的名字优先于 LLM 摘要显示——人写的比机器猜的可信 |
| 🔽 下拉都能打字搜 | 项目、来源、内容类型、工具名、问一问的范围、设置页的枚举——全是自研下拉,输入即过滤、键盘可操作;项目 300 个、工具名 477 个也一下就选到,工具名还能直接输入列表里没有的 |
| 🕘 时间线与会话回读 | 按项目聚合、按项目翻页;筛选条件同样生效;点进去逐条回读原始对话,长会话分页;**按类型 |
Related Skills
Agent Summary
Aggregate and summarize local AI coding agent sessions (Claude Code, Codex, ZCode, Pi, Hermes, OpenCode, Kimi.
Brain CLI
Persistent memory for AI agents and personal knowledge management. Single-file Python CLI: hybrid semantic + k
TokenForge
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memo
Toktoken
TokToken is a fast, single-binary C codebase indexer for AI coding agents. Powered by universal-ctags and SQLi
Soroka
Personal Telegram knowledge base — forward anything, search via DM. Hybrid SQLite + FTS5 + vector + voice, MCP
Devmemory
🧠 Persistent local-first memory for AI coding agents — MCP server + CLI for Claude Code & Cursor. SQLite FTS5
Related Agents
CLI Researcher
Researches how an agent CLI (Codex, Gemini CLI, Kimi CLI, Grok, opencode…) stores its configuration — skills,
Claude Context Local
Code search MCP for Claude Code. Make entire codebase the context for any coding agent. Embeddings are created
Backend Format Expert
Domain advisor for AI CLI transcript formats (Claude, Codex, Pi, Hermes, agy), SQLite stores, Protobuf wire fo