shipgate

shipgate is a command for Claude Code from ThreeMoonsLab/agents-shipgate. It costs 16 tokens per session (1,157 once invoked), scanned A, original, Apache-2.0.

A command for running Agents Shipgate checks, verification, or host audits. Agents Shipgate is a merge gate for checking changes made to agent capabilities before they are accepted.

In plain words
What is it for?
Running `shipgate check`, the Agents Shipgate verifier, or `shipgate audit --host`, depending on the supplied arguments.
Why use it?
It provides a defined review step for finding boundary or verification problems in agent-related changes. This can reduce the chance of merging changes that fail the project’s checks.

Command for Claude Code

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/threemoonslab/agents-shipgate/shipgate
Clone the repo
git clone --depth 1 https://github.com/ThreeMoonsLab/agents-shipgate

Made for: Claude Code.

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 shipgate

README.md
[![agentmods](https://agentmods.dev/badge/commands/threemoonslab/agents-shipgate/shipgate.svg)](https://agentmods.dev/commands/threemoonslab/agents-shipgate/shipgate)
Your own site
<a href="https://agentmods.dev/commands/threemoonslab/agents-shipgate/shipgate"><img src="https://agentmods.dev/badge/commands/threemoonslab/agents-shipgate/shipgate.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 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,157 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.00016 $0.01157
Opus 5 $0.00008 $0.00579
Sonnet 5 $0.00003 $0.00231
Haiku 4.5 $0.00002 $0.00116

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

Security

Grade A, and why

shipgate 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.

.claude/commands/shipgate.md · 92 lines

How it starts

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

Arguments: $ARGUMENTS

Agents Shipgate is the deterministic merge gate for AI-generated agent capability changes.

If the arguments include audit, run the host-grant audit flow. If they include check, run the local boundary check. Otherwise run the verifier flow. The supporting adoption and scan commands remain available, but this slash command should lead with only the prominent flows: shipgate check, agents-shipgate verify, and shipgate audit --host.

The canonical, self-contained verifier instructions live in the bundled prompt files. For verifier runs, read prompts/verify-agent-diff.md. Try these paths in order; use the first that exists:

  1. ${CLAUDE_PLUGIN_ROOT}/skills/agents-shipgate/prompts/<recipe>.md — when this command runs from the installed agents-shipgate plugin, Claude Code expands ${CLAUDE_PLUGIN_ROOT} to the plugin directory and the version-matched recipes are bundled there. (When the command is a committed project file instead, the variable is not expanded and this path simply won't exist — continue down the list.)
  2. .claude/skills/agents-shipgate/prompts/<recipe>.md — bundled with the agents-shipgate skill if installed in this project.
  3. prompts/<recipe>.md — present when this repo is a clone of agents-shipgate itself.
  4. https://raw.githubusercontent.com/ThreeMoonsLab/agents-shipgate/main/prompts/<recipe>.md — last-resort unpinned fetch; prefer any bundled copy above.

Prominent commands:

AGENTS_SHIPGATE_AGENT_MODE=1 shipgate check \
  --agent claude-code --workspace . --format agent-boundary-json
AGENTS_SHIPGATE_AGENT_MODE=1 agents-shipgate verify \
  --workspace . --config shipgate.yaml \
  --base origin/main --head HEAD \
  --ci-mode advisory --format json
AGENTS_SHIPGATE_AGENT_MODE=1 shipgate audit --host \
  --json --out agents-shipgate-reports/host-grants.json

For local uncommitted work, omit --base/--head so uncommitted edits are scanned. For committed PR/CI refs, make the base ref available first because verify never fetches.

Required behavior (do not skip):

  1. Set AGENTS_SHIPGATE_AGENT_MODE=1 for every CLI call so errors emit a next_action JSON line on stderr.
  2. Run agents-shipgate contract --json when available and use it to verify the installed CLI's schema versions and gating signal.
  3. For verifier runs, read agents-shipgate-reports/current-control.json first, then validate the agents-shipgate-reports/verification-receipt.json it binds, then parse agents-shipgate-reports/agent-handoff.json, then verifier.json, verify-run.json, and report.json.release_decision.decision as the release gate.
  4. For check runs, parse stdout as shipgate.agent_boundary_result/v1 and switch on control.state; follow control.next_action, control.allowed_next_commands, and control.human_review. Treat decision as diagnostic context only.
  5. For host audits, parse agents-shipgate-reports/host-grants.json when --out is used, or stdout when running JSON-only.
  6. Do not bypass the verifier by suppressing findings, lowering severity, expanding baselines or waivers, removing Shipgate CI, or weakening agent instructions. Verify-mode SHIP-VERIFY-* checks route those trust-root edits to human review.
  7. Add agents-shipgate-reports/ to .gitignore if it is not already.

Report back: release_decision.decision and reason, merge_verdict, can_merge_without_human, blocker / review-item counts, top 3 active findings by severity, verifier_summary trust-root flags when present, capability change highlights, and one suggested next step.

Ongoing PRs

For an ongoing PR that changes agent tools, MCP exports, OpenAPI specs, prompts, permissions, policies, CI gates, or shipgate.yaml, run the verifier:

agents-shipgate verify --base origin/main --head HEAD --json

Read agents-shipgate-reports/current-control.json first, then validate the agents-shipgate-reports/verification-receipt.json it binds, then read agents-shipgate-reports/agent-handoff.json and lead with gate.merge_verdict (a deterministic projection of release_decision.decision, which remains the gate in report.json), then the authoritative substrate agents-shipgate-reports/verifier.json and supporting/provisional capability_review.top_changes[]. Do not claim completion unless control.state is complete; conversation-level acknowledgement cannot clear a human-review route. Never weaken shipgate.yaml, Shipgate CI, AGENTS.md, policies, baselines, or waivers to make Shipgate pass.

Read the full file on GitHub · 92 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 · 92 lines · 16 tokens per session scan A 107e60198df5

Subscribe to this mod's changes

shipgate is a command published in the GitHub repository ThreeMoonsLab/agents-shipgate (87 stars, last pushed 4d ago), licensed Apache-2.0. It adds 16 tokens to every session and 1,157 once invoked, about $0.0001 per session on Opus 5. 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-30.