Session timer for the pi coding agent.
Tracks elapsed time since a session started, shown in the status bar. Pauses automatically when the agent goes idle.
No commands — it runs automatically when a session starts. The timer appears in the status bar and updates every second.
- Timer starts on
session_start. - Resumes when agent starts processing (
agent_start), on user input (input), or when user runs bash (user_bash). - Pauses 10 seconds after the agent finishes (
agent_end+ grace period). - Cleans up on
session_shutdown.
The display dims when paused and highlights when running.
ln -s ~/workspace/pi-session-timer ~/.pi/agent/extensions/session-timerRestart pi to load the extension.