auto-memory

auto-memory is a skill for Claude Code, Codex from QwenLM/qwen-code. It costs 29 tokens per session (3,038 once invoked), scanned A, original, Apache-2.0.

A reference for an agent's automatic memory system, including memory types, examples, metadata rules, and team memory guidance. It is meant to be loaded when deciding to save a memory.

In plain words
What is it for?
Use it when recording user, project, or team information in the agent's memory directories.
Why use it?
It helps the agent choose the right kind of memory and follow the required storage and metadata rules instead of saving information inconsistently.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when recording user, project, or team information in the agent's memory directories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qwenlm/qwen-code/auto-memory
About the project

Qwen Code is an open-source AI coding agent that runs in a terminal and helps developers work with code through language models. It supports multiple model providers and can also be used through IDEs, desktop software, SDKs, and messaging bots.

QwenLM/qwen-code · 29,032 stars · on GitHub · qwenlm.github.io

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 QwenLM/qwen-code --skill auto-memory
Clone the repo
git clone --depth 1 https://github.com/QwenLM/qwen-code

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/qwenlm/qwen-code/auto-memory/github.svg)](https://agentmods.dev/skills/qwenlm/qwen-code/auto-memory)
Your own site
<a href="https://agentmods.dev/skills/qwenlm/qwen-code/auto-memory"><img src="https://agentmods.dev/badge/skills/qwenlm/qwen-code/auto-memory/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 auto-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/qwenlm/qwen-code/auto-memory"><img src="https://agentmods.dev/badge/skills/qwenlm/qwen-code/auto-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,038 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.
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.00029 $0.03038
Opus 5.5 $0.00012 $0.01215
Sonnet 5.5 $0.00006 $0.00608
Haiku 4.5 $0.00003 $0.00304

Measured yesterday against content hash e25bd61b34c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

auto-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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (SKILL.test.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/core/src/skills/bundled/auto-memory/SKILL.md · 146 lines

How it starts

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

Auto-memory reference

Your instructions already list the memory directories, the frontmatter template, the category names and the two save steps. This reference adds the guidance behind them, and the full text of the rules those summarize. The team-memory section applies only when your instructions list a TEAM directory.

Types of memory

There are several discrete types of memory that you can store in your memory system. Each type carries a <scope> that decides which memory directory it belongs to when both a user (cross-project) and a project (this-project-only) directory are available:

Read the full file on GitHub · 146 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 146 lines · 29 tokens per session scan A e25bd61b34c7

Subscribe to this mod's changes

auto-memory is a skill published in the GitHub repository QwenLM/qwen-code (29,032 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 3,038 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-11-06.

Related

auto-memory compared with skills from other repositories

auto-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auto-memoryQwenLM/qwen-codeSkill29kyesterdayApache-2.0A29Claude Code, Codex
proactive-agentMerkyorLynn/LynnSkill676d agoApache-2.0A46Claude Code, Codex
memory-recallMerkyorLynn/LynnSkill676d agoApache-2.0A104Claude Code, Codex
handoffHmbown/CodeWhaleSkill41k5d agoMITA70Claude Code, Codex
context-engineeringmvschwarz/openrigSkill8.7ktodayApache-2.0A142Claude Code, Codex
claude-compaction-restoremvschwarz/openrigSkill8.7ktodayApache-2.0A60Claude Code
retiring-and-inheriting-a-seatmvschwarz/openrigSkill8.7ktodayApache-2.0A145Claude Code