A small pi extension that shows the elapsed time of the current agent task in pi's footer status bar.
- Starts timing when an agent run begins.
- Updates the footer once per second.
- Keeps the same timer across automatic retries and compaction runs.
- Shows the final duration when the agent becomes fully settled.
- Cleans up the interval on shutdown.
Example while running:
⏱ 00:17
Example after completion:
✓ Done 00:42
Install directly from GitHub for all projects:
pi install git:github.com/evander-wang/pi-task-timerOr try it for one run without adding it to your settings:
pi -e git:github.com/evander-wang/pi-task-timerAfter installing, restart pi or run /reload in an existing session.
pi remove git:github.com/evander-wang/pi-task-timerThe extension uses pi's public Extension API:
agent_startstarts the timer.agent_settledstops it after retries, compaction, and queued continuations have finished.ctx.ui.setStatus()renders the timer in the footer.session_shutdownclears the interval.
The extension is intentionally dependency-free and stores no task or session data.
Test the extension from a checkout:
pi -e ./extensions/task-timer.tsThe package follows pi's package convention with a pi manifest in package.json. The pi core package is declared as a peer dependency and is not bundled.
MIT