ctx-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context Mode Search

Context Mode 搜索

Search indexed content without rereading raw sources into conversation context.
无需将原始源内容重新读入对话上下文,即可搜索已索引的内容。

Instructions

操作说明

  1. Prefer the
    ctx_search
    MCP tool when it is available.
  2. Batch all related questions in one
    queries
    array.
  3. Scope with
    source
    when the user names a project or indexed label.
  4. Use short, specific queries of two to four technical terms.
javascript
ctx_search({
  source: "project:<name>",
  queries: ["authentication middleware", "token refresh"],
  limit: 5
})
  1. If MCP tools are unavailable, fall back to the CLI:
bash
context-mode search "authentication middleware" --source project:<name> --limit 5
  1. If the index is empty, tell the user to run
    /context-mode:ctx-index
    or
    context-mode index <path>
    first.
  1. ctx_search
    MCP工具可用时,优先使用该工具。
  2. 将所有相关问题批量放入一个
    queries
    数组中。
  3. 当用户指定项目或索引标签时,使用
    source
    参数限定范围。
  4. 使用由2到4个技术术语组成的简短、具体的查询语句。
javascript
ctx_search({
  source: "project:<name>",
  queries: ["authentication middleware", "token refresh"],
  limit: 5
})
  1. 如果MCP工具不可用,退而使用CLI:
bash
context-mode search "authentication middleware" --source project:<name> --limit 5
  1. 如果索引为空,请告知用户先运行
    /context-mode:ctx-index
    context-mode index <path>
    指令。