stats

Displays memory usage statistics including category counts, age distribution, and API latency.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill stats-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stats
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/integrations/mem0-plugin/skills/stats
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill stats-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? It gives you visibility into how many memories exist in your mem0 project, how they are distributed across categories, how old they are, and how the current session has used memory reads and writes. ## Core Features & Use Cases - Session and lifetime stats: Combines local session tracking (adds and searches) with API-fetched lifetime memory counts grouped by category. - Age distribution and latency check: Buckets memories by age ranges and measures search API round-trip latency. - Weekly digest mode: With --weekly, summarizes the past 7 days of new memories, highlights key decisions, and writes a digest file to ~/.mem0/weekly-digest.md. - Use Case: Run the stats command at the end of a work session to audit how many decisions and conventions were captured, then generate a weekly digest to review team learnings. ## Quick Start Ask the assistant to show mem0 memory statistics for the current project, optionally with the weekly digest flag.

Frequently Asked Questions about stats

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check how many memories exist in my mem0 project?

Run the stats skill, which calls get_memories with your user_id and app_id filters and groups results by category. It prints a table of counts per category sorted descending, omitting empty categories.

How do I generate a weekly memory activity digest in mem0?

Invoke the stats command with the --weekly flag. It runs time-scoped searches for the past 7 days, groups new memories by category, summarizes highlights, and writes the digest to ~/.mem0/weekly-digest.md.

Why does the stats skill not query the API for session stats?

Session stats come from a local stats file because memories are stored without run_id and metadata filters on session_id return inconsistent results. The local file tracks adds and searches for the current session accurately.

How is API latency measured in the mem0 stats dashboard?

Latency is measured by timing a search_memories MCP call with query 'project' and top_k=1. The time before and after the call gives the round-trip latency shown in the dashboard.

What happens if there are no new memories in the weekly digest?

If no memories were added in the past 7 days, the digest shows an empty state message with the total memory count for the project instead of the weekly breakdown table.