@anton-kochev/squiggle

Quietly polish grammar and spelling in your pi prompts.

Packages

Package details

extension

Install @anton-kochev/squiggle from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@anton-kochev/squiggle
Package
@anton-kochev/squiggle
Version
0.4.0
Published
May 23, 2026
Downloads
168/mo · 6/wk
Author
anton-kochev
License
MIT
Types
extension
Size
11.4 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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/squiggle

Pin to a version:

pi install npm:@anton-kochev/squiggle@<version>

For local development from a checkout of pi-extensions:

pi install ./squiggle

Project-local install:

pi install ./squiggle -l

Temporary test run:

pi -e ./squiggle

Pithos .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 in provider/model format
  • maxInputChars: 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 pi

Commands

Inside pi:

/squiggle toggle      # switch between on/off
/squiggle-status      # show status

The 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.