peek

peek is a skill for Claude Code, Codex from mem0ai/mem0. It costs 52 tokens per session (571 once invoked), scanned A, original, Apache-2.0.

A quick search tool for Mem0, a service that stores project memories for coding agents. It shows short results or retrieves one memory by its ID.

In plain words
What is it for?
Use it to search project memories, inspect a specific memory, or browse stored knowledge with compact results.
Why use it?
It helps you check remembered decisions or facts without reading full memory details. It also lets you resolve references such as [mem0:id].

Skill for Claude CodeCodex

About the project

mem0 is memory infrastructure that lets AI agents and applications store and retrieve information across interactions. It supports agents and developers who need persistent context for AI systems.

mem0ai/mem0 · 64,662 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mem0ai/mem0/peek
Any agent
npx skills add mem0ai/mem0 --skill peek
Clone the repo
git clone --depth 1 https://github.com/mem0ai/mem0

Made for: Claude Code, Codex.

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 peek

README.md
[![agentmods](https://agentmods.dev/badge/skills/mem0ai/mem0/peek.svg)](https://agentmods.dev/skills/mem0ai/mem0/peek)
Your own site
<a href="https://agentmods.dev/skills/mem0ai/mem0/peek"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/peek.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.00571
Opus 5 $0.00026 $0.00285
Sonnet 5 $0.00010 $0.00114
Haiku 4.5 $0.00005 $0.00057

Measured 5d ago against content hash 1c0796029f80, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

peek 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 5d 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.

integrations/mem0-plugin/skills/peek/SKILL.md · 53 lines

What it actually says

Mem0 Peek

Quick search with compact output. Lighter than /mem0:tour.

Execution

Step 1: Parse query

The user provides a search query: /mem0:peek auth middleware

If no query provided, ask: "What should I search for?"

Memory ID detection: If the query matches any of these patterns, treat it as a direct memory ID lookup instead of a search:

  • Bare hex: ^[a-f0-9]{8}$ (short ID) or ^[a-f0-9]{8}-[a-f0-9-]+$ (full UUID)
  • Citation ref: [mem0:<hex>] — extract the hex portion

When an ID is detected:

  1. Call get_memory(<id>) directly (if short ID, try as prefix of full UUID)
  2. If found, skip to Step 3 and display the single result
  3. If not found, fall through to search using the ID as query text

Step 2: Search

Run 2 parallel search_memories calls:

  1. Broad: query=<user's query>, filters={"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}]}, top_k=10, rerank=true
  2. Targeted: query=<user's query>, filters={"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}, {"metadata": {"type": "decision"}}]}, top_k=5, rerank=true

Step 3: Display

Deduplicate by ID, then show compact results:

## mem0 peek: "<query>" (<N> results)

1. [decision] Auth module uses JWT with RS256 keys (2025-05-15) [mem0:a3f8b2c1]
2. [anti_pattern] Don't use symmetric HS256 — leaked in env (2025-05-10) [mem0:7e2d9f4a]
3. [convention] All middleware in src/middleware/ (2025-05-08) [mem0:c4d5e6f7]

Format: <number>. [<type>] <content, 80 chars> (<date>) [mem0:<short_id>]

If no results:

No memories matching "<query>" for project <project_id>.
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. 5d ago First seen · 53 lines · 52 tokens per session scan A 1c0796029f80

Subscribe to this mod's changes

peek is a skill published in the GitHub repository mem0ai/mem0 (64,662 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 571 once invoked, about $0.0003 per session on Opus 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.