Index a local file or directory into context-mode's persistent FTS5 knowledge base so future ctx_search calls can retrieve focused snippets without rereading ra
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ctx-index-4b7617931d9e ,按照其中的说明把「ctx-index」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Index local project content for later search.
ctx_index MCP tool when it is available.path, not large inline content, so file bytes do not enter the conversation.ctx_index({
path: ".",
source: "project:<name>",
maxDepth: 5,
maxFiles: 200
})
context-mode index . --source project:<name>
ctx_search({ source: "project:<name>", queries: ["..."] })
--exclude or exclude for project-specific noisy paths.maxFiles above 500.