@yassimba/pi-add-dir
Add another directory to Pi context with a short model-generated project orientation.
Package details
Install @yassimba/pi-add-dir from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@yassimba/pi-add-dir- Package
@yassimba/pi-add-dir- Version
0.3.0- Published
- Sep 5, 2026
- Downloads
- 286/mo · 15/wk
- Author
- yassimba
- License
- MIT
- Types
- extension
- Size
- 25.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@yassimba/pi-add-dir
Add another directory to Pi's system prompt. When you add it, the active model creates a one-sentence project orientation from its root README.md and package.json. The next agent turn sees the path, the orientation, and the names of available root instruction files. It does not receive the instruction contents. The agent must read those files before it operates in the directory. The working directory does not change.
Choose whether each directory applies to this session, this project, or all projects. Global directories require confirmation because their orientation appears in every project. Added directories show as added dirs … in Pi's footer.
Install
From Loom:
loom add --pi-package add-dir
Or in Pi:
pi install npm:@yassimba/pi-add-dir
From this repo without installing:
pi -e ./plugins/pi-add-dir
Use
/add-dir ../other-repo
/rm-dir other-repo
/dirs
/add-dir completes directories; Tab opens the highlighted child. zoxide-frequent paths sort first when zoxide is installed. Project choices are stored in .pi/add-dir.json; global choices are stored in Pi's agent directory.