MemOS memos-memory-guide
Use the MemOS Local memory system to search and use the user's past conversations. Use this skill whenever the user refers to past chats, their own preferences or history, or when you need to answer from prior context. When auto-recall returns nothing (long or unclear user query), generate your own short search query and call memory_search. Available tools: memory_search, memory_get, memory_write_public, memory_share, memory_unshare, task_summary, skill_get, skill_search, skill_install, skill_publish, skill_unpublish, network_memory_detail, network_skill_pull, network_team_info, memory_timeline, memory_viewer.
git clone https://github.com/MemTensor/MemOS
T=$(mktemp -d) && git clone --depth=1 https://github.com/MemTensor/MemOS "$T" && mkdir -p ~/.claude/skills && cp -r "$T/apps/memos-local-openclaw/skill/memos-memory-guide" ~/.claude/skills/memtensor-memos-memos-memory-guide && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/MemTensor/MemOS "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/apps/memos-local-openclaw/skill/memos-memory-guide" ~/.openclaw/skills/memtensor-memos-memos-memory-guide && rm -rf "$T"
apps/memos-local-openclaw/skill/memos-memory-guide/SKILL.mdMemOS Local Memory — Agent Guide
This skill describes how to use the MemOS memory tools so you can reliably search and use the user's long-term conversation history, query team-shared data, share tasks, and discover or pull reusable skills.
Two sharing planes exist and must not be confused:
- Local agent sharing: visible to agents in the same OpenClaw workspace only.
- Team sharing: visible to teammates through the configured team server.
How memory is provided each turn
- Automatic recall (hook): At the start of each turn, the system runs a memory search using the user's current message and injects relevant past memories into your context. You do not need to call any tool for that.
- When that is not enough: If the user's message is very long, vague, or the automatic search returns no memories, you should generate your own short, focused query and call
yourself.memory_search - Memory isolation: Each agent can only see its own local private memories and local
memories. Team-shared data only appears when you search withpublic
orscope="group"
.scope="all"
Tools — what they do and when to call
memory_search
- What it does: Search long-term conversation memory for past conversations, user preferences, decisions, and experiences. Returns relevant excerpts with
and optionallychunkId
. Only returns memories belonging to the current agent or marked as public.task_id - When to call:
- The automatic recall did not run or returned nothing.
- The user's query is long or unclear — generate a short query yourself and call
.memory_search(query="...") - You need to search with a different angle (e.g. filter by
).role='user'
- Parameters:
(string, required) — Natural language search query.query
(string, optional) —scope
(default) for current agent + local shared memories, or'local'
/'group'
to include team-shared memories.'all'
(number, optional) — Increase when the first search is too narrow.maxResults
(number, optional) — Lower slightly if recall is too strict.minScore
(string, optional) — Filter local results byrole
,'user'
,'assistant'
, or'tool'
.'system'
memory_get
- What it does: Get the full original text of a memory chunk. Use to verify exact details from a search hit.
- When to call: A
hit looks relevant but you need to see the complete original content, not just the summary/excerpt.memory_search - Parameters:
(string, required) — The chunkId from a search hit.chunkId
(number, optional) — Max characters to return (default 4000, max 12000).maxChars
memory_write_public
- What it does: Create a brand new local shared memory. These memories are visible to all agents in the same OpenClaw workspace during
. This does not publish anything to the team server.memory_search - When to call: In multi-agent or collaborative scenarios, when you want to create a new persistent shared note from scratch (e.g. shared decisions, conventions, configurations, workflows). Do not use it if you already have a specific memory chunk to expose.
- Parameters:
(string, required) — The content to write to local shared memory.content
(string, optional) — Short summary of the content.summary
memory_share
- What it does: Share an existing memory either with local OpenClaw agents, to the team, or to both.
- When to call:
- If you want to share conversation content to team or hub, first retrieve memories related to that content to obtain the right
(s), then share.chunkId
(default): When those memories would clearly help other agents in the same workspace, you may share proactively without asking the user.target='agents'
ortarget='hub'
: Only after explicit user consent when the content would benefit collaborators—explain briefly, ask first, then call'both'
/hub
(Hub must be configured). Never silently Hub-share.both
- If you want to share conversation content to team or hub, first retrieve memories related to that content to obtain the right
- Do not use when: You are creating a brand-new shared note with no existing chunk—use
instead.memory_write_public - Parameters:
(string, required) — Existing memory chunk ID.chunkId
(string, optional) —target
(default),'agents'
, or'hub'
.'both'
(string, optional) — Team visibility when target includes team:visibility
(default) or'public'
.'group'
(string, optional) — Optional team group ID whengroupId
.visibility='group'
memory_unshare
- What it does: Remove an existing memory from local agent sharing, team sharing, or both.
- When to call: A memory should no longer be visible outside the current agent or should be removed from the team.
- Parameters:
(string, required) — Existing memory chunk ID.chunkId
(string, optional) —target
,'agents'
, or'hub'
(default).'all'
(string, optional) — Rare fallback only for older public memories that have no recorded original owner.privateOwner
task_summary
- What it does: Get the detailed summary of a complete task: title, status, narrative summary, and related skills. Use when
returns a hit with amemory_search
and you need the full story. Preserves critical information: URLs, file paths, commands, error codes, step-by-step instructions.task_id - When to call: A
hit included amemory_search
and you need the full context of that task.task_id - Parameters:
(string, required) — The task_id from a memory_search hit.taskId
skill_get
- What it does: Retrieve a proven skill (experience guide) by
or byskillId
. If you pass ataskId
, the system will find the associated skill automatically.taskId - When to call: A search hit has a
and the task has a "how to do this again" guide. Use this to follow the same approach or reuse steps.task_id - Parameters:
(string, optional) — Direct skill ID.skillId
(string, optional) — Task ID — will look up the skill linked to this task.taskId- At least one of
orskillId
must be provided.taskId
skill_search
- What it does: Search available skills by natural language. Searches your own skills, local shared skills, or both. It can also include team skills.
- When to call: The current task requires a capability or guide you don't have. Use
to find one first; after finding it, useskill_search
to read it, thenskill_get
to load it for future turns.skill_install - Parameters:
(string, required) — Natural language description of the needed skill.query
(string, optional) —scope
(default, self + local shared),'mix'
,'self'
(local shared only), or'public'
/'group'
to include team results.'all'
skill_install
- What it does: Install a learned skill into the agent workspace so it becomes permanently available. After installation, the skill will be loaded automatically in future sessions.
- When to call: After
when the skill is useful for ongoing use.skill_get - Parameters:
(string, required) — The skill ID to install.skillId
skill_publish
- What it does: Share a skill with local agents, or publish it to the team.
- When to call: You have a useful skill that other agents or your team could benefit from.
- Parameters:
(string, required) — The skill ID to publish.skillId
(string, optional) —target
(default) or'agents'
.'hub'
(string, optional) — Whenvisibility
, usetarget='hub'
(default) or'public'
.'group'
(string, optional) — Optional team group ID whengroupId
andtarget='hub'
.visibility='group'
(string, optional) — Backward-compatible alias for old calls. Preferscope
+target
in new calls.visibility
skill_unpublish
- What it does: Stop local agent sharing, remove a team-published copy, or do both.
- When to call: You want to stop sharing a previously published skill.
- Parameters:
(string, required) — The skill ID to unpublish.skillId
(string, optional) —target
(default),'agents'
, or'hub'
.'all'
network_memory_detail
- What it does: Fetches the full content behind a team search hit.
- When to call: A
result came from the team and you need the full shared memory content.memory_search - Parameters:
.remoteHitId
task_share / task_unshare
- What they do: Share a local task to the team, or remove it later.
- When to call: A task is valuable to your group or to the whole team and should be discoverable via shared search.
- Parameters:
, plus sharing visibility/scope when required.taskId
network_skill_pull
- What it does: Pulls a team-shared skill bundle down into local storage.
- When to call:
found a useful team skill and you want to use it locally or offline.skill_search - Parameters:
.skillId
network_team_info
- What it does: Returns current team server connection information, user, role, and groups.
- When to call: You need to confirm whether team sharing is configured or which groups the current client belongs to.
- Call this first before:
,memory_share(... target='hub'|'both')
,memory_unshare(... target='hub'|'all')
,task_share
,task_unshare
,skill_publish(... target='hub')
, orskill_unpublish(... target='hub'|'all')
.network_skill_pull - Parameters: none.
memory_timeline
- What it does: Expand context around a memory search hit. Pass the
from a search result to read the surrounding conversation messages.chunkId - When to call: A
hit is relevant but you need the surrounding dialogue.memory_search - Parameters:
(string, required) — The chunkId from a memory_search hit.chunkId
(number, optional) — Context window ±N messages, default 2.window
memory_viewer
- What it does: Show the MemOS Memory Viewer URL. Call this when the user asks how to view, browse, manage, or check their memories. Returns the URL the user can open in their browser.
- When to call: The user asks where to see or manage their memories.
- Parameters: None.
Quick decision flow
-
No memories in context or auto-recall reported nothing → Call
with a self-generated short query.memory_search(query="...") -
Need to see the full original text of a search hit → Call
.memory_get(chunkId="...") -
Search returned hits with
and you need full context → Calltask_id
.task_summary(taskId="...") -
Task has an experience guide you want to follow → Call
orskill_get(taskId="...")
. Optionallyskill_get(skillId="...")
for future use.skill_install(skillId="...") -
You need the exact surrounding conversation of a hit → Call
.memory_timeline(chunkId="...") -
You need a capability/guide that you don't have → Call
to discover available skills.skill_search(query="...", scope="mix") -
You have new shared knowledge useful to all local agents → Call
.memory_write_public(content="...") -
You already have an existing memory chunk and want to expose or hide it → Call
ormemory_share(chunkId="...", target="agents|hub|both")
.memory_unshare(chunkId="...", target="agents|hub|all") -
You are about to do anything team-sharing-related → Call
first if team server availability is uncertain.network_team_info() -
You want to share/stop sharing a skill with local agents or team → Prefer
andskill_publish(skillId="...", target="agents|hub", visibility=...)
.skill_unpublish(skillId="...", target="agents|hub|all") -
User asks where to see or manage their memories → Call
and share the URL.memory_viewer()
Writing good search queries
- Prefer short, focused queries (a few words or one clear question).
- Use concrete terms: names, topics, tools, or decisions.
- If the user's message is long, derive one or two sub-queries rather than pasting the whole message.
- Use
when you specifically want to find what the user said.role='user'
Memory ownership and agent isolation
Each memory is tagged with an
owner (e.g. agent:main, agent:sales-bot). This is handled automatically — you do not need to pass any owner parameter.
- Your memories: All tools (
,memory_search
,memory_get
) automatically scope queries to your agent's own memories.memory_timeline - Local shared memories: Memories marked as local shared are visible to all agents in the same OpenClaw workspace. Use
to create them, ormemory_write_public
to expose an existing chunk.memory_share(target='agents') - Cross-agent isolation: You cannot see memories owned by other agents (unless they are public).
- How it works: The system identifies your agent ID from the OpenClaw runtime context and applies owner filtering automatically on every search, recall, and retrieval.