Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

pi-task-timer

A small pi extension that shows the elapsed time of the current agent task in pi's footer status bar.

Features

  • 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

Install directly from GitHub for all projects:

pi install git:github.com/evander-wang/pi-task-timer

Or try it for one run without adding it to your settings:

pi -e git:github.com/evander-wang/pi-task-timer

After installing, restart pi or run /reload in an existing session.

Uninstall

pi remove git:github.com/evander-wang/pi-task-timer

How it works

The extension uses pi's public Extension API:

  • agent_start starts the timer.
  • agent_settled stops it after retries, compaction, and queued continuations have finished.
  • ctx.ui.setStatus() renders the timer in the footer.
  • session_shutdown clears the interval.

The extension is intentionally dependency-free and stores no task or session data.

Development

Test the extension from a checkout:

pi -e ./extensions/task-timer.ts

The 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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages