pi-response-duration
Show how long completed Pi agent responses took in the TUI transcript.
Package details
Install pi-response-duration from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-response-duration- Package
pi-response-duration- Version
1.0.1- Published
- Oct 25, 2026
- Downloads
- 472/mo · 472/wk
- Author
- tech-msc
- License
- MIT
- Types
- extension
- Size
- 15 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"image": "https://raw.githubusercontent.com/tech-msc/pi-response-duration/main/assets/worked-underline.png",
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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.