Office hours: Build your self-driving GTM engine·Oct 29, 9:00am PT, onlineRegister→
Cargo
  • PrimitivesData ModelsYour companies, contacts and deals, merged from every sourceContextWhat your team knows, as files every agent readsTerritoriesWho sells where, defined onceMailboxesMailboxes in your reps' names, warmed up and kept under limitsToolsThe actions your agents, plays and reps callAgentsAI that researches, decides and writes, reading your contextPlaysWorkflows that run on a trigger or a schedule, with retriesAppsInternal apps for your reps, hosted on Cargo
    Add-onsChrome ExtensionSell faster, right in your browserButtonTrigger AI agents inside your CRMFormTurn any tool into an embeddable formSlackTag Cargo in Slack. It does the GTM workGitHubPlan on every pull request, deploy on merge
    MoreProjectsDefine your entire GTM in codeCLIUse Cargo from your terminalMCPUse Cargo from Claude and ChatGPTDeveloper resourcesCargo API docs, OpenAPI spec, auth docs, webhooks, MCP serverAPI ReferenceExplore the Cargo APIDocumentationLearn how to use CargoIntegrationsConnected to your entire GTM stack
  • VeriffHow Veriff replaced MuleSoft with Cargo under NetSuite, Stripe and SalesforceAugmentHow Augment Code routes developer sign-ups to reps in under an hourWeights & BiasesHow Weights & Biases ships a new purchase signal in 2 days on CargoSee all
  • Pricing
  • Cookbooks
  • Blog
Sign in
Blog

Ask @cargo on a Pull Request in Your Go-to-Market Repository

16 Oct5min read
AurelienAurelien

To have @cargo answer on any pull request in your go-to-market repository, install the Cargo GitHub app on the repository, deploy a Cargo coding agent bound to it, and turn on “All pull requests” on the agent’s GitHub trigger. A comment that mentions @cargo then wakes the agent, which works on that pull request’s branch and pushes its change there as a new commit instead of opening a second pull request.

Without the setting, an agent only answers on the pull requests it opened itself. The setting shipped on 2026-09-29.

What you need #

  • The Cargo GitHub app on the repository. The agent acts as the app, only on repositories an admin installed it on: install it here. Connecting GitHub in Cargo does not install the app; the two are separate.
  • A GitHub connector in the workspace, which the agent’s trigger uses: cargo-ai project add connector/github.
  • An LLM connector for the coding harness, for example Anthropic.
  • A Cargo project in the repository, so the agent is declared and deployed from the same checkout. cargo-ai project init <dir> creates one.

Declare the agent #

typescript
import { agentConnectorTrigger, defineAgent } from "@cargo-ai/cdk";

import { anthropic } from "../connectors/anthropic";
import { github } from "../connectors/github";

export const reviewer = defineAgent("reviewer", {
  harness: "claudeCode",
  connector: anthropic,
  languageModel: "claude-sonnet-5",
  systemPrompt:
    "Work on this go-to-market repository when someone asks on a pull request.",
  // repository omitted: plan and deploy bind this checkout's GitHub origin
  triggers: [
    agentConnectorTrigger({
      connector: github,
      config: { allPullRequests: true },
    }),
  ],
});

harness can also be codex or openCode. Leaving out repository binds the agent to the checkout’s origin and default branch when you plan and deploy, and that repository is the boundary for every mention the agent answers.

shellscript
cargo-ai project plan     # prints the binding, e.g. agent:reviewer bound to acme/gtm#main
cargo-ai project deploy

Then, on any pull request in that repository, comment:

text
@cargo the scoring play still reads the old employee-count column. Fix it on this branch.

The app answers to @cargo, @cargo-ai and its own handle, @cargo-hq. The agent clones the pull request’s head branch, does the work, pushes to that branch, and answers in the thread.

Who answers which mention #

SituationWho answers
Mention on a pull request an agent openedthat agent alone
Mention on any other pull request in the repositoryevery agent bound to it with “All pull requests” on
Mention on a pull request whose opening agent was deletedfalls through to the repository’s agents
Repository named by two Cargo workspacesnobody
Pull request from a forknobody
Checks fail or a review landsonly on pull requests the agent opened, and only if enabled

The chat that opened a pull request keeps it, so nothing is answered twice. A fork’s pull request is refused because its branch lives on the fork, which the app can neither clone nor push to. A repository named in two workspaces is refused because neither has proved it owns the repository.

The other trigger settings #

Three more settings sit on the same trigger. They concern only the pull requests the agent opened, because acting on a stranger’s pull request when nobody asked is not a request:

