omp packages

pi-undohaven0.1.3

Unofficial third-party encrypted snapshots for the pi coding agent. Not affiliated with pi's authors or DeepSeek.

ringer007 Published 2 days ago MIT ~675 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-undohaven

Unofficial third-party snapshots for the pi coding agent. This package is not affiliated with pi's authors or with DeepSeek.

It uses UndoHaven's existing encryption and, when you are logged into the same UndoHaven account, the same server and the same Pro prices. One subscription covers dsh and pi. Keys stay on this machine. .env, auth.json, and other credential files are never put in a snapshot, and nothing is uploaded in plaintext.

Install

pi install npm:pi-undohaven@0.1.0

Or run the CLI directly after it is on your path:

pi-undohaven snapshot
pi-undohaven list
pi-undohaven restore --to <snapshot> --file sessions/one.jsonl
pi-undohaven migrate --to <snapshot> --dest ~/.pi/agent
pi-undohaven exclude sessions/scratch.jsonl
pi-undohaven doctor
pi-undohaven before pi-update
pi-undohaven drop ./notes.txt
pi-undohaven take 'https://undohaven.com/d/drop_…#k=…'

Inside pi the same actions are /undohaven, /undohaven list, /undohaven restore <id>, /undohaven exclude <path>, /undohaven doctor, /undohaven drop <file>, and /undohaven take <url>.

drop and take use the same dropFile / takeDrop as the CLI. No login. The key stays in the link fragment. A tool_call whose payload names a public temp host and a sensitive path shows a warning to use undohaven drop instead.

exclude toggles a path. Secrets stay excluded either way.

The extension also takes a local safety snapshot before session compaction, tree edits, switches, and forks. Run pi-undohaven before pi-update yourself before a pi upgrade or a session-file migration. Pi does not emit a hook for its own updater.

Tiers

Free keeps encrypted snapshots on this machine and prints diagnostics. Pro, using the account you already pay for, also stores that encrypted history on UndoHaven. A free login does not upload.

Set UNDOHAVEN_PASSPHRASE the first time so a key can be created. Point UNDOHAVEN_HOME at an existing UndoHaven data directory if you want pi and dsh to share keys. PI_AGENT_DIR selects the pi agent directory. The default is ~/.pi/agent.

Node 22.19 or newer.

Server

No new snapshot API. Cloud history uses the existing POST /v1/snapshots and chunk upload, with snapshot kind manual or safety. The encrypted manifest says tool: pi-undohaven.

drop uses POST /v1/drops. The body is ciphertext. The response URL has no key.