Search Memory

nowledge-co/community/nowledge-mem-openhands-plugin/skills/search-memory

作者 nowledge-co1f4d7eb61466dbfc93ce8d7a0a806c4d4a196dd0无许可证收录于 2026年10月9日更新于 2026年10月9日

Search your personal knowledge base when past insights would improve response. Recognize when stored breakthroughs, decisions, or solutions are relevant. Search proactively based on context, not just explicit requests.

AI 生成的概览

指导主动检索个人知识库,以获取过往的见解、决策和解决方案。

功能
该技能提供说明,用于在过往见解、决策或解决方案有助于改进回答时,检索名为 Nowledge Mem 的个人知识库。它说明何时检索,以及如何通过 MCP 工具或 nmem CLI 查询记忆、对话线程和知识图谱,并说明如何沿图谱链接追踪以及避免重复执行无结果的检索。它产出的是检索查询和检索到的记忆上下文,而不是文件或代码。
适用场景
当任务引用此前的工作、先前的修复或早先的决策,或延续某个已命名的功能、缺陷、重构、事故或子系统时使用。它也适用于评审、回归、发布或文档一致性等问题,以及与此前修复相似的调试,还有“那个方案”“像之前那样”等隐含回忆的表述。
运行要求
需要访问 Nowledge Mem,可通过 MCP 工具(memory_search、thread_search、explore_graph)或 nmem CLI,并按需指定空间范围。它不附带脚本,仅为说明文档。

Search Memory

Proactive search across your personal knowledge base using Nowledge Mem in OpenHands.

When to Use

Strong signals — search when:

  • the user references previous work, a prior fix, or an earlier decision
  • the task resumes a named feature, bug, refactor, incident, or subsystem
  • the task is a review, regression, release, docs-alignment, or connector-behavior question
  • an OpenHands specialist node needs architecture guidelines agreed on by previous nodes
  • a debugging pattern resembles something solved earlier
  • the user asks for rationale, preferences, procedures, or recurring workflow details
  • the user uses implicit recall language: "that approach", "like before", "the pattern we used"

Contextual signals — consider searching when:

  • complex debugging where prior context would narrow the search space
  • architecture discussion that may intersect with past decisions
  • domain-specific conventions established previously

Usage

Via MCP (Preferred)

Search memories:

json
memory_search({  "query": "PostgreSQL transaction isolation levels"})

Search prior conversation threads:

json
thread_search({  "query": "database connection pool leak fix"})

Explore knowledge graph around an entity:

json
explore_graph({  "query": "authentication service"})

Via CLI

Search memories:

bash
nmem --json m search "authentication service"

Search threads:

bash
nmem --json t search "authentication service"

If scoped to a specific space:

bash
nmem --json m search "authentication service" --space "Backend"

Search Strategy

  1. Be specific: query with technical terms, error messages, or architectural names.
  2. Follow graph links: when a memory contains deepLinks or entity relations, inspect related nodes if more context is needed.
  3. Do not repeat: if a recent search returned empty results, do not re-run identical searches within the same turn.

来源与署名

来源:nowledge-co/community位于nowledge-mem-openhands-plugin/skills/search-memory提交1f4d7eb

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架