Search memory

From nowledge-co/community · View interactive version

Search memory is an AI agent skill from the GitHub repository nowledge-co/community. Search memory and thread history when past knowledge would materially improve the answer. Route between distilled memories and prior discussions instead of treating them as separate silos.

How to use this skill

Skill file

Search Memory

When to Search

Strong signals — search when:

Contextual signals — consider searching when:

Skip when:

Tool Usage

Start with durable knowledge:

nmem --json m search "3-7 core concepts"

Use thread search when the user is really asking about a prior conversation:

nmem --json t search "query" --limit 5

If a memory result includes source_thread, or thread search identifies the likely discussion, fetch 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.

Response Contract

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

exact times, people, and wording live in the source conversation. A result's

source_pointer names that thread and the message range the Memory came

from. For one bounded CLI read, use the offset and limit from

source_pointer.expand in nmem --json t show <thread_id> --offset <offset> --limit <limit>.

If the hint omits the range, use offset 0 and limit 8. Verify a result

labeled anchor_support (low confidence) there before relying on it.

names, exact words, and distinctive terms, and try a few phrasings when the

first finds nothing. A search_guidance hint lists the query terms no Memory

contained; they are good thread-search terms. A thread_evidence block holds

a few keyword-matched raw messages; treat them as leads, not conclusions.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.