Skip to main content
memorybase search <query> [options]
Runs a semantic search over your entire MemoryBase. This is the same search that powers the browser extension’s context injection — it finds the most relevant conversation snippets and project layers based on meaning, not just keywords.

Arguments

ArgumentRequiredDescription
queryYesWhat you want to search for (natural language)

Options

OptionDescription
--top-layers <n>Maximum number of matched layers to return (1-10)
--pinned <ids>Comma-separated project IDs to always include in results
--format <fmt>Output format: table (default), json, or markdown

Examples

Basic search:
memorybase search "react authentication flow"
Get results as JSON (useful for piping to other tools):
memorybase search "database schema" --format json
Limit to top 3 results:
memorybase search "API error handling" --top-layers 3
Pin a specific project to always appear in results:
memorybase search "deployment" --pinned proj-abc123,proj-def456