search-memory
Search memory store when past insights would improve response. Recognize when user's stored breakthroughs, decisions, or solutions are relevant. Search…
от nowledge-co★ 206 звёзд на GitHub
Установить search-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Search Memory
When to Search (Autonomous Recognition)
Strong signals:
- Continuity: Current topic connects to prior work
- Pattern match: Problem resembles past solved issue
- Decision context: "Why/how we chose X" implies documented rationale
- Recurring theme: Topic discussed in past sessions
- Implicit recall: "that approach", "like before"
Contextual signals:
- Complex debugging (may match past root causes)
- Architecture discussion (choices may be documented)
- Domain-specific question (conventions likely stored)
Skip when:
- Fundamentally new topic
- Generic syntax questions
- Fresh perspective explicitly requested
Tool Usage
Use nmem CLI with --json flag for programmatic search:
# Basic search
nmem --json m search "3-7 core concepts"
# With filters
nmem --json m search "API design" --importance 0.8
# With labels (multiple labels use AND logic)
nmem --json m search "authentication" -l backend -l security
# With time filter
nmem --json m search "meeting notes" -t week
If the runtime already knows the active project or agent lane, add --space "<space name>".
Query: Extract semantic core, preserve terminology, multi-language aware
Filters:
--importance MIN: Minimum importance score (0.0-1.0)-l, --label LABEL: Filter by label (can specify multiple)-t, --time RANGE: Time filter (today, week, month, year)-n NUM: Limit number of results (default: 10)
JSON Response: Parse memories array, check score field for relevance
Use thread search when the user is really asking about a prior conversation, previous session, or exact discussion:
nmem --json t search "query" --limit 5
If a memory result includes source_thread or thread search finds the likely conversation, inspect it once for the specific messages needed:
nmem --json t show <thread_id> --limit 8 --offset 0 --content-limit 1200
Use a known target --offset once; do not advance through pages.
Scores: 0.6-1.0 direct | 0.3-0.6 related | <0.3 skip
Examples:
# Search with importance filter
nmem --json m search "database optimization" --importance 0.7
# Search with multiple labels
nmem --json m search "React patterns" -l frontend -l react
# Search recent memories
nmem --json m search "bug fix" -t week -n 5
Response
Found: Synthesize, cite when helpful None: State clearly, suggest distilling if current discussion valuable
Troubleshooting
If nmem is not in PATH: pip install nmem-cli, or on Arch Linux yay -S nmem-cli / paru -S nmem-cli
For remote servers: run nmem config client set url https://... and nmem config client set api-key ... once on this machine.
Run nmem status to check server connection.
Bounded thread reads
Search memories or threads first, then choose the specific conversation and message range needed. Call thread_fetch_messages, a host thread-fetch tool, or nmem --json t show at most once per question, using a small message limit (for example 8) and a content limit of 1200 where supported. A known target range may use a nonzero offset once.
Never loop over offsets to reconstruct a conversation. Do not raise --content-limit to compensate for a slow or incomplete read. Small output limits do not guarantee cheap server-side work on every deployed backend. If a read is slow, incomplete, fails or times out, stop, report the evidence gap, and refine the search rather than retrying pages. A later explicit user request for another range is a new bounded read; a routine “continue” is not permission to drain the thread.
What Each Search Matches
- Memory search is semantic: describe the concept. Memories are distilled, so
exact times, people, and wording live in the source conversation. A result's
source_pointernames that thread and the message range the Memory came from. For one bounded CLI read, use the offset and limit fromsource_pointer.expandinnmem --json t show <thread_id> --offset <offset> --limit <limit>. If the hint omits the range, use offset 0 and limit 8. Verify a result labeledanchor_support(low confidence) there before relying on it. - Thread search is keyword full-text search, not semantic search: query with
names, exact words, and distinctive terms, and try a few phrasings when the
first finds nothing. A
search_guidancehint lists the query terms no Memory contained; they are good thread-search terms. Athread_evidenceblock holds a few keyword-matched raw messages; treat them as leads, not conclusions.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл search-memory?
Search memory store when past insights would improve response. Recognize when user's stored breakthroughs, decisions, or solutions are relevant. Search proactively based on context, not just explicit requests.
Как установить скилл search-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл search-memory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…