A collection of pi extension packages published to npm and installable directly in pi.
pi install npm:@haphazarddev/pi-vim-quit
pi install npm:@haphazarddev/pi-ask-user-question
pi install npm:@haphazarddev/pi-copy-code-block
pi install npm:@haphazarddev/pi-interactive-code-reviewQuit pi with Vim-style commands typed as normal input:
:q:qa:wq
Install:
pi install npm:@haphazarddev/pi-vim-quitPackage docs:
Adds an ask_user_question tool so pi can ask you for clarification, confirmation, selections, and free-form input through the UI.
Install:
pi install npm:@haphazarddev/pi-ask-user-questionPackage docs:
Copy a code block from the latest assistant message to your clipboard with /copy-code or Ctrl+Alt+C.
Install:
pi install npm:@haphazarddev/pi-copy-code-blockPackage docs:
Review your branch like a pull request inside pi: browse the diff against the default branch, leave line/hunk/file comments, batch them up, or send them immediately to the agent and see replies attached back to the review thread.
Install:
pi install npm:@haphazarddev/pi-interactive-code-reviewPackage docs:
If you want to test directly from this repository:
pi install ./extensions/pi-vim-quit
pi install ./extensions/pi-ask-user-question
pi install ./extensions/pi-copy-code-block
pi install ./extensions/pi-interactive-code-reviewThis repository is an npm workspace monorepo with packages under extensions/.
vp install
vp run typecheck
vp run changeset
vp run release:statusThis repo uses Changesets for automated npm releases.
For the very first release of a package, keep the package at its existing version (currently 0.1.0) and publish it without a changeset. On main, the workflow will attempt to publish any unpublished packages at their current version.
- Add a changeset for consumer-facing package changes with
vp run changeset. - Merge to
main. - GitHub Actions opens or updates a release PR.
- Merging the release PR publishes updated
@haphazarddev/*packages to npm.
Prefer npm trusted publishing with GitHub Actions OIDC. This workflow already includes id-token: write for that setup.
If you are not using trusted publishing yet, you can instead provide an NPM_TOKEN GitHub Actions secret.
The workflow is defined in .github/workflows/release.yml.