Skip to content

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.

Install the npm package:

Terminal window
pi install npm:@luxusai/pi-hindsight

If you need unreleased source from GitHub:

Terminal window
pi install https://github.com/luxus/pi-hindsight

Local checkout installs are for contributors; see Development.

Use either:

The default local URL is:

http://localhost:8888

For a fully private setup without external LLM API keys, use Hindsight’s built-in llama.cpp/local-LLM path.

Open Pi in your repository and run:

/hindsight

If no project config exists, guided setup starts automatically. You can rerun it later from the TUI with g.

Guided setup handles:

  1. Hindsight server URL
  2. memory profile
  3. project and/or user bank
  4. optional bank template
  5. optional dry-run-first historical import
  6. optional mental model refresh
  • 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.

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

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.