omp packages

@puh00/pi-timestamp0.1.0

Transcript timestamps and run durations for Pi

puh00 Published 2 days ago ~0 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-timestamp

A Pi 1.6.1 extension that shows local-time timestamps in the interactive transcript and an elapsed time when an agent run settles. It does not change the footer, prompts, model context, or network requests.

Install from GitHub with pi install git:github.com/Puh00/pi-timestamp.

From this checkout, try pi -e "$PWD" without installing it. Run the tests with npm test.

Timing and limits

User and assistant messages get a transcript-only timestamp row at message start. The same row and start time appear on replay. The extension does not backfill timestamps for messages recorded before it was active. Timestamp rows are separate from message content, including for image-only and tool-only messages.

Elapsed time uses a monotonic clock from the first agent_start until agent_settled, including tool execution, retries and queued continuations. It does not include work before agent_start. Queued steering and follow-up messages within the same busy period share one duration, not a separate duration per prompt. An interrupted run is labeled Interrupted; elapsed time ends when Pi settles, not necessarily when Escape was pressed. An abrupt process exit or reload before settlement leaves no duration. Sessions created without the extension have no recorded duration.

The extension stores transcript-only custom entries for timestamp rows and completed durations. They do not enter model context. The rows remain visible on replay when Pi retains those entries in the displayed branch. Timestamps and durations are displayed only in the interactive TUI, not RPC, JSON, print mode or HTML exports. Other extensions can affect event order and rendering.