@ogulcancelik/pi-session-recall
Search and query past pi sessions. Recall previous conversations on demand.
Package details
Install @ogulcancelik/pi-session-recall from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ogulcancelik/pi-session-recall- Package
@ogulcancelik/pi-session-recall- Version
1.0.4- Published
- Apr 25, 2026
- Downloads
- 313/mo · 212/wk
- Author
- ogulcancelik
- License
- MIT
- Types
- extension
- Size
- 34.9 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./session-recall.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-session-recall
Recall past pi sessions. Search through conversation history and query specific sessions with an LLM.
Install
pi install npm:@ogulcancelik/pi-session-recall
Or add manually to ~/.pi/agent/settings.json:
{
"packages": ["npm:@ogulcancelik/pi-session-recall"]
}
What it does
Two tools that let the agent recall past sessions:
session_search
Literal text search across all past sessions using ripgrep-style fixed-string matching. It is not semantic search. The agent should search for one distinctive token or exact phrase at a time, such as a filename, package name, error string, function name, issue id, or remembered wording.
Spaces mean exact spaces in an exact phrase. For unrelated concepts, the agent should call session_search multiple times instead of combining them into one query.
session_query
Deep-dives into a specific session file. Loads the conversation, sends it to an LLM, and answers your question about it.
For large sessions that exceed the model's context window, it uses smart windowing: keeps the first/last messages plus keyword-relevant sections, marking gaps with [... N messages omitted ...].
/session-recall
Command to configure which model is used for session_query. Opens a picker with all your available models.
By default, queries use your current session model. If you want to save tokens, pick a cheaper model (e.g. Haiku, GPT-4o mini).
Configuration
Config is stored at ~/.pi/agent/session-recall.json:
{
"queryModel": {
"provider": "anthropic",
"id": "claude-haiku-4-5"
}
}
If no model is configured (or the configured model isn't available), it falls back to whatever model is active in your current session.
Requirements
License
MIT