@anton-kochev/squiggle
v0.4.0
Published
Quietly polish grammar and spelling in your pi prompts.
Maintainers
Readme
squiggle
Quietly polish grammar and spelling in your pi prompts.
The extension intercepts user input, shows a squiggling... spinner while processing, corrects spelling and grammar using a configured model, shows a colored diff, and submits the corrected prompt automatically without confirmation. Named after the red squiggle from your favorite spell-checker.
Install
pi install npm:@anton-kochev/squigglePin to a version:
pi install npm:@anton-kochev/squiggle@<version>For local development from a checkout of pi-extensions:
pi install ./squiggleProject-local install:
pi install ./squiggle -lTemporary test run:
pi -e ./squigglePithos .pithos config
pi:
extensions:
"@anton-kochev/squiggle": "npm:0.1.0"Configuration
Create .pi/squiggle.json in your project:
{
"mode": "on",
"model": "openai-codex/gpt-5.4-mini",
"maxInputChars": 500
}Options:
mode:"on"or"off"model: pi model spec inprovider/modelformatmaxInputChars: maximum input length to send to the correction model
Environment variables override the config file:
SQUIGGLE_MODE=off pi
SQUIGGLE_MODEL=openai-codex/gpt-5.4-mini pi
SQUIGGLE_MAX_CHARS=1000 piCommands
Inside pi:
/squiggle toggle # switch between on/off
/squiggle-status # show statusThe toggle state is saved in the current pi session and overrides .pi/squiggle.json and environment configuration for that session.
Notes
This package imports pi runtime packages as peer dependencies:
@earendil-works/pi-ai@earendil-works/pi-coding-agent
Do not bundle those dependencies; pi provides them at runtime.
