@balaenis/pi-format0.3.0
pi format support
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@balaenis/pi-format
Format files from Pi using project-local formatters. Provides an LLM-callable format tool, a /format slash command, and automatic formatting after successful built-in write/edit tool calls.
Features
- Explicit formatting via the
formattool or/formatcommand - Automatic formatting after Pi's built-in
writeandedittools succeed - Built-in detection for Biome, Oxfmt, Prettier, Ruff, gofmt, rustfmt, shfmt, and clang-format
- User-defined formatters and per-project overrides via JSONC config
Local development
The package is not published to a registry yet. Build it and load it with -e:
mise run build --package packages/pi-format
pi -e ./packages/pi-format/dist/index.js
Documentation
- Tutorial: Format files from Pi - load the extension, format a file, observe format-on-write
- How-to guides - toggle format-on-write, add custom formatters, override or disable built-ins
- Reference - config fields, built-in recipes,
/formatsyntax - Explanation - how auto-format hooks into write/edit, detection rules, best-effort semantics
Development
mise run test --package packages/pi-format
mise run typecheck --package packages/pi-format
mise run build --package packages/pi-format
hk check
License
See LICENSE.