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.
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 skills add QwenLM/qwen-code --skill auto-memorygit clone --depth 1 https://github.com/QwenLM/qwen-codeWrote 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/skills/qwenlm/qwen-code/auto-memory)<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.
<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>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.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 |
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.
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 — 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:
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.
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.
- yesterday First seen · 146 lines · 29 tokens per session scan A e25bd61b34c7
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.
auto-memory compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| auto-memoryQwenLM/qwen-code | Skill | 29k | yesterday | Apache-2.0 | A | 29 | Claude Code, Codex |
| proactive-agentMerkyorLynn/Lynn | Skill | 67 | 6d ago | Apache-2.0 | A | 46 | Claude Code, Codex |
| memory-recallMerkyorLynn/Lynn | Skill | 67 | 6d ago | Apache-2.0 | A | 104 | Claude Code, Codex |
| handoffHmbown/CodeWhale | Skill | 41k | 5d ago | MIT | A | 70 | Claude Code, Codex |
| context-engineeringmvschwarz/openrig | Skill | 8.7k | today | Apache-2.0 | A | 142 | Claude Code, Codex |
| claude-compaction-restoremvschwarz/openrig | Skill | 8.7k | today | Apache-2.0 | A | 60 | Claude Code |
| retiring-and-inheriting-a-seatmvschwarz/openrig | Skill | 8.7k | today | Apache-2.0 | A | 145 | Claude Code |