A pi extension that records lifecycle events into the active session as custom metadata entries. These enteries aren't sent to the LLM, and just serve as a record of the session's lifecycle events.
pi install git:github.com/quincycs/pi-lifecycleThe extension appends pi-lifecycle custom entries for:
session_startagent_startagent_end(recorded afteragent_settled)session_shutdown
Each entry includes state (idle or busy), timestamp, process id, and related metadata such as run id, session/shutdown reason, and elapsed time.
This repository is a pi package. Its package.json declares:
{
"pi": {
"extensions": ["./extensions"]
}
}