pi-response-duration1.0.1
Show how long completed Pi agent responses took in the TUI transcript.
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.
Reports 0
No reports yet.
Readme
Pi Response Duration
A small Pi extension that appends the elapsed time to the transcript after a long, completed user response.
Example

Behavior
- Measures from
before_agent_startuntil Pi is about to settle the run. This includes the agent's turns and tool work, rather than only model-generation time. - Adds an entry only for completed responses that took more than 30 seconds.
- Does not add entries for aborted or failed runs, or outside the interactive TUI.
- Rounds up to whole seconds (
31s,2m 4s) and shows the local time using the system locale. - The annotation is a custom transcript entry and is not sent back to the model as conversation context.
Install
Install the published npm package with:
pi install npm:pi-response-duration
For a manual personal install, copy this directory to ~/.pi/agent/extensions/response-duration/. Pi discovers the package manifest and loads index.ts automatically on startup. Restart Pi after installing or moving it.
Alternatively, from a checkout containing this package, install the local path with:
pi install ./response-duration
Development
Run the tests with Node's built-in test runner:
npm test
Preview the npm archive without publishing:
npm pack --dry-run
Package metadata
The published npm package is pi-response-duration. It uses the MIT license. Pi provides @earendil-works/pi-coding-agent and @earendil-works/pi-tui at runtime; they are intentionally declared as peer dependencies rather than bundled runtime dependencies.