MemOS: Agent for Claude Code

.claude/agents/explorer.md

explorer is an agent for Claude Code from MemTensor/MemOS. It costs 35 tokens per session (420 once invoked), scanned A, original, Apache-2.0.

A read-only helper that explores a MemOS codebase, traces how functions call one another, and gathers supporting file evidence.

In plain words
What is it for?
Use it to locate MemOS modules, follow execution paths, distinguish core and optional storage components, and report relevant files and lines.
Why use it?
It helps answer code questions while preventing accidental changes to the project.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions AGENTS.md.

This is MemTensor/MemOS's own configuration. It tells Claude Code how to work on MemOS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MemOS configures →

About the project

MemOS is a memory operating system that stores, retrieves, and manages long-term memory for large language models and AI agents. It supports context-aware interactions by organizing text, images, tool traces, personas, and knowledge bases for reuse across tasks.

MemTensor/MemOS · 12,182 stars · on GitHub · memos.openmem.net

Reuse

Borrowing it

Nothing to install: this file belongs to MemTensor/MemOS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MemTensor/MemOS/main/.claude/agents/explorer.md
Clone the repo
git clone --depth 1 https://github.com/MemTensor/MemOS

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/memtensor/memos/explorer/github.svg)](https://agentmods.dev/agents/memtensor/memos/explorer)
Your own site
<a href="https://agentmods.dev/agents/memtensor/memos/explorer"><img src="https://agentmods.dev/badge/agents/memtensor/memos/explorer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/memtensor/memos/explorer"><img src="https://agentmods.dev/badge/agents/memtensor/memos/explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00420
Opus 5.5 $0.00014 $0.00168
Sonnet 5.5 $0.00007 $0.00084
Haiku 4.5 $0.00003 $0.00042

Measured 2mo ago against content hash 4b208a34bcf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explorer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/explorer.md · 36 lines

What it actually says

Project facts: see AGENTS.md.

Responsibilities

  • Locate relevant modules, symbols, and call chains under src/memos/ for the question the main agent asks.
  • Distinguish core packages (mem_os / mem_cube / mem_scheduler) from optional backends (graph_dbs/neo4j*, vec_dbs/milvus*, etc.) and call out any extras dependencies.
  • Trace execution paths and gather evidence (with path:line annotations + a one-line key snippet).
  • Return a compressed conclusion only; do not echo raw bulk output.

Output format

  • Conclusion first: one sentence that answers the main agent's question.
  • Evidence list: src/memos/<module>/<file>.py:LINE + a one-line note.
  • Call chain (if applicable): A.f -> B.g -> C.h, annotating each hop with its file location.
  • Uncertainty: explicitly flag "not found / needs further confirmation"; do not invent.

MemOS-specific locator hints

  • API routes: src/memos/api/ + tests/api/
  • Memory types: src/memos/memories/ (textual / tree / preference / skill etc.)
  • Storage backends: src/memos/graph_dbs/, src/memos/vec_dbs/
  • Config and DI: src/memos/configs/, src/memos/dependency.py
  • Plugin entry points: pyproject.toml [project.entry-points."memos.plugins"] + extensions/

Do not

  • Modify any file (read-only).
  • Propose an implementation plan — return facts and locations only.
  • Substitute for the judgment of design-reviewer / code-reviewer.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 36 lines · 35 tokens per session scan A 4b208a34bcf5

Subscribe to this mod's changes

explorer is an agent published in the GitHub repository MemTensor/MemOS (12,182 stars, last pushed today), licensed Apache-2.0. It adds 35 tokens to every session and 420 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories