/git-agent:merge-bg [optional PR url or number]from git-agent
Fire off the agent-merge subagent in the background to run the PR readiness gate and merge if green, then return control immediately
Ships in git-agent. Installing the plugin adds it to Claude Code.
Dispatch the agent-merge subagent in the background. The user wants the merge
check to run while they keep working — do not wait for it to finish.
Invoke the Agent tool with:
subagent_type: "git-agent:agent-merge"run_in_background: truedescription: "Background merge"prompt: A brief self-contained instruction telling the agent to run the
merge readiness gate and squash-merge only if everything is green,
reporting otherwise. If $ARGUMENTS is non-empty it is the PR to act
on, not a summary hint — pass it through as such (e.g. "Check PR
") and say it takes precedence over the checked-out branch.
Otherwise tell it to resolve the PR from the current branch. The agent already has its full workflow
in its frontmatter — keep the prompt brief.As soon as the agent is dispatched, return control with a single-line acknowledgement like "Merge check dispatched in background — I'll notify you with the result." Do not poll, sleep, or check progress. The user is notified automatically when the agent completes.
Do not run any git or gh commands yourself. Do not do anything else.
Running this command is the approval for one squash merge of a fully green
PR — it replaces the merge skill's AskUserQuestion prompt, which a
background agent cannot show. Anything else — a required check pending or
failing, conflicts, CHANGES_REQUESTED, a mergeStateStatus outside
CLEAN / UNSTABLE / HAS_HOOKS — comes back as a
report, not a merge. A non-required check that is pending or failing is
reported alongside the merge, not treated as a block. The agent never passes
--delete-branch.
If you want to review the status yourself before merging, type merge? or run
the merge skill in the foreground instead.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
/commit-bgBackground CommitFire off the agent-commit subagent in the background to stage and commit the working tree, then return control immediately/pr-bgBackground PRFire off the agent-pr subagent in the background to push the current branch and open a GitHub PR, then return control immediately/ship-bgBackground ShipFire off the agent-ship subagent in the background to commit, push, and open a PR/MR end-to-end, then return control immediately/ship-ci-bgBackground CI WatchFire off the agent-ship-ci subagent in the background to watch an existing PR's checks, apply deterministic autofixes, and report — then return control immediately2 plugins ship this exact command · first indexed Aug 13, 2026
npx claudepluginhub shawn-sandy/agentics --plugin git-agent