# Search Memory

> Search ai-memory for relevant stored memories

- Skill: `hidden-history/search-memory-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hidden-history/search-memory-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hidden-history/search-memory-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Hidden-History (https://skillmd.com/u/hidden-history)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/hidden-history/search-memory-2

---


Search ai-memory for relevant stored memories matching the user's query.

## Instructions

1. Invoke the search script with **no shell**: pass a discrete argv array (e.g. Cursor Shell tool argument list, or equivalent) — `$AI_MEMORY_INSTALL_DIR/scripts/memory/run-with-env.sh`, then `$AI_MEMORY_INSTALL_DIR/scripts/memory/search_cli.py`, then the user query string as its **own** token. Do not embed the query inside a single quoted shell string.
2. Present the ranked results clearly to the user.

