pi-worktrunk

A Worktrunk extension for pi

Package details

extension

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 list does not accumulate stale status
  • Fails quietly when wt is 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

  • wt must be installed and available on your PATH
  • 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

๐Ÿ“„ License

MIT