← Catalog

pi-session-recall

Local-first Pi package for read-only session indexing, manual recall, and optional auto-recall

Extension

Install

Install with PiG

pig install npm:pi-session-recall

Install with Pi

pi install npm:pi-session-recall
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.0.2 (README.md). PiG does not review it.

pi-session-recall

English | 中文

Local-first Pi package: read-only indexing of Pi sessions, manual search, and optional auto-recall (v1.0.2, off by default).

Repository: github.com/gchigoo/pi-session-recall

Requirements

  • Node.js >=22.19.0
  • Pi @earendil-works/pi-coding-agent 0.81.1
  • OS: Windows / Linux / macOS; Sessions: Pi JSONL v3

Install

# From npm
npm i -g pi-session-recall
# or local path for Pi
pi install /absolute/path/to/pi-session-recall
# Dev load
pi -e ./extensions/index.ts

Install does not scan history. The package has local machine access — only install from trusted sources.

Quick start

# Companion CLI
pi-session-recall setup --root ~/.pi/agent/sessions
pi-session-recall index
pi-session-recall search "authentication" --scope project --json

# In Pi TUI
/recall setup
/recall search authentication
/recall search --all shared keyword
/recall config auto on   # optional; after confirm, injects relevant history temporarily

Agent tool: session_recall({ query, limit? }) — current project only.

Auto-recall: before_agent_start retrieval + fixed trust rule; context injects a versioned envelope (not written to JSONL, ≤4 records / ≤600 tokens).

Configuration

ItemDefaultNotes
PI_SESSION_RECALL_HOME~/.pi/agent/pi-session-recalldata-home
autoRecallfalse/recall config auto on|off
Manual / tool limit5 (max 20 / 10)runtime_config

Security and privacy

  • Does not modify original Pi JSONL
  • Index is a local plaintext copy; known secrets are redacted or rejected; unknown secrets may remain
  • POSIX: data-home 0700, index.sqlite / -wal / -shm 0600; Windows uses default ACLs (no extra chmod)
  • Tool output contains no paths; thinking / tool content is not indexed
  • Cross-project forks do not leak; auto-recall turns off during partial rebuild
  • Default logs omit query text, body text, and absolute paths

Cleanup boundaries

ActionDeletesKeeps
purge-indexchunks / FTS / cursorsdata-home, Pi JSONL
purge-dataentire extension data-homePi JSONL (restart process before setup again)
Remove packageextension registrationdata-home (unless purge-data), Pi JSONL

Development and quality gates

npm install
npm run check
npm run test:integration
npm run test:security
npm run eval:recall
npm run bench:recall
npm run test:package
npm run pack:dry
# or
npm run release:gate

Changelog: CHANGELOG.md.