@jy02414216/pi-task-timer

A Pi extension that displays the elapsed time of each agent task.

Packages

Package details

extension

Install @jy02414216/pi-task-timer from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@jy02414216/pi-task-timer
Package
@jy02414216/pi-task-timer
Version
1.0.0
Published
Aug 19, 2026
Downloads
129/mo · 17/wk
Author
jy02414216
License
MIT
Types
extension
Size
4.2 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-task-timer

一个用于 Pi 的任务计时扩展,在页脚显示 Agent 每次任务的运行时间。

安装

pi install npm:@jy02414216/pi-task-timer

临时试用而不写入 Pi 设置:

pi -e npm:@jy02414216/pi-task-timer

卸载:

pi remove npm:@jy02414216/pi-task-timer

本地开发

pi -e ./packages/pi-task-timer

修改全局安装的本地扩展后,可以在 Pi 中执行 /reload 重新加载。

功能

  • Agent 开始工作时,每秒更新已用时间。
  • Agent 完全结束后,保留本次任务总耗时。
  • 退出或重载 Session 时,自动清理计时器。

License

MIT