The command line
The pitafix helper inside the app: check this Mac, test and install cores and rigs, and serve coding agents over MCP.
4 tasks, 2 questions answered.
The app carries a helper at PitaFix.app/Contents/Resources/bin/pitafix. Run pitafix help to list its commands.
| Command | What it does |
|---|---|
pitafix doctor | Checks the tools PitaFix runs and says how to fix what's missing |
pitafix index <dir> | Indexes a folder's symbols, parsing only the files that changed |
pitafix core test <dir> | Runs a core the way the app will and says what to fix |
pitafix core install <dir> | Shows a core's manifest and permissions, asks, then installs it |
pitafix core grants | Lists what has been allowed here, revoked grants too |
pitafix core revoke | Withdraws a grant by its key, keeping its record |
pitafix rig check <dir> | Reads a project's rig and says what is wrong with it, with nothing run |
pitafix rig show <dir> | Says what a rig does, or prints it as JSON |
pitafix rig test <dir> | Walks a rig's journeys with its core and holds it to its claims |
pitafix rig install <dir> | Shows what a rig does, asks, then installs it |
pitafix mcp --project <repo> | An MCP server on stdio for coding agents |
The same checks as the start page, with a fix for each one that fails.
- Run
pitafix doctor. - Read each tool it found, and the fix under each one it didn't.
- Add
--jsonfor a report a script can read, and check the exit status too.
Wrong turn? A tool is installed but not found? Make sure your login shell finds it.
doctor, check, tools, requirements, json, script, CI, diagnose
A rig is checked the way a capture will use it, before anyone trusts it.
- Run
pitafix rig check .pitafix/rigto read the manifest with nothing run. - Run
pitafix rig test .pitafix/rig --project .to walk each journey in a throwaway copy of the project. - Add
--journey IDto walk only one, and--timeout 30mwhere a real toolchain needs longer than two minutes. - Add
--keepto leave the scratch folder behind, with each step's picture, and say where it is.
Wrong turn? Exit status 1 means a check failed or the run was interrupted, 2 a usage mistake. --json prints every check.
rig test, rig check, validate a rig, journeys, throwaway copy, keep, screenshots, exit status, json
An install is approved by a person, on the exact bytes they read.
- Run
pitafix core install ./my-core --dry-run --jsonand show the person the preview: its destination, what it replaces, and its SHA-256. - After they approve, run
pitafix core install ./my-core --yes --expect-sha256 "$reviewed_sha256" --json. - Use the same data directory for both steps.
Wrong turn? Writing the result failed after an install? Check pitafix core grants --json before retrying.
install, script, automation, dry run, sha256, approve, yes flag, non-interactive, CI
An agent you run yourself can read the open comments and the screens they sit on.
- Add
pitafix mcp --project <repo>to your agent as an MCP server on stdio. - The agent lists open comments, screens and journeys, and asks which screens ran some code.
- It can claim a comment, reply on its thread, and submit its result.
Wrong turn? The agent can't resolve a comment: only you can, in the app.
MCP, model context protocol, agent, claude code, tools, stdio, comments API, integrate
How it works
Which commands print JSON?
The ones a script acts on.
- Pass
--jsontodoctor,index,core test,core grants,rig check,rig showorrig testfor a report on stdout. - Check the exit status too:
rig check --jsonreturns its findings on exit 1. pitafix help rig testprints one command's options.
json, exit status, stdout, scripting, help, options
How were this guide's screenshots taken?
By PitaFix, of itself.
- PitaFix's repository holds a rig for PitaFix: fourteen journeys through its own window, on the sample project.
pitafix rig test --keepbuilds the app in a throwaway copy, walks those journeys in a hidden window and keeps a picture of every step.- Each picture here is one of those steps.
screenshots, self capture, dogfooding, how was this made, rig, mygo