Home / Workflows / Audit and prune stale memories
Memory Opsintermediate3-step workflow~18 min

Audit and prune stale memories

List everything stored under a namespace, check the aggregate stats, then forget what's no longer useful.

Workflow

Step 1 of 3

List Memory

List everything currently stored under a namespace.

list_memory({"namespace": "example"})
Step 2 of 3

Memory Stats

Check aggregate stats (count, age, size) for that namespace.

memory_stats({"handle": "my-agent"})
Step 3 of 3

Forget Memories

Delete memories that are stale or no longer useful.

forget_memories({"handle": "my-agent"})

Install

One command wires up every tool below for Claude Code:

claude mcp add --transport http wingman https://wingmanprotocol.com/mcp

Claude Desktop, Cursor and Continue configs are on /install. A free key (500 calls/month, no card) is on /pricing; beyond that it is x402 pay-per-call in USDC on Base.