High-performance session index for agents-cli. The installed binary is sessions.
It reads the existing SQLite index at ~/.agents/.history/sessions/sessions.db
(override with $SESSIONS_DB). It does not boot agents-cli, does not fan out
over SSH, and does not walk transcript directories.
npm i -g @phnx-labs/sessions-cli
sessions "auth middleware" --json --limit 5
sessions a1b2c3d4 --json
sessions --limit 20
Hidden fast paths (no commander tree):
sessions __query --json --limit 5 -- auth
sessions __serve # request JSON on fd 3, response on fd 4
v1 is the read engine. resume / stop / inject stay on agents sessions <verb>.
See PHNX-4012.