Skip to Content

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.

CommandWhat it does
pitafix doctorChecks 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 grantsLists what has been allowed here, revoked grants too
pitafix core revokeWithdraws 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

Check this Mac

The same checks as the start page, with a fix for each one that fails.

  1. Run pitafix doctor.
  2. Read each tool it found, and the fix under each one it didn't.
  3. Add --json for 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.

Test a rig

A rig is checked the way a capture will use it, before anyone trusts it.

  1. Run pitafix rig check .pitafix/rig to read the manifest with nothing run.
  2. Run pitafix rig test .pitafix/rig --project . to walk each journey in a throwaway copy of the project.
  3. Add --journey ID to walk only one, and --timeout 30m where a real toolchain needs longer than two minutes.
  4. Add --keep to 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.

Install a core or a rig from a script

An install is approved by a person, on the exact bytes they read.

  1. Run pitafix core install ./my-core --dry-run --json and show the person the preview: its destination, what it replaces, and its SHA-256.
  2. After they approve, run pitafix core install ./my-core --yes --expect-sha256 "$reviewed_sha256" --json.
  3. Use the same data directory for both steps.

Wrong turn? Writing the result failed after an install? Check pitafix core grants --json before retrying.

Connect a coding agent over MCP

An agent you run yourself can read the open comments and the screens they sit on.

  1. Add pitafix mcp --project <repo> to your agent as an MCP server on stdio.
  2. The agent lists open comments, screens and journeys, and asks which screens ran some code.
  3. 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.

How it works

Which commands print JSON?

The ones a script acts on.

  • Pass --json to doctor, index, core test, core grants, rig check, rig show or rig test for a report on stdout.
  • Check the exit status too: rig check --json returns its findings on exit 1.
  • pitafix help rig test prints one command's 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 --keep builds 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.

On this page