# Memory Search

Search conversation history and semantic memory to recall previous discussions...

- Repository: https://github.com/davila7/claude-code-templates (33041 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add davila7/claude-code-templates --skill memory-search -g -a claude-code -y`
Codex: `npx skills add davila7/claude-code-templates --skill memory-search -g -a codex -y`
Cursor: `npx skills add davila7/claude-code-templates --skill memory-search -g -a cursor -y`
Gemini CLI: `npx skills add davila7/claude-code-templates --skill memory-search -g -a gemini-cli -y`

## Description

Search conversation history and semantic memory to recall previous discussions, decisions, and context. Use when the user asks to "search memory", "what did we discuss", "remember when", "find previous conversation", "check history", or before starting work to recall prior decisions.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# AI Maestro Memory Search

Search your conversation history using semantic, keyword, and symbol matching. Recall past decisions, discussions, and context across sessions. Part of the [AI Maestro](https://github.com/23blocks-OS/ai-maestro) suite.

## Prerequisites

Requires [AI Maestro](https://github.com/23blocks-OS/ai-maestro) running locally. Memory indexing uses CozoDB for vector search.

```bash
# Install memory tools
git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-memory-tools.sh
```

## Core Behavior

Before starting any task, search memory for relevant context:

```
Receive instruction -> Search memory -> Then proceed
```

## Commands

| Command | Description |
|---------|-------------|
| `memory-search.sh "<query>"` | Hybrid search (recommended) |
| `memory-search.sh "<query>" --mode semantic` | Find conceptually related |
| `memory-search.sh "<query>" --mode term` | Exact text matching |
| `memory-search.sh "<query>" --mode symbol` | Code symbol matching |
| `memory-search.sh "<query>" --role user` | Only user messages |
| `memory-search.sh "<query>" --role assistant` | Only assistant messages |

## Search Modes

| Mode | Best For |
|------|----------|
| `hybrid` (default) | General search, most cases |
| `semantic` | Related concepts, different wording |
| `term` | Exact function/class names |
| `symbol` | Code identifiers across contexts |

## Usage Examples

```bash
# User asks to continue previous work
memory-search.sh "authentication"

# Find a specific component discussion
memory-search.sh "PaymentService" --mode term

# Find related design discussions
memory-search.sh "error handling patterns" --mode semantic

# Find code symbol references
memory-search.sh "processPayment" --mode symbol
```

## Combining with Other Skills

The rest: https://github.com/davila7/claude-code-templates/blob/HEAD/cli-tool/components/skills/ai-maestro/memory-search/SKILL.md