SettingConfig fieldWhat it does
Fix failing checksfixFailedChecksWakes the agent when CI fails on its pull request, so it can push a fix
Attempts per pull requestmaxCheckFixAttemptsHow many fixes in a row before it waits to be asked: 1 to 10, default 3, reset by a mention or a review
Address reviewsaddressReviewsWakes the agent when someone requests changes or comments on a review

All three are off by default, as is allPullRequests.

Why a go-to-market repository #

When plays, models, agents and company context live in a repository, a pull request is where a go-to-market change is reviewed, and the person reviewing it is the one who notices what is wrong. Asking on the pull request puts the fix in the same diff instead of a separate ticket. The setup for driving Cargo from a coding agent on your own machine is in run go-to-market from Claude Code, and the operating model is in run go-to-market with coding agents.

Frequently asked questions #

Check four things. The Cargo GitHub app must be installed on the repository. A deployed Cargo coding agent must be bound to that repository. Its GitHub trigger must have “All pull requests” on, unless the agent opened the pull request itself. And the pull request must not come from a fork, and the repository must not be named by a second Cargo workspace: both are refused.

No. It clones the branch of the pull request it was mentioned on and pushes its change there as a new commit, including on a pull request someone else opened.

No. Fixing failing checks and addressing reviews only apply to pull requests the agent opened, and only when those settings are on. On any other pull request it acts only when someone mentions it.

Yes, on a pull request no agent opened: every agent bound to the repository with “All pull requests” on answers. On a pull request an agent opened, that agent answers alone.

~/run-it-on-cargo/

Build this workflow instead of reading about it.

Cargo is the GTM infrastructure your coding agent builds on: enrichment, scoring, routing and outreach, defined in code and run in production.

Start building
AurelienAurelienOct 16, 2026
On this page
  • What you need
  • Declare the agent
  • Who answers which mention
  • The other trigger settings
  • Why a go-to-market repository
  • Frequently asked questions

Stay Informed with our
weekly Newsletter

Related articlesSee all articles
GTM Engineering
CI/CD for Go-to-Market: What It Means and How to Set It Up

CI/CD for GTM means every change to enrichment, scoring, routing and sequences ships as a pull request that is planned, checked, approved, deployed on merge, logged and reversible. What each software CI/CD step becomes for go-to-market, and how to set it up on Cargo.

AurelienAurelien·Nov 3, 2026
GTM Engineering
Require Approval Before a High-Impact Go-to-Market Change Goes Live

How Cargo holds a go-to-market pull request that would send or spend more than set limits until a reviewer adds the cargo:approve-impact label: the thresholds, what counts as high impact, who should approve, and what the gate does not catch.

AurelienAurelien·Nov 3, 2026
GTM Engineering
Test a Go-to-Market Change Before It Reaches Production

How to test a change to enrichment, scoring, routing or outreach before it runs on every lead: check the project offline, dry run an action, read the plan on the pull request, ship the play switched off and pilot it on 50 records, evaluate agents, and use a second workspace as staging.

AurelienAurelien·Nov 3, 2026

Build the self-driving GTM engine

Your coding agents build it on Cargo.Or our team builds, operates and improves it with you.

Start building
Cargo
Backed byY CombinatorSOC 2 Type IICertified
LinkedinX

Product

Data ModelsContextTerritoriesMailboxesToolsAI AgentsPlaysAppsIntegrationsPricing

Add-ons

Chrome extensionButtonFormSlackGitHub

Build

DocsDeveloper resourcesCargo API docsCargo OpenAPI specCargo auth docsCargo webhooksCargo MCP serverProjectsClaude CodeCodexCursorAll coding agents

Resources

ReportsBlogCustomer storiesCookbooksEnrichmentRoutingSignalsScoringCRM hygieneAd audiencesGTM skillsGTM EngineeringGlossaryCompareCargo x ClayCargo x WorkatoCargo x n8nCargo x DeeplineCargo x DefaultCargo x LeanDataCargo x UnifyCargo x ValleyCargo x Gojiberry

Company

ManifestoCommunityEventsJobsPartners DirectoryPartner Program

Legal

SecurityTerms of servicePrivacy PolicyRefundsDPASupport
© 2026 Cargo
 ////////    ///////    ////////     ////////    ///////
///         ///   ///   ///   ///   ///         ///   ///
///         ///   ///   ///   ///   ///         ///   ///
///         /////////   ////////    ///  ////   ///   ///
///         ///   ///   /// ///     ///   ///   ///   ///
///         ///   ///   ///  ///    ///   ///   ///   ///
 ////////   ///   ///   ///   ///    ///////     ///////

$ npm install -g @cargo-ai/cli