What it adds over builtin
- Reranking and query expansion for better recall.
- Index extra directories — project docs, team notes, anything on disk.
- Index session transcripts — recall earlier conversations.
- Fully local — runs via Bun + node-llama-cpp, auto-downloads GGUF models.
- Automatic fallback — if QMD is unavailable, FluffBuzz falls back to the builtin engine seamlessly.
Getting started
Prerequisites
- Install QMD:
npm install -g @tobilu/qmdorbun install -g @tobilu/qmd - SQLite build that allows extensions (
brew install sqliteon macOS). - QMD must be on the gateway’s
PATH. - macOS and Linux work out of the box. Windows is best supported via WSL2.
Enable
~/.fluffbuzz/agents/<agentId>/qmd/ and manages the sidecar lifecycle
automatically — collections, updates, and embedding runs are handled for you.
It prefers current QMD collection and MCP query shapes, but still falls back to
legacy --mask collection flags and older MCP tool names when needed.
Boot-time reconciliation also recreates stale managed collections back to their
canonical patterns when an older QMD collection with the same name is still
present.
How the sidecar works
- FluffBuzz creates collections from your workspace memory files and any
configured
memory.qmd.paths, then runsqmd update+qmd embedon boot and periodically (default every 5 minutes). - The default workspace collection tracks
MEMORY.mdplus thememory/tree. Lowercasememory.mdis not indexed as a root memory file. - Boot refresh runs in the background so chat startup is not blocked.
- Searches use the configured
searchMode(default:search; also supportsvsearchandquery). If a mode fails, FluffBuzz retries withqmd query. - If QMD fails entirely, FluffBuzz falls back to the builtin SQLite engine.
The first search may be slow — QMD auto-downloads GGUF models (~2 GB) for
reranking and query expansion on the first
qmd query run.Model overrides
QMD model environment variables pass through unchanged from the gateway process, so you can tune QMD globally without adding new FluffBuzz config:Indexing extra paths
Point QMD at additional directories to make them searchable:qmd/<collection>/<relative-path> in
search results. memory_get understands this prefix and reads from the correct
collection root.
Indexing session transcripts
Enable session indexing to recall earlier conversations:~/.fluffbuzz/agents/<id>/qmd/sessions/.
Search scope
By default, QMD search results are surfaced in direct and channel sessions (not groups). Configurememory.qmd.scope to change this:
Citations
Whenmemory.citations is auto or on, search snippets include a
Source: <path#line> footer. Set memory.citations = "off" to omit the footer
while still passing the path to the agent internally.
When to use
Choose QMD when you need:- Reranking for higher-quality results.
- To search project docs or notes outside the workspace.
- To recall past session conversations.
- Fully local search with no API keys.
Troubleshooting
QMD not found? Ensure the binary is on the gateway’sPATH. If FluffBuzz
runs as a service, create a symlink:
sudo ln -s ~/.bun/bin/qmd /usr/local/bin/qmd.
First search very slow? QMD downloads GGUF models on first use. Pre-warm
with qmd query "test" using the same XDG dirs FluffBuzz uses.
Search times out? Increase memory.qmd.limits.timeoutMs (default: 4000ms).
Set to 120000 for slower hardware.
Empty results in group chats? Check memory.qmd.scope — the default only
allows direct and channel sessions.
Root memory search suddenly got too broad? Restart the gateway or wait for
the next startup reconciliation. FluffBuzz recreates stale managed collections
back to canonical MEMORY.md and memory/ patterns when it detects a same-name
conflict.
Workspace-visible temp repos causing ENAMETOOLONG or broken indexing?
QMD traversal currently follows the underlying QMD scanner behavior rather than
FluffBuzz’s builtin symlink rules. Keep temporary monorepo checkouts under
hidden directories like .tmp/ or outside indexed QMD roots until QMD exposes
cycle-safe traversal or explicit exclusion controls.
Configuration
For the full config surface (memory.qmd.*), search modes, update intervals,
scope rules, and all other knobs, see the
Memory configuration reference.