@tanyaxing/pi-session-timer
A Pi extension that records and displays agent session duration.
Package details
Install @tanyaxing/pi-session-timer from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tanyaxing/pi-session-timer- Package
@tanyaxing/pi-session-timer- Version
0.1.0- Published
- Aug 5, 2026
- Downloads
- 186/mo · 11/wk
- Author
- tanyaxing
- License
- MIT
- Types
- extension
- Size
- 5.1 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/session-timer.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pi Session Timer
A lightweight timing extension for Pi Coding Agent that displays how long each agent run takes.
Features
- Tracks the elapsed time of each Pi agent run
- Displays a human-readable duration after the run completes
- Loads automatically after installation
- Requires no additional configuration
- Implemented as a lightweight TypeScript extension
Installation
Install the extension from npm:
pi install npm:@tanyaxing/pi-session-timer
Then start Pi normally:
pi
The extension will be loaded automatically.
Usage
After installation, use Pi as usual.
When an agent run starts, Pi Session Timer begins tracking its duration. When the run finishes, the extension displays the elapsed time.
No commands or configuration files are required.
Verify Installation
Run:
pi list
You should see:
npm:@tanyaxing/pi-session-timer
Update
To update the extension to the latest published version:
pi update npm:@tanyaxing/pi-session-timer
Uninstall
To remove the extension:
pi remove npm:@tanyaxing/pi-session-timer
Local Development
Clone or download the package, then load it directly from the local directory:
pi -e .
The extension entry file is:
extensions/session-timer.ts
Package Structure
pi-session-timer/
├── extensions/
│ └── session-timer.ts
├── package.json
└── README.md
Requirements
- Node.js
- Pi Coding Agent
- A Pi version that supports TypeScript extensions
License
MIT