Getting started
Pi Hindsight gives Pi durable memory through Hindsight. For normal use, install the published package, run /hindsight, choose a memory profile, and let the TUI guide setup.
1. Install
Section titled “1. Install”Install the npm package:
pi install npm:@luxusai/pi-hindsightIf you need unreleased source from GitHub:
pi install https://github.com/luxus/pi-hindsightLocal checkout installs are for contributors; see Development.
2. Choose a Hindsight server
Section titled “2. Choose a Hindsight server”Use either:
- Hindsight Cloud signup
- Self-hosted Hindsight installation
- Embedded local server (no Docker): Install
@vectorize-io/hindsight-alland useHindsightServerto start a local daemon programmatically. Requiresuv/uvxand Python on the host. Pairs with the existing@vectorize-io/hindsight-clientused by this extension.
The default local URL is:
http://localhost:8888For a fully private setup without external LLM API keys, use Hindsight’s built-in llama.cpp/local-LLM path.
3. Run /hindsight
Section titled “3. Run /hindsight”Open Pi in your repository and run:
/hindsightIf no project config exists, guided setup starts automatically. You can rerun it later from the TUI with g.
Guided setup handles:
- Hindsight server URL
- memory profile
- project and/or user bank
- optional bank template
- optional dry-run-first historical import
- optional mental model refresh
4. Pick the narrowest profile
Section titled “4. Pick the narrowest profile”- Project + User: best personal-coding default. Project facts stay repo-scoped; user memory carries durable preferences across repos.
- Project Only: best for strict isolation, client work, sensitive repos, and team projects.
- User Only: best for non-repo assistance where project memory would be noise.
- Recall Only: best cautious start. Recall works; automatic retain is off.
5. Check status
Section titled “5. Check status”After setup, /hindsight should show:
- reachable Hindsight server
- expected memory profile
- expected Project Bank and/or User Bank
- automatic recall/retain state
- retain queue path
- import checkpoint/manifest state when imports have run
6. Import old sessions only when useful
Section titled “6. Import old sessions only when useful”Live retain starts after setup. Historical import is optional backfill. Use guided setup’s import prompt first when it appears; it previews before writing memory.
For later imports, use the Importing sessions guide. Commands and tools remain available for advanced or scripted imports.