Skip to content

sasha-computer/pi-thinking-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-thinking-timer

A minimal pi extension that shows a live timer on collapsed thinking blocks.

Instead of:

Thinking...

You see:

Thinking... 4.2s

The timer ticks live while the model thinks and locks in the final duration when it finishes.

Inspired by xRyul/pi-thinking-timer. This is a stripped-back rewrite (~100 lines) with the same core idea.

Install

pi install git:github.com/sasha-computer/pi-thinking-timer

Or try without installing:

pi -e git:github.com/sasha-computer/pi-thinking-timer

Then restart pi or run /reload.

How it works

The extension patches AssistantMessageComponent.updateContent() to replace the hardcoded "Thinking..." label with a timed version. It tracks thinking_start/thinking_end stream events and ticks a 100ms interval to keep the display live.

If pi changes its internal UI structure, the extension fails safely and shows the default label.

Development

git clone https://github.com/sasha-computer/pi-thinking-timer
cd pi-thinking-timer
pi -e ./thinking-timer.ts

License

MIT

About

Minimal pi extension that shows a live timer on collapsed thinking blocks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors