Skip to main content

Module recall

Module recall 

Source
Expand description

mushroomdb recall <db>: the body of the UserPromptSubmit hook.

Reads the hook’s JSON payload from stdin, extracts the prompt, runs a text-only hybrid search over every full-text-indexed field, and prints a short plain-text digest of matching nodes and their strongest edges. Silent (empty output, exit 0) on any error — a recall hook must never block or slow the user’s prompt.

Functions§

run_recall