memfs-search
This skill enables semantic search across agent memory files using QMD, finding conceptually related content beyond keyword matching.
Identity proven by GitHub's verified organisation badge (letta-ai)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- MIT (permissive)
- Pin
- 6785511pinned Oct 9, 2026
- Context cost
- about 820 tokenswhen the skill loads
- GitHub stars
- 148on letta-ai/skills
- Scripts
- 1 script
What it does
“Semantic search over agent memory files. Use when you need to find conceptually related memory blocks, discover forgotten reference files, check what you already know before creating new memory, or search beyond exact keyword matching. Currently supports QMD (local, no API keys).”
Generated summary from the skill's own text
This skill enables semantic search across agent memory files using QMD, finding conceptually related content beyond keyword matching. It supports three search modes (keyword, semantic, and hybrid) with local embedding models that require one-time setup. Use it to discover forgotten files, verify existing knowledge before creating new memory, and answer broad conceptual questions about stored information.
When to use it
- Before creating new memory files, verify the topic does not already exist
- User asks if you know about something and keyword search misses
- During memory reorganization to verify concept coverage exists
- Debugging when user insists you were told something previously
When not to
- Need exact string matching; use Grep instead
- Looking for files by name or pattern; use Glob
- Already know the file path; use Read directly
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add letta-ai/skills --skill memfs-searchInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install letta-ai/skills memfs-search@6785511e7d3913d9ec598435a77ae637cd45fc89Installs the commit we checked (6785511).
Copy by hand
Download the folder at 6785511 and put it in .claude/skills/memfs-search for Claude Code and in .agents/skills/memfs-search for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "memfs-search" by Letta. Source, pinned to commit 6785511e7d3913d9ec598435a77ae637cd45fc89: https://github.com/letta-ai/skills/tree/6785511e7d3913d9ec598435a77ae637cd45fc89/tools/memfs-search 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/memfs-search/ for Claude Code and .agents/skills/memfs-search/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/letta/memfs-search
SKILL.md at the pin
---
name: memfs-search
description: Semantic search over agent memory files. Use when you need to find conceptually related memory blocks, discover forgotten reference files, check what you already know before creating new memory, or search beyond exact keyword matching. Currently supports QMD (local, no API keys).
---
# MemFS Search
Semantic search over your memory filesystem. Useful when Grep isn't enough — finding conceptually related blocks, discovering forgotten reference files, or answering "what do I know about X" across all memory.
## Setup
First time only. Run the setup script to create the index and generate embeddings:
```bash
bash <SKILL_DIR>/scripts/memfs-search.sh setup
```
This creates a QMD collection over `$MEMORY_DIR`, adds context annotations, and embeds all `.md` files. First run downloads ~2GB of local GGUF models to `~/.cache/qmd/models/`.
For installation, embedding model options, and troubleshooting: [references/qmd-setup.md](references/qmd-setup.md).
## Searching
Three tiers. Pick based on what you know about your query:
| You have... | Use | Command | Speed |
|-------------|-----|---------|-------|
| An exact term or phrase | **keyword** | `search` | ~0.3s |
| A vague concept ("what do I know about X") | **semantic** | `vsearch` | ~2s cold, <1s warm |
| No idea, need the best results | **hybrid** | `query` | ~3s cold, <1s warm |
```bash
S="bash <SKILL_DIR>/scripts/memfs-search.sh"
# Keyword — fast, use first
$S search "lettabot architecture"
# Semantic — conceptual, use when keyword misses
$S vsearch "how does the user feel about code reviews"
# Hybrid — best quality, uses keyword + vectors + reranking
$S query "projects cameron is working on"
```
**Always start with keyword search.** Only escalate when it misses. Hybrid is 10x slower than keyword.
### Output Formats
All commands accept output flags forwarded to QMD:
```bash
$S search "topic" --json # structured (for processing)
$S search "topic" --files # file paths only (pipe into Read)
$S search "topic" --full # full document, not snippet
$S search "topic" -n 15 # more results (default: 5)
```
`--json` returns an array of objects with `file`, `score`, `snippet`, and `context` fields.
### Retrieval
Fetch a specific file or batch of files without searching:
```bash
# Single file
qmd get "system/human/identity.md" -c memory --full
# Batch by glob
qmd multi-get "reference/projects/*" -c memory
```
## When to Search Proactively
Don't wait to be asked. Search memory when:
1. **Before creating a new memory file** — check if the topic already exists. `$S search "topic" --files` tells you instantly.
2. **User asks "do you know about X"** — search before saying no. Reference files you haven't loaded recently might have it.
3. **During `/init` or memory reorg** — verify coverage. Search for key concepts and confirm they're stored somewhere.
4. **Debugging "I told you about this"** — the user thinks you should know something. Search memory before falling back to message history.
## Maintenance
After bulk memory changes (e.g. after `/init`, reorganization, creating many files):
```bash
bash <SKILL_DIR>/scripts/memfs-search.sh reindex
```
Check index health:
```bash
bash <SKILL_DIR>/scripts/memfs-search.sh status
```
## When NOT to Use
- Exact string matching — use Grep.
- Finding files by name/pattern — use Glob.
- Reading a file you already know the path to — use Read.
- Searching message history — use the `searching-messages` skill.
- The query is a single word that would match literally — keyword Grep is faster.
From letta-ai/skills at 6785511, shown as plain text under its license: MIT (permissive). The license text is in tools/memfs-search/LICENSE.
View SKILL.md on GitHub at 6785511Files
- SKILL.md3.6 KB · 60957c3d47b6
- LICENSE1.1 KB · cffc4dad09f3
- references/
- qmd-setup.md2.5 KB · 89cc49f2359c
- scripts/
- memfs-search.sh5.5 KB · 666ec4268737
4 files, 13 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 6785511More from Letta
acquiring-skills
Enables the agent to discover and install skills from multiple registries including Hermes Skills Hub, ClawHub, GitHub, and community repositories.
Agents not labelled yet · about 3.1K tokens · pinned 6 days ago
browser-use
Control a real browser using Chrome DevTools Protocol over WebSocket to navigate pages, interact with UI, fill forms, scrape sites, and capture screenshots or…
Claude Code, Codex, Cursor +4 · about 3.2K tokens · pinned 6 days ago
Context Doctor
Context Doctor investigates and repairs an agent's context including memory, system prompt, and skills by analyzing observed behavior as evidence.
Claude Code, Codex, Cursor +3 · about 1K tokens · pinned 6 days ago
creating-mods
This skill creates and edits mod files that extend local Letta instances with tools, slash commands, event handlers, custom model providers, permissions, and…
Claude Code, Codex, Cursor +4 · about 2.4K tokens · pinned 6 days ago
creating-skills
This skill guides developers in creating modular packages that extend Letta Code agent capabilities with specialized knowledge, workflows, tool integrations…
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.5K tokens · pinned 6 days ago
curating-memory-palace
This skill lets the agent maintain a Memory Palace, a structured dashboard view that shows the user what the agent is working on, what it could do next, and…
Agents not labelled yet · about 3.1K tokens · pinned 6 days ago
Related in Productivity
suggest-automations
This skill suggests three relevant automations to users based on their team role and connected apps, then builds the chosen workflow using the build-workflow…
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 1.9K tokens · pinned 6 days ago
agent-mail-automation
This skill enables agents to automate email operations through Composio's Agent Mail toolkit via the Rube MCP server.
by ComposioOfficial publisher
Claude Code, Codex, Cursor +3 · about 700 tokens · pinned 6 days ago
inbox-manager
This skill transforms an overflowing inbox into a short prioritized list by reading email from Gmail, Microsoft 365, or pasted text, sorting messages into…
by AnthropicOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.5K tokens · pinned 6 days ago
huggingface-papers
This skill retrieves and analyzes AI research papers from Hugging Face's paper index and arXiv by fetching paper content as markdown or structured metadata…
by Hugging FaceOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago
scheduling-tasks
This skill lets you create and manage scheduled tasks using the letta cron CLI, sending prompts to the agent on a timer for reminders, periodic work, and…
by LettaOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.3K tokens · pinned 6 days ago
figma-use-figjam
This skill enables agents to programmatically create and edit FigJam boards using the Figma plugin API via the use_figma MCP tool.
by FigmaOfficial publisher
Claude Code · about 1.7K tokens · pinned 6 days ago
Open roles at Letta
4 open roles on the jobs board
- Research Engineer / Scientist, Post-Training
San Francisco, California, United States (On-site)
- Research Engineer / Scientist, Self-Improvement
San Francisco, California, United States (On-site)
- Software Engineer, Agent Harness
San Francisco, California, United States (On-site)
- Research Engineer / Scientist, Memory
San Francisco, California, United States (On-site)