---
name: Context Mode Search
slug: context-mode-search
category: AI Engineering
description: Context Mode Search searches the persistent FTS5 knowledge base for previously indexed local project content, documentation, and session memory. Use it when an agent needs to recall indexed context without rereading raw sources, via MCP tool or CLI.
github: "https://github.com/mksglu/context-mode/tree/main/skills/ctx-search"
language: TypeScript
stars: 19850
forks: 1430
install: "npx degit https://github.com/mksglu/context-mode/tree/main/skills/ctx-search ~/.claude/skills/ctx-search"
installs_to: ~/.claude/skills/ctx-search
source_path: skills/ctx-search/SKILL.md
collection_size: 11
category_size: 2451
collection_url: "https://dirskills.com/collections/mksglu/context-mode"
added: 2026-08-14T07:12:39.804Z
last_synced: 2026-08-14T07:12:39.804Z
canonical_url: "https://dirskills.com/skills/context-mode-search"
---

# Context Mode Search

Context Mode Search searches the persistent FTS5 knowledge base for previously indexed local project content, documentation, and session memory. Use it when an agent needs to recall indexed context without rereading raw sources, via MCP tool or CLI.

**Install:**

```bash
npx degit https://github.com/mksglu/context-mode/tree/main/skills/ctx-search ~/.claude/skills/ctx-search
```

## README

# Context Mode Search

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
})
```

5. If MCP tools are unavailable, fall back to the CLI:

```bash
context-mode search "authentication middleware" --source project:<name> --limit 5
```

6. If the index is empty, tell the user to run `/context-mode:ctx-index` or `context-mode index <path>` first.
