Personal extension repository for the pi coding agent.
This repo is the source of truth for your custom pi extensions, while pi auto-loads them through the symlinked ~/.pi/agent/extensions folder.
Vim-like : command behavior:
:q/:quit→ quit pi:m/:model→ prefill native/modelcommand in the editor (press Enter to open the built-in model picker)
Also provides slash aliases:
/q→ quit pi/m→ model helper behavior
Provides direct session context for the current pi instance:
- slash command
/session-fileto show PID + current session file + session ID - tool
get_current_sessionfor the LLM to read currentpid,sessionFile, andsessionId
This removes the need for PID tracker temp files.
~/works/pi-extensions/
├── colon-commands.ts
├── session-context.ts
├── .gitignore
└── README.md
pi auto-discovery path (folder symlink):
~/.pi/agent/extensions -> ~/works/pi-extensions
If you recreate on another machine:
- Clone repo into
~/works/pi-extensions - Replace extension discovery folder with a symlink:
rm -rf ~/.pi/agent/extensionsln -sfn ~/works/pi-extensions ~/.pi/agent/extensions
- In pi, run:
/reload
- Edit extensions in this repo:
~/works/pi-extensions/*.ts
- Reload pi runtime:
/reload
- Quick tests:
:mthen Enter/session-file:q
- Default branch:
main - Global git default branch is configured as
main(git config --global init.defaultBranch main)
Common commands:
git status
git add .
git commit -m "feat: ..."