OpenClaw's QMD Memory Search Fast Path Had Silent Bugs

OpenClaw's built-in memory search uses basic keyword matching, which works for simple lookups but struggles when agents need to find information learned weeks earlier without exact word matches.
Users can switch to QMD, which performs semantic search across all markdown files in the workspace. This allows agents to find relevant entries even when exact keywords aren't present. QMD also does hybrid search, combining keyword and semantic approaches for both precision and recall.
OpenClaw has a fast path through MCPorter that keeps the QMD process warm in memory, reducing search times to 1-2 seconds instead of 9-25 seconds when cold starting each time.
This fast path was completely broken with three bugs in the same file:
- The gateway was calling tool names that don't exist. QMD's MCP server exposes one tool called
query, but the gateway was callingdeep_search,search, etc. Every call returned exit code 128. - Wrong argument format. The gateway passed a flat string, but the tool expects a
searchesarray with typed sub-queries for keyword vs semantic vs hybrid search. - Singular vs plural mismatch. The gateway passed
collection: "name"but the tool expectscollections: ["name"].
Every parameter was wrong: tool name, argument structure, and field name. The fix was straightforward once identified, and a pull request is available for anyone running QMD through MCPorter.
The silent failure meant every call fell back to the slower CLI path, but functionality remained, just with significantly degraded performance that went unnoticed for weeks.
📖 Read the full source: r/openclaw
👀 See Also

General Bots: Open-source AI agent platform for self-hosted enterprise automation
General Bots is an open-source platform started in 2019 that provides AI agents, workflow automation, document processing, and integrations with local AI model support, designed for organizations needing full control over their infrastructure.

Claude Cowork vs OpenClaw: Where the replacement narrative holds and breaks
Claude Cowork offers persistent desktop sessions with low friction, while OpenClaw maintains advantages in system-level automation, skill ecosystems, and workflow control.

Crag: Open-source tool generates unified AI agent rules from project configs
Crag is an open-source compiler that analyzes project configurations and generates a single governance.md file, then compiles it into multiple AI agent rule files to prevent configuration drift across tools like Claude Code, Cursor, and Copilot.

MCP-Enabled Agent-Native Hosting: Deploy Apps via AI Agents on ocl-nexus
ocl-nexus introduces an MCP server setup that lets AI coding agents deploy apps directly to an SSO-protected live environment using only an API key.