Skip to Content

Agents

Start a coding agent on a comment and follow it on its card, or write the comment as a task file for an agent you run yourself.

4 tasks, 4 questions answered.

The first task file asks
The first task file asksPitaFix writes into the project's own folder, so the first write in a project asks once.The first task file asks
Task written
Task writtenThe thread names the file, and Show in Finder shows it.Task written

Give a comment to an agent

PitaFix starts the agent itself and the card follows it.

  1. Press Give To on a card, under a thread, or in the bar of the cards you chose.
  2. Pick the agent's name. The first time an agent starts in a project, PitaFix shows the exact command and asks once.
  3. Follow it on the card; Show Session opens the whole session beside the map.
  4. When the card is in Completed, read the agent's last words on the thread and Resolve it.

Wrong turn? Stop puts the card back in Open. PitaFix never commits an agent's work or deletes its worktree.

Answer an agent that asks

An agent stops when it needs your permission or your answer.

  1. A card whose agent asks turns red. Open its session.
  2. A permission question shows the agent's own answers as buttons; press one.
  3. When it asks you something in the thread, reply there.

Wrong turn? The agent stopped instead? Press Retry on the card, or give the card to another agent.

Add an agent

Give To lists the agents in Zed's settings and those PitaFix installed itself, so Zed isn't needed.

  1. Choose Add Agent…, the last item of Give To and a button in Settings › Agents.
  2. Pick an agent from the ACP registry.
  3. Read what installing does: the command it will run, or the address it downloads, its checksum and the folder it is kept in.
  4. Press Install to agree.

Wrong turn? Settings › Agents says why an agent can't start, and gives the ones PitaFix installed a Remove button.

Write a task file

For an agent you run yourself, in your own terminal.

  1. Press Write Task under a thread. The first write in a project asks once.
  2. For several, choose the cards and right-click one, or choose Map › Write Tasks for Open Comments (⇧⌘T).
  3. Hand the file in agents/tasks to your agent. Show in Finder shows it.
  4. When the agent sets status: done and adds a ## Result, the result shows on the comment.

Wrong turn? Reopen on a comment whose task is done keeps that file as history and offers Write Task again.

How it works

Where does an agent work?

In a worktree of its own on a new branch, unless you say otherwise.

  • Work In in Settings chooses between A Worktree and The Project Folder.
  • PitaFix never deletes either, never commits and never makes a branch in your own checkout.
  • After the task, the session offers to open the agent's folder in Zed.

What runs after each task?

The passes set under After Each Task, by default one that cleans up.

  • A pass is sent to the same session when the task's turn ends.
  • The box under Cleanup holds the pass's words, and Reset to Default restores them.

What is in a task file?

The comment, its screen and the code it links to.

  • The file is Markdown in agents/tasks of the project's own folder, with the screen's picture, pin and areas drawn, in agents/tasks/images.
  • Photos on the comment go with it, and so does the comment's type.
  • Git shows the files as untracked. PitaFix doesn't touch .gitignore.
  • A task file starts nothing: PitaFix starts an agent only when you give it a card.

How does PitaFix check a downloaded agent?

Before every start.

  • PitaFix checks a downloaded agent's program before every start and refuses one that changed.
  • When the registry has a newer version, Settings › Agents offers an Update button.

On this page