Skip to Content

Your first capture

Set up capture with a coding agent, run your first capture, inspect code behind a screen, and delegate your first comment.

Set up capture with an agent

If your repository has no .pitafix/capture.json yet, PitaFix guides a coding agent through exploring your running app and writing a repeatable script in your project's language.

  1. Open the repository (⌘O) and choose Capture › Set Up Capture… (or click Set Up Capture… on the empty map). Review what PitaFix detected read-only (stack, tests, data sources, available agents), then click Prepare Brief.
  2. In the Brief step, fill in what code does not say under Notes for the agent: how to boot the app, test login, and priority journeys.
  3. Click Give To… to run an ACP agent (default worktree branch pitafix/set-up-capture), or click Copy / Write Task for an external agent. Screens stream onto the map as the agent explores.
  4. Once .pitafix/capture.json is written, PitaFix runs Test Capture automatically (looping failures back up to three times) and shows View Map when it passes.

Wrong turn? No coding agent configured yet? Click Add Agent… on the setup page before starting.

Run the full loop once

  1. PitaFix

    Open the project

    Select Open Project… (⌘O) and pick your repository. A project with no captures opens on its Plan.

    Click Capture beside the project name, then Capture… in its panel, or press ⌘R.

    A project before its first capture
    A project before its first captureA project before its first capture
  2. PitaFix

    Review what runs, then trust it

    The sheet shows the commit and asks whether to run the capture command on this machine. Open What runs to inspect the exact command and folders.

    Builds run in a cached copy so your checkout stays untouched. Click Trust and Capture (details in Capture & maintain).

    What a capture runs
    What a capture runsWhat a capture runs
  3. PitaFix

    Explore the map

    The sidebar lists journeys as the capture finds them. Click Close Pane on the Plan header to see the map underneath.

    Click any journey in the sidebar to fly there. Press ← and → to step along it, and ⇧1 to fit the whole map.

    A captured journey on the map
    A captured journey on the mapA captured journey on the map
  4. PitaFix

    Inspect the code behind a screen

    Select a screen and click Details on its title line (or press ↩). Click Open in Zed or Open in VS Code to view executed files with line highlights.

    Hold ⌥ and click any spot on a screen to jump straight to the source line that drew it (see Code & editors).

  5. PitaFix

    Comment on what needs changing

    Press C and click a spot (or drag an area) on a screen. Write your comment in live-shaped Markdown, optionally mark Bug, Task, or Feature, and press ⌘↩.

    PitaFix automatically links the comment to the code under the pin and the handlers of the step that led there.

  6. Your agent

    Delegate it to your agent

    Click Give To to start a coding agent on the task in an isolated git worktree, or click Write Task to export a Markdown file into agents/tasks (full guide in Comments, Tasks & agents).

    The agent's result returns to the thread, and you decide when to Resolve.

On this page