Adding memory to Qwen Code
it takes the Gemini extension, and Claude-format marketplaces
Qwen Code keeps every session on disk and opens the next one empty. What you worked out last week is still there, and so is the work you did in whichever other agent you had open at the time.
What Qwen already has
Sessions live under ~/.qwen/projects/<project>/chats as JSONL. Complete, and unread by anything — including by Qwen's next session.
Adding recall
qwen extensions install https://github.com/vshulcz/deja-vu
Qwen Code shares Gemini CLI's extension format, so the gemini-extension.json at the root of the repository is the whole install. Checked on Qwen Code 0.20.0: it reports the deja MCP server, the context file and the deja-search skill, and installs them under ~/.qwen/extensions/deja.
The CLI install is the other path, and the one that also writes guidance where Qwen reads it:
deja install qwen-auto
Running both is safe rather than doubled: MCP servers are keyed by name, so the extension's deja and the one in settings.json collapse into a single server rather than listing every tool twice.
Qwen also reads Claude-format marketplaces, which this repository is:
qwen extensions sources add https://github.com/vshulcz/deja-vu
Either way it needs the binary, since an extension delivers files rather than runtimes:
brew install deja-vu # or curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh
The part that is not about this harness
The index covers every agent's transcripts on the machine — twenty of them today, each in its own format — so a fix found in one tool answers a question asked in another, including sessions from before any of this was installed. That is the reason to index rather than to capture.
Nothing here writes memories, so there is nothing to hallucinate into your history; indexing and search are local, and credentials are stripped as the index is built (privacy). An injection is capped at 1,536 bytes per prompt and about 4 KB per tool call — what memory costs has the measured comparison.
Getting started · How Qwen's store is read · Memory for Gemini CLI