Skip to content

Run agents in parallel

This guide runs two agents on separate parts of one feature. Each works in its own checkout, you watch both from the Agents panel, and you review and merge them one at a time.

  1. Pick an approval mode. For parallel work, Auto inside the workspace ([approval] mode = "auto") keeps both agents moving while still stopping anything that reaches outside the project. Add the paths you always want to see:

    [approval]
    mode = "auto"
    always_ask = [".env", "migrations/**"]
    worktree_auto_approve = true
  2. Open a worktree per job. In the Worktrees panel, open api-limits and api-limits-tests as worktrees, each with an agent. Or from your current pane:

    Terminal window
    cortland-ctl pane split "$CORTLAND_PANE_ID" --worktree api-limits --no-focus --exec claude
    cortland-ctl pane split "$CORTLAND_PANE_ID" --worktree api-limits-tests --no-focus --exec codex
  3. Give each agent its brief in its own pane, then go do something else.

  4. Answer when asked. The Agents panel shows which agent is waiting. ⇧⌘JCtrl+Shift+J jumps to it.

  5. Review each turn. When a turn ends, the changes pane opens beside that agent. Walk it with j/k, mark files viewed with v, and press c to leave comments. Send them back as one prompt, or Rewind a turn that went the wrong way.

  6. Land it. Open Changes vs main for each branch, then merge from the Worktrees panel and remove the worktree. Your main checkout never moved.