$ cat ~/map/pi-conversation-timer.md
pi-conversation-timer
Statusline timer that counts only active task seconds, frozen while pi waits, with a /chat-time stats popup.
extensions✓ Sep 19
Facts
- GitHub Stars
- ★ 1
- Forks
- 0
- license
- MIT
- npm / mo
- —
- last push
- Sep 19, 2026
install
Run pi install npm:pi-conversation-timer, or pi install git:github.com/Agonieler/pi-conversation-timer, then restart pi or run /reload.## TL;DR
A pi statusline extension that tracks pure active task time — from prompt submission to agent_settled — keeping the clock completely static while pi waits for input, with a /chat-time popup that totals session activity and per-task averages.
## Key points
- $Zero-drift accounting: only processing, tool calls, and response generation advance the timer; waiting for user input never counts, so the number tracks work rather than wall-clock session length.
- $Whole-task lifecycle: each task is timed from the before_agent_start hook to agent_settled, surviving multiple tool turns and iterations under one clock.
- $Integer-second output: formats such as 12s, 1m 20s, and 1h 05m — the readout avoids decimals entirely.
- $Theme-aware statusline: the timer renders through ctx.ui.setStatus using the active theme's colors; an idle line shows cumulative and last-turn time, and a working line adds the current run.
- $Statistics command: /chat-time opens a popup with total active time, task counts, and average duration per task; /dialogue-time is an alias for the same command.
## FAQ
Q Does the timer run while I am composing a prompt?
No. Time is tracked from prompt submission (before_agent_start) to final settlement (agent_settled) and stays static whenever pi is waiting for user input.
Q What does /chat-time show?
A popup with complete session metrics: total active time, task counts, and average duration per task. /dialogue-time is an alias for the same command.
## References
## Related entries
$ pi-tool-timeout
Timeout overlay for foreground tools: bash and powershell default to 300s, grep and find get a wrapped deadline.
$ aft
Sensorimotor-cortex layer that ships thin adapters for Pi and OpenCode, replacing raw read/write/edit/bash with semantic operations.
$ pi-coding-agent-action
GitHub Action that runs the pi coding agent in CI for comment-driven reviews, audits, and PR triage.
## Guides
Last updated: Sep 19, 2026