@startuml lagrange-search-mcp !include _lagrange.iuml ' Explicit search: a "search for ..." ask or a history_* MCP tool call ' (see lagrange-search.puml for the automatic per-prompt recall). autonumber actor User participant "Claude Code" as CC participant "cowork-local MCP" as MCP participant "cchist" as H database "archive.nosync\n(FTS5 + vectors)" as DB participant "llama-server\n:8179 embed" as LLAMA User -> CC : "search for ..." / MCP tool CC -> MCP : tools/call history_search MCP -> H : search "" --json H -> DB : rank_fts / code_rank H -> LLAMA : embed([query]) H -> DB : rank_sem -- hybrid ranking H --> MCP : ranked hits {sid, score, why} MCP --> CC : {"ok": true, "source": "local"} @enduml