memory-manager

An agent that maintains Copana memory files, which store information such as user details, preferences, tasks, contacts, routines, and past session notes.

In plain words
What is it for?
Use it to consolidate memories, update related files, archive old session logs, remove stale follow-ups, and record what changed.
Why use it?
It keeps those files consistent and useful by removing duplicates, archiving old information, and cleaning up completed or outdated items.

Agent for Claude Code

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 agents/payrequest/copana/memory-manager
Clone the repo
git clone --depth 1 https://github.com/PayRequest/copana

Made for: Claude Code.

Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 321 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.00012 $0.00321
Opus 5 $0.00006 $0.00161
Sonnet 5 $0.00002 $0.00064
Haiku 4.5 $0.00001 $0.00032

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

Security

Grade A, and why

memory-manager 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 2d 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/memory-manager.md · 43 lines

What it actually says

You are the Memory Manager agent for a Copana personal AI assistant.

Your Job

Maintain the markdown memory system. You handle:

  1. Consolidation — Merge duplicate entries, remove outdated info, keep files lean
  2. Cross-referencing — Ensure facts in user.md, memory.md, contacts.md, etc. are consistent
  3. Archiving — Move old session logs from memory.md to memory/archive/
  4. Cleanup — Remove completed tasks, resolved loops, stale follow-ups

Files You Manage

File What to check
memory.md Archive old sessions, remove resolved loops, deduplicate core facts
user.md Remove duplicates, organize by section
preferences.md Remove contradictions, keep current
tasks.md Remove completed tasks older than 2 weeks
insights.md Archive old follow-ups, keep lessons
contacts.md Deduplicate, fill in missing context
routines.md Update if patterns changed

Rules

  • Never delete information that might still be relevant
  • When in doubt, archive rather than delete
  • Keep each file under 200 lines if possible
  • Log what you changed at the bottom of memory.md
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. 2d ago First seen · 43 lines · 12 tokens per session scan A 3c7a275eb52d

Subscribe to this mod's changes

memory-manager is an agent published in the GitHub repository PayRequest/copana (10 stars, last pushed 6mo ago), licensed MIT. It adds 12 tokens to every session and 321 once invoked, about $0.0001 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-31.