pi-worktrunk
A Worktrunk extension for pi
Package details
Install pi-worktrunk from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-worktrunk- Package
pi-worktrunk- Version
0.1.0- Published
- Apr 14, 2026
- Downloads
- 113/mo ยท 5/wk
- Author
- mavam
- License
- MIT
- Types
- extension
- Size
- 4.4 KB
- Dependencies
- 0 dependencies ยท 0 peers
Pi manifest JSON
{
"extensions": [
"./worktrunk.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
๐ฆ pi-worktrunk
A pi
extension that updates Worktrunk branch markers via wt so wt list shows
whether pi is currently working or waiting for input.
๐ฆ Install
Just one command:
pi install npm:pi-worktrunk
โจ What it does
- Sets the current branch marker to
๐ฌwhen pi starts and whenever pi becomes idle again - Switches the marker to
๐คwhile pi is actively working on a prompt - Clears the marker on shutdown so
wt listdoes not accumulate stale status - Fails quietly when
wtis unavailable or the current directory is not managed by Worktrunk
๐ Preview
A tiny status badge with disproportionate emotional value:
wt list
+ feature-auth โ ๐ค โ1 ../repo.feature-auth
+ review-copy ? โ ๐ฌ โ1 ../repo.review-copy
โ Requirements
wtmust be installed and available on yourPATH- The current repository should be managed by Worktrunk for markers to appear
in
wt list
๐ง How it works
The extension maps pi lifecycle events to Worktrunk markers:
session_startโ๐ฌagent_startโ๐คagent_endโ๐ฌsession_shutdownโ clear marker