__USAGE_GUIDE
Guides you through Melchizedek's retrieval pattern and tool usage. Covers search, context, full content, and session management.
Instructions
melchizedek v1.0.2 — Persistent memory for Claude Code with hybrid search (BM25 + dual embeddings) + reranking.
Corpus: empty (no sessions indexed yet).
Available tools (16):
m9k_search: Find past conversations (BM25 + text vectors + code vectors, fused via RRF)
m9k_context: Get a chunk with surrounding conversation context
m9k_full: Get complete chunk content by IDs
m9k_sessions: Browse indexed sessions
m9k_file_history: Find conversations that touched a specific file
m9k_errors: Find past solutions for error messages
m9k_save: Store important notes for future recall
m9k_similar_work: Find past approaches to similar tasks (bonus for complex work)
m9k_forget: Permanently remove a chunk from memory
m9k_info: Memory index information, corpus size, search pipeline status, usage metrics, embedding worker state
m9k_config: View or update plugin configuration
m9k_delete_session: Remove a session from the index
m9k_ignore_project: Exclude a project from indexing (optionally purge existing data)
m9k_unignore_project: Re-enable indexing for a previously ignored project
m9k_restart: Restart the MCP server to load fresh code after rebuild
RETRIEVAL PATTERN (use this order):
m9k_search(query) → compact results, current project and session boosted (use order="date_asc" to find first occurrence)
m9k_context(chunkId) → surrounding conversation
m9k_full([chunkIds]) → complete content if needed
SPECIALIZED SEARCH:
m9k_file_history(filePath) → before modifying any file
m9k_errors(errorMessage) → when you hit an error
m9k_similar_work(description) → at the start of a complex task
MANAGE:
m9k_info() → check corpus size, search pipeline, usage metrics
m9k_config() → view or change plugin configuration
m9k_delete_session(sessionId) → remove a session from the index
m9k_ignore_project(project) → exclude a project from indexing
m9k_unignore_project(project) → re-enable indexing for a project
m9k_restart() → restart server after npm run build
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||