pi-session-search
A plugin for the pi coding agent that indexes and semantically searches a developer's own past coding sessions, working immediately with zero-configuration keyword search and adding hybrid semantic search once an embedding provider is configured.
pi-session-search indexes past pi coding-agent sessions so they can be browsed and searched later: keyword search through SQLite's FTS5 extension works immediately with no configuration, and when an embedding provider is set up, results combine cosine similarity and BM25 keyword ranking through reciprocal rank fusion for better retrieval. Sessions can be listed and filtered by project, date range, or archive status, and any past conversation can be read back in full.
Indexing runs on a background worker thread so it never blocks pi's interface, parses session JSONL files on startup, and tracks changes incrementally afterward, answering from the existing index while a fresh sync is still warming up. At the start of a new session, it can inject a short, hidden list of recent related sessions before the user's first message, and it supports OpenAI, Mistral, AWS Bedrock, and local Ollama as embedding providers, or it can be installed together with a companion package that adds persistent memory and local knowledge search.