# Local Memory Search

> Lightweight semantic search for OpenClaw memory files. No external API needed.

- Skill: `modbender/local-memory-search` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add modbender/local-memory-search`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/local-memory-search/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/modbender/local-memory-search

---


# Local Memory Search

Lightweight semantic search for OpenClaw memory files. No external API needed.

## Usage

```bash
python3 search.py "your query"
```

Build index:
```bash
python3 search.py --build
```

## Features

- Searches MEMORY.md and memory/*.md
- TF-IDF based semantic matching
- Zero external dependencies
- Fast local execution
- Returns top snippets with file path and line numbers

## How It Works

1. Builds inverted index of all memory files
2. Uses TF-IDF scoring for relevance
3. Returns ranked results with context

## Requirements

- Python 3.8+
- No pip packages needed (uses stdlib only)

