ship

ship is a command for coding agents from jpeseWang/solo-dev-workflow. It costs 0 tokens per session (1,267 once invoked), scanned A, original, MIT.

A delivery command that pushes the current branch and opens a pull request on GitHub. A pull request is a proposed change that others or automated checks can review before merging.

In plain words
What is it for?
Use it to open a normal or draft pull request, choose a target branch, and optionally merge the change after checks pass.
Why use it?
It creates a reviewable diff, runs the project's checks through GitHub, and keeps a lasting record of the change.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jpesewang/solo-dev-workflow/ship
Clone the repo
git clone --depth 1 https://github.com/jpeseWang/solo-dev-workflow

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ship

README.md
[![agentmods](https://agentmods.dev/badge/commands/jpesewang/solo-dev-workflow/ship.svg)](https://agentmods.dev/commands/jpesewang/solo-dev-workflow/ship)
Your own site
<a href="https://agentmods.dev/commands/jpesewang/solo-dev-workflow/ship"><img src="https://agentmods.dev/badge/commands/jpesewang/solo-dev-workflow/ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01267
Opus 5 $0.00000 $0.00633
Sonnet 5 $0.00000 $0.00253
Haiku 4.5 $0.00000 $0.00127

Measured 3d ago against content hash e6a703913220, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ship scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

variants/solo/commands/ship.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ship

Push the branch and open a GitHub PR via gh, with title and body built from the commits.

Even solo, a PR is worth it: it runs CI, gives a clean diff to skim before merging, and leaves a durable record. This uses the gh CLI.

Input (optional flags):

  • --draft → open the PR as a draft
  • --base <branch> → target branch (default: BASE_BRANCH / main)
  • --merge → after the PR is created and checks pass, merge it (squash)

Step 0 — Pre-flight

command -v gh >/dev/null || { echo "[ERROR] gh CLI not installed: https://cli.github.com"; exit 1; }
gh auth status >/dev/null 2>&1 || { echo "[ERROR] Run: gh auth login"; exit 1; }

BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null || true)   # empty when detached
BASE="${BASE_BRANCH:-main}"
[ -n "$BRANCH" ] || { echo "[ERROR] Detached HEAD — check out a branch before shipping."; exit 1; }
case "$BRANCH" in main|master|"$BASE") echo "[ERROR] On base branch '$BRANCH' — nothing to ship. Create a feature branch."; exit 1;; esac

# Anything uncommitted? Ship works on commits, not the working tree.
[ -n "$(git status --porcelain)" ] && echo "[WARN] You have uncommitted changes. Run /commit first, or they won't be in this PR."

git fetch origin --quiet 2>/dev/null || true
AHEAD=$(git rev-list --count "origin/$BASE..HEAD" 2>/dev/null || echo "?")
[ "$AHEAD" = "0" ] && { echo "[ERROR] No commits ahead of $BASE. Nothing to ship."; exit 1; }

Step 1 — Push

git push -u origin "$BRANCH"

If the push is rejected (remote has newer commits): offer git pull --rebase origin "$BRANCH" then push again. Never plain --force; if a rebase genuinely requires it, use --force-with-lease and confirm with the developer first.

Step 2 — Reuse an existing PR if there is one

EXISTING=$(gh pr view "$BRANCH" --json url -q .url 2>/dev/null)
if [ -n "$EXISTING" ]; then
  echo "[SHIP] PR already exists: $EXISTING (the push updated it)."
  # Skip creation; go to Step 5 (optional merge).
fi

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 130 lines · 0 tokens per session scan A e6a703913220

Subscribe to this mod's changes

ship is a command published in the GitHub repository jpeseWang/solo-dev-workflow (2 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,267 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.