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.
npx agentmods add commands/tatargabor/set-copilot/memorygit clone --depth 1 https://github.com/tatargabor/set-copilotWrote 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.
[](https://agentmods.dev/commands/tatargabor/set-copilot/memory)<a href="https://agentmods.dev/commands/tatargabor/set-copilot/memory"><img src="https://agentmods.dev/badge/commands/tatargabor/set-copilot/memory.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01459 |
| Opus 5 | $0.00000 | $0.00730 |
| Sonnet 5 | $0.00000 | $0.00292 |
| Haiku 4.5 | $0.00000 | $0.00146 |
Grade A, and why
memory 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Interact with the project's cognitive memory system (shodh-memory).
Usage: /set:memory [subcommand] [args]
Subcommands:
Core:
status [--json]— Show config, health, and memory countrecall <query> [--limit N] [--mode MODE] [--tags t1,t2] [--tags-only] [--min-importance F]— Semantic searchproactive <context> [--limit N]— Context-aware retrieval with relevance scoresremember --type TYPE [--tags t1,t2] [--metadata JSON] [--failure] [--anomaly]— Save a new memory (stdin)list [--type TYPE] [--limit N]— List all memories (JSON)browse(default) — Show summary grouped by typeprojects— List all projects with memory counts
Forget / Cleanup:
forget <id>— Delete a single memory by IDforget --all --confirm— Delete ALL memoriesforget --older-than <days>— Delete memories older than N daysforget --tags <t1,t2>— Delete memories matching tagsforget --pattern <regex>— Delete memories matching regex
Diagnostics:
stats [--json]— Memory quality diagnostics (types, tags, importance)cleanup [--threshold F] [--dry-run]— Remove low-value memories (default threshold 0.2)audit [--threshold F] [--json]— Duplicate detection report (default threshold 0.75)dedup [--threshold F] [--dry-run] [--interactive]— Remove duplicate memories
Introspection:
get <id>— Get a single memory by ID (JSON)context [topic]— Condensed summary by categorybrain— 3-tier memory visualization
Export / Import:
export [--output FILE]— Export all memories to JSONimport FILE [--dry-run]— Import memories from JSON (skip duplicates)
Sync (team sharing via git):
sync— Push + pull in one stepsync push— Export and push to git remotesync pull [--from user/machine]— Pull and import from git remotesync status— Show sync state and remote sources
Maintenance:
health— Check if shodh-memory is availablehealth --index— Check index health (JSON)repair— Repair index integritymigrate— Run pending memory migrationsmigrate --status— Show migration history
What to do:
-
Parse
$ARGUMENTSto determine the subcommand (first word). If no arguments, default tobrowse. If unrecognized subcommand, pass through toset-memorydirectly. -
Check health first:
set-memory healthIf this fails (exit code non-zero), display:
"Memory system not available — shodh-memory is not running. Check with
set-memory health." Then STOP. -
Execute the subcommand:
status:
set-memory status $REMAINING_ARGSDisplay the output directly.
recall (rest of arguments is the query and flags):
Recall modes (
--mode):semantic(default),temporal,hybrid,causal,associative. Parse the JSON output. For each memory, display:- Type and tags
- Content (truncated to 200 chars if long)
- Creation date If no results, say "No matching memories found."
proactive (rest of arguments is context string):
set-memory proactive "<context>" --limit 5Parse JSON and display results like recall.
remember (rest of arguments is the content):
- Use the AskUserQuestion tool to ask which memory type to use:
- Options:
Decision,Learning,Context
- Options:
- Optionally ask for comma-separated tags (or skip)
- Then run:
- Confirm: "Memory saved."
list:
set-memory list $REMAINING_ARGSParse JSON and display in a readable table format.
browse (default):
set-memory status set-memory listDisplay status summary, then group memories by type (Decision, Learning, Context) and show counts + recent entries.
forget (pass all remaining args through):
set-memory forget $REMAINING_ARGSDESTRUCTIVE — warn user before running without
--dry-run. Display output directly.stats / cleanup / audit / dedup (pass all remaining args through):
set-memory <subcommand> $REMAINING_ARGSDisplay the output directly. For
dedupwithout--dry-runor--interactive, warn about destructive operation.
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.
- today First seen · 165 lines · 0 tokens per session scan A 0587a189a3c6
memory is a command published in the GitHub repository tatargabor/set-copilot (2 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,459 tokens. 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-09-04.
Other commands, from other repositories
minutes-ideas
Surface recent voice memos and ideas captured from any device. Use when the user asks "what ideas did I have?", "what were my recent memos?", "what did I record while walking?", or wants to recall a captured thought.
learn
Force claude-smart to extract learnings from this session now.
session-end
I'll summarize this coding session and update the memory system with our accomplishments.
memory-store
Store an insight, decision, or pattern to memory.
analyze-context
USE WHEN you want to analyze project context before starting work on a task. Calls context + recall, then synthesizes goals, decisions, gotchas, and relevant memories into a pre-task brief.
cc-memory
Configure persistent memory that survives across sessions using a layered approach: split rule files for always-loaded context, auto-memory for organic learning, and optional MCP-backed long-term memory for large codebases.