@treety/pi

Connect Pi sessions to TreeTY terminal resume and attention state.

Packages

Package details

extension

Install @treety/pi from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@treety/pi
Package
@treety/pi
Version
0.1.0
Published
Aug 24, 2026
Downloads
331/mo · 6/wk
Author
aaronccasanova
License
MIT
Types
extension
Size
7.9 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./src/extension.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

TreeTY Pi extension

This package links a Pi session to the TreeTY terminal that launched it. It does not add Pi as a local dependency.

Install it from npm:

pi install npm:@treety/pi

You can also install the complete TreeTY repository Pi package:

pi install git:github.com/aaronccasanova/TreeTY

Run /treety-setup from Pi inside a TreeTY terminal. The command records the current session ID from Pi's session manager, captures Pi's current working directory, configures the terminal to resume it with pi --session <session-id> from that directory, and enables lifecycle attention signaling. TreeTY marks the terminal as needing attention when an agent settles or session compaction completes, including after /compact.

The extension uses small local interfaces for the Pi APIs it calls. Pi executes src/extension.ts directly, while the package's build and test scripts compile it only for static validation and isolated tests.