
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
code-memory-router
Advanced tools
Claude Code skill that routes code and memory queries between MemPalace (project memory) and QMD (codebase search), fusing both when the question spans code and decisions.

A Claude Code skill that routes memory and retrieval tasks to the right tool — MemPalace for project memory, QMD for codebase search.
Without routing guidance, Claude defaults to grep for everything — even questions like "why did we build it this way?" or "what did we decide last week?". That burns tokens, misses the answer, and ignores the memory systems you set up.
This skill teaches Claude:
Tested on 3 real tasks across 6 parallel runs (with skill vs without):
| Task | With skill | Without skill |
|---|---|---|
| Find WebSocket disconnect handler in Rust backend | 4/4 ✅ | 1/4 ❌ |
| Why did we switch from SSE to WebSocket? | 4/4 ✅ | 1/4 ❌ |
| Show AI chat entry point + architecture decisions | 5/5 ✅ | 2/5 ❌ |
| Total | 13/13 | 4/13 |
| Avg tokens (memory tasks) | 36k | 58k (+61%) |
| Avg time (memory tasks) | 175s | 339s (+94%) |
Without the skill, agents missed MemPalace entirely on every memory task — burning 61% more tokens to find the same answer via brute-force grep.
Both must be installed and indexed. See references/setup-guide.md.
Universal (works with Claude Code, Cursor, Codex, Gemini CLI, and 40+ agents):
npx skills add OthmanAdi/code-memory-router
Or from npm: pi install npm:code-memory-router (package)
Claude Code only:
claude skills install github:OthmanAdi/code-memory-router
Once installed, the skill triggers automatically on relevant queries. No slash command needed.
Triggers on: "where is X", "find X in the code", "what did we decide about X", "why does X work this way", "show me X and why we built it", "what's in the handoffs about X"
You can also trigger it explicitly:
/code-memory-router find the authentication middleware
/code-memory-router what was the decision behind the streaming architecture?
User question
│
├─ WHERE is X? ──────────────────────► QMD (codebase search)
│ qmd query "..."
│
├─ WHY was X built? ─────────────────► MemPalace (project memory)
│ mempalace search "..."
│
└─ HOW does X work + WHY? ──────────► Combined
QMD → MemPalace (code-first)
MemPalace → QMD (history-first)
Both MCP tools (mcp__qmd__*, mcp__mempalace__*) and CLI fallbacks are supported.
code-memory-router/
├── SKILL.md — routing logic + execution paths
├── references/
│ ├── tool_selection.md — routing heuristics + examples
│ └── setup-guide.md — how to index your project
└── scripts/
└── inspect_embedding_metadata.py — auto-detects QMD/MemPalace config
MIT
FAQs
Claude Code skill that routes code and memory queries between MemPalace (project memory) and QMD (codebase search), fusing both when the question spans code and decisions.
The npm package code-memory-router receives a total of 3 weekly downloads. As such, code-memory-router popularity was classified as not popular.
We found that code-memory-router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.