memory-management

memory-management is a skill for Claude Code, Codex from ThinkInAIXYZ/deepchat. It costs 26 tokens per session (667 once invoked), scanned A, original, Apache-2.0.

A guide for deciding what information an agent should remember and where to store it. It distinguishes durable conclusions from raw transcripts, exact evidence, reusable procedures, and recurring tasks.

In plain words
What is it for?
Use it when continuing earlier work, saving a user preference or project fact, finding exact past wording or logs, or handling a repeated need.
Why use it?
It prevents useful project knowledge from being forgotten, stored in the wrong place, or recalled without supporting evidence.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when continuing earlier work, saving a user preference or project fact, finding exact past wording or logs, or handling a repeated need.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thinkinaixyz/deepchat/memory-management
About the project

DeepChat is an open-source desktop client for AI agents that keeps user data local first and connects agents with services such as MCP, Skills, ACP, and messaging apps. It is for people who want to use and control AI assistants from a desktop application. The catalogue add-ons extend DeepChat’s agent workflows.

ThinkInAIXYZ/deepchat · 6,370 stars · on GitHub · deepchat.thinkinai.xyz

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.

Any agent
npx skills add ThinkInAIXYZ/deepchat --skill memory-management
Clone the repo
git clone --depth 1 https://github.com/ThinkInAIXYZ/deepchat

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 memory-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/thinkinaixyz/deepchat/memory-management/github.svg)](https://agentmods.dev/skills/thinkinaixyz/deepchat/memory-management)
Your own site
<a href="https://agentmods.dev/skills/thinkinaixyz/deepchat/memory-management"><img src="https://agentmods.dev/badge/skills/thinkinaixyz/deepchat/memory-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/thinkinaixyz/deepchat/memory-management"><img src="https://agentmods.dev/badge/skills/thinkinaixyz/deepchat/memory-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00026 $0.00667
Opus 5.5 $0.00010 $0.00267
Sonnet 5.5 $0.00005 $0.00133
Haiku 4.5 $0.00003 $0.00067

Measured 1mo ago against content hash 95d2bbc22e05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory-management 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 1mo 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.

resources/skills/memory-management/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory Management

Use this skill when a task may produce durable learning or when the user asks you to recall, remember, continue earlier work, preserve an exact statement, capture a reusable procedure, or handle a recurring need.

Recall

Rely on automatic memory injection for ordinary context. Use memory_recall when the user refers to previous work with cues such as again, last time, before, continue, same project, remember, or asks what you already know.

Use tape_search and then tape_context when the user needs source evidence, exact wording, logs, command output, file snippets, or why a prior decision was made. Memory is a durable conclusion layer, not the raw transcript.

Remember

Use memory_remember only for durable conclusions that should change future behavior. Choose the most specific category:

  • user_preference: stable user preferences, constraints, communication style, environment choices.
  • project_fact: durable project conventions, architecture entry points, commands, dependencies, paths, or operational constraints.
  • task_outcome: completed, blocked, or deliberately deferred task results. Include status, outcome, and blocker in prose when relevant.
  • heuristic: reusable troubleshooting strategy, workflow, decision rule, or engineering lesson.
  • anti_pattern: repeated mistake, unsafe approach, brittle pattern, stale assumption, or thing to avoid.

Do not remember raw tool results, bash output, grep output, file contents, transient mechanics, one-off failures, secrets, credentials, hidden reasoning, or anything only useful for the current turn.

Verbatim Scope

Store exact wording only when the user explicitly asks you to remember a sentence or phrase verbatim. In that case, keep the requested text intact and make the surrounding content minimal.

Automatic extraction is different: it should normalize durable facts into concise memory content, deduplicate related entries, and avoid preserving raw transcript text.

Procedures -> Skill

Read the full file on GitHub · 56 lines

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. 1mo ago First seen · 56 lines · 26 tokens per session scan A 95d2bbc22e05

Subscribe to this mod's changes

memory-management is a skill published in the GitHub repository ThinkInAIXYZ/deepchat (6,370 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 667 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

proactive-agent

Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞.

MerkyorLynn/Lynn · 46 tokens

memory-recall

Persistent cross-session memory system with fact extraction, semantic search, and compiled memory layers. Your agent remembers everything across sessions — user preferences, project context, past decisions, personal details. Use when: (1) User references something from a previous conversation, (2) Agent needs project…

MerkyorLynn/Lynn · 104 tokens

purmemo

Persistent AI conversation memory. Recall context at session start, save progress at session end. Essential for project continuity across sessions.

purmemo-ai/purmemo-mcp · 27 tokens

honcho

Configure and troubleshoot Honcho memory for Hermes.

NousResearch/hermes-agent · 12 tokens

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also…

mem0ai/mem0 · 146 tokens

mem0-cli

Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions "mem0 cli", "mem0 command line", "@mem0/cli", "mem0-cli", "pip install mem0-cli", "npm install -g @mem0/cli", or is running mem0 commands in a terminal/shell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0…

mem0ai/mem0 · 177 tokens