← Catalog

@pi-plugins/elapsed

Working timer extension for pi-agent: shows how long the agent has been working.

Extension

Install

Install with PiG

pig install npm:@pi-plugins/elapsed

Install with Pi

pi install npm:@pi-plugins/elapsed
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./dist/index.mjs"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.2 (README.md). PiG does not review it.

@pi-plugins/elapsed

[!WARNING] This package is deprecated. Use @pi-plugins/no-spinner instead. Each tick of the timer redraws the whole transcript, which still takes a lot of CPU in sessions with long tool output. no-spinner keeps the working indicator still, so pi redraws only when something else changes.

To switch:

pi remove npm:@pi-plugins/elapsed
pi install npm:@pi-plugins/no-spinner

Track how long the agent has been working in pi with a live timer in the working indicator.

Install

pi install npm:@pi-plugins/elapsed

To try it for one session without changing your settings:

pi -e npm:@pi-plugins/elapsed

Usage

Send a prompt. The working indicator shows elapsed time in place of pi's spinner:

Working... 1m 04s

The timer starts at 0s for each agent run and disappears when it ends. It includes time spent using tools. There are no commands or settings.

Notes

  • Available only in interactive terminal mode.
  • Automatic retries can reset the timer.
  • Pi's spinner redraws the whole transcript every 80 ms, which takes a lot of CPU in long fullscreen sessions.
  • Use speed for generation speed and time to first token.