Skip to content
PortBay

Amp's non-interactive mode, driven by a board

`amp -x` executes one prompt and exits, which is exactly the shape a card wants. PortBay supplies the prompt, the worktree and a project that is already serving at a real URL.

The short answerVerified against the product, 2026-09-11

How do I run Sourcegraph Amp on a queue of tasks?

Amp has a non-interactive mode — `amp -x "<prompt>"` runs a single prompt and exits — and that is the mode PortBay dispatches. Assign Amp to a card, move the card to To Do, and PortBay spawns that command with the working directory set to your project and the card's brief as the prompt, passed as an argument rather than on stdin so the same invocation works whether the run is headless or hosted in a terminal window. Amp has a tool-calling loop and edits files, so the limiting factor is usually what it can reach: PortBay's answer is a project that is already serving on its own .test hostname behind a trusted certificate, with a per-project database attached and its connection variables injected, and outgoing mail captured locally. Each card takes its own git worktree, a concurrency cap decides how many runs go at once, and a card that fails three times stops re-dispatching. Amp authenticates on your own Sourcegraph account; PortBay stores no key.

In the app

One card, one amp -x run

acme-shop · Board6 cards3 agents online
Pending2
infra
Rate-limit the API
P1
Dark mode polish
P2
Todo2
auth
Add OAuth login
P0Claude Code0/3oauth-login
Auto-dispatching
implement OAuth on app.test
db
Migrate to Postgres
P1
In Progress1
Fix flaky checkout test
P0
Done2
Set up Mailpit inbox
P2
Seed demo data
P2
1/5 · AssignA card lands in Todo and @claude is mentioned

A single non-interactive execution per card. The comment, the diff and the move to Done all land back on the board.

Walkthrough

Your first Amp card

Five steps from a clean Mac to an Amp run you can review at a real URL. Every command runs as written.

  1. Install PortBay
  2. Add your project and press play
  3. Check amp resolves on your PATH
  4. Write a card and assign Amp
  5. Move the card to To Do and open the result

Install PortBay

Homebrew installs the app and the bundled portbay CLI. Prefer a direct download? Grab the DMG from GitHub Releases and drag PortBay.app into Applications.

brew tap portbay-app/portbay && brew install --cask portbay

Add your project and press play

PortBay reads the stack from the folder, fills in the runtime and port, issues the certificate, resolves the hostname and attaches a database. The run inherits all of it.

portbay add ~/code/myapp

Check amp resolves on your PATH

PortBay looks for the amp binary and offers it in the picker when it finds one. Authentication stays with your Sourcegraph account, exactly as it is when you run amp yourself.

which amp

Write a card and assign Amp

One card, one execution — so write the card as one bounded task with a checkable outcome rather than a project plan. Assign Amp on the card, or set it as the board default.

.portbay/tasks/cache-product-averages.md

Move the card to To Do and open the result

The run starts in the card's own worktree and comments what it changed. Open the project URL and use the feature. Require review holds finished cards for your approval before they count as done.

https://myapp.test
Without PortBay

amp -x, run by hand

The command is one line. Everything that makes the result trustworthy is the part that is missing.

The board keeps all three: a branch per card, a URL to check against, and the brief in your repo.

Questions

Asked before downloading

How does PortBay launch Amp?

As `amp -x "<the card>"` with the working directory set to the project — Amp's own non-interactive mode, one prompt per run. The prompt is passed as an argument rather than on stdin, so the same command works headless or hosted in a terminal window.

Can I pin a model on an Amp card?

Not from PortBay. Amp is one of six agents with no wired model flag, so no model selector is offered and nothing is appended to the command.

Can Amp claim cards itself over MCP?

No. PortBay wires MCP both ways for Claude Code, Codex, Cursor and Gemini only. Amp is dispatched to — the card moves because you move it, or because auto-dispatch fires when it lands in To Do.

Can Amp share a board with other agents?

Yes. Assign an agent per card or set a board default, and a concurrency cap decides how many run together. Every card gets its own git worktree, so an Amp run and a Claude Code run on the same repo never write the same file.

PortBay mascot — a friendly blue tugboat

Give your projects and your agents a real local home.

Download for macOS

Free & open source · macOS 11+ on Apple Silicon · Pro from $10/mo