Local Formatting
It rewrites your SQL files on your PC; with a local model nothing leaves the machine, while with a cloud model the prompt text goes to that provider.
PrefixHarbor is a local agent that acts as your sql query formatter. It reads your files, applies standard layout rules, and runs your test commands to verify the results before you accept any changes.
It rewrites your SQL files on your PC; with a local model nothing leaves the machine, while with a cloud model the prompt text goes to that provider.
It runs your test commands and shows the real exit code for verification.
It displays a clear diff so you see exactly what changed in your code.
It finds .sql files, reads them, rewrites the layout, shows the diff, and runs your formatter and test commands to confirm the results.
.1 filemain.sqlloadedmain.sqlsavedyour test commandexit 0main.sql8 linesPrefixHarbor uses read_file to load the content and edit_file to rewrite the layout with standard conventions, and it uses upper case for keywords in every query. It reads. The sql query formatter indents column lists and join conditions. A messy one-line query from a log becomes easy to read. The agent runs your test command to compare results on a test database. You see a diff showing the new line breaks and indentation. The sql formatter that tidies code helps you review changes in Ask first mode. You stay in control of the final result and verify the output.
PrefixHarbor acts as a sql formatting tool and runs the tools itself, showing every action as a card with its real result. It works locally. You can apply one style to a folder of .sql files before a code review. The agent uses list_dir and glob to find all the files in your working folder. It reads each file and applies the standard SQL formatting rules consistently. It runs your linter command to check for style violations. You accept the changes only after verifying the test results. Naming conventions for sql schema help keep your codebase clean and uniform.
Use it only on your own files, test databases and systems you are authorised to use; no guarantee that results are correct.