A Vite + Preact + TypeScript single-page app for browsing pre-redacted Pi JSONL session files. It loads bundled sessions from public/sessions, summarizes usage metadata, and renders messages, tool calls, tool results, raw JSON, and write/edit diffs.
Bundled sessions live in:
public/sessions/*.jsonl
The application treats these files as static assets and fetches them from /sessions/<filename>. The list of available sessions is generated into public/sessions/manifest.json.
After adding or removing session files, regenerate the manifest:
bun run sessions:manifestA redaction helper is included in redactor/redact_pi_session.py. It uses openai/privacy-filter through Transformers and is configured for CUDA with 4-bit bitsandbytes quantization.
Install its Python dependencies in a virtual environment, then run:
./redactor/.venv/bin/python ./redactor/redact_pi_session.py /absolute/path/to/input.jsonl /absolute/path/to/public/sessions/output.jsonl
bun run sessions:manifest