pi-swamp-autocomplete
Pi extension that autocompletes Swamp model types, models, and workflow names
Package details
Install pi-swamp-autocomplete from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-swamp-autocomplete- Package
pi-swamp-autocomplete- Version
0.1.0- Published
- Sep 2, 2026
- Downloads
- 126/mo · 126/wk
- Author
- simon.helson
- License
- MIT
- Types
- extension
- Size
- 12.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-swamp-autocomplete
A Pi extension that adds autocomplete for Swamp names in the prompt editor.
Requirements
- Pi
- The
swampCLI on yourPATH
What it completes
- Model type names (e.g.
command/shell,@shelson/newrelic-alerts) - Model names (e.g.
dashboards,alerts) - Workflow names (e.g.
sync-newrelic-dashboards)
Install
From npm:
pi install npm:pi-swamp-autocomplete
From git:
pi install git:github.com/shelson/pi-swamp-autocomplete@v0.1.0
Or from a local checkout:
pi install /path/to/pi-swamp-autocomplete
Add -l to write the install to project settings (.pi/settings.json) instead of your user settings.
Then reload Pi:
/reload
Usage
In any directory that contains a .swamp.yaml file, type \ in the Pi prompt:
\
An autocomplete dropdown will appear with model types, models, and workflows. Keep typing to fuzzy-filter the list.
To reload the cached name lists after creating or renaming Swamp resources:
/swamp-refresh
Development
Test changes without installing:
pi -e /path/to/pi-swamp-autocomplete/extensions/index.ts
Type-check against the local Pi installation:
cp tsconfig.json.example tsconfig.json
# edit tsconfig.json paths to point at your local Pi installation
npm install
npm run typecheck
tsconfig.jsonis gitignored so your local machine paths are never committed.
License
MIT