ship

ship is a command for coding agents from hamr0/agentic-toolkit. It costs 14 tokens per session (809 once invoked), scanned A, original, Apache-2.0.

A mechanical pre-deployment and pre-merge check that runs the project's available tests, build steps, and repository-state checks.

In plain words
What is it for?
Use it before merging or deploying to verify the checks that the project actually defines and report the exact commands and results.
Why use it?
It provides pass, fail, or not-applicable results based on actual command exit codes, so skipped checks are not mistaken for successful ones.

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/hamr0/agentic-toolkit/ship
Clone the repo
git clone --depth 1 https://github.com/hamr0/agentic-toolkit

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/hamr0/agentic-toolkit/ship.svg)](https://agentmods.dev/commands/hamr0/agentic-toolkit/ship)
Your own site
<a href="https://agentmods.dev/commands/hamr0/agentic-toolkit/ship"><img src="https://agentmods.dev/badge/commands/hamr0/agentic-toolkit/ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 809 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.00014 $0.00809
Opus 5 $0.00007 $0.00404
Sonnet 5 $0.00003 $0.00162
Haiku 4.5 $0.00001 $0.00081

Measured yesterday against content hash 77873a16d61d, 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 yesterday.

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.

ai/subagentic/ampcode/commands/ship.md · 60 lines

How it starts

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

Mechanical pre-deploy / pre-merge gate. Every item here is answerable by running a command and reading its exit code — no code judgment. Code judgment belongs to /branch-review (which runs /security in full as its second stage); this gate does not duplicate it.

Detect the stack first (look for package.json, pyproject.toml/setup.cfg, go.mod, Cargo.toml, Makefile) and run only the checks that actually exist — never assume a script (lint, build, migrate) is present.

Evidence rule

Report each item as pass / fail / N/A, and record the exact command and its exit code. A check you did not run is a fail, never a pass. N/A requires a stated reason ("no build script in package.json") — N/A must never stand in for "didn't get to it."

Capture the exit code of the command itself, never of a pipeline. Run the bare command, then read $? on the next line:

node "$f" > /tmp/out 2>&1; e=$?

$? after a pipe is the last element's status, so the common shape out=$(cmd 2>&1 | tail -1); echo "exit=$?" reports tail's success — 0 — for a suite that exited 2. Reproduced: a check printing "exit 2: prerequisites missing" was recorded as a pass by exactly that loop. Nor does ${PIPESTATUS[0]} rescue it inside a command substitution; it is empty by the time you read it. This is the rule the whole gate rests on, and the piped form is the natural way to write a multi-suite loop, so it fails silently and in the unsafe direction.

Checklist

  • Tests pass — run the project's real test command (npm test, pytest, go test ./..., cargo test, make test).
  • Lint / format clean — only if a linter or formatter is configured.
  • Build succeeds — only if the project has a build step.
  • No debug leftovers — stray console.log / print / debugger / dbg! / commented-out blocks / blocker TODOs in the changed files.
  • No hardcoded secrets — grep the diff for keys, tokens, credentials; confirm .env is gitignored and only a value-less .env.example is tracked. This is the one check /security also makes, kept deliberately: it is a grep with a binary answer, and a leaked key is the one failure worth catching twice.
  • Migrations ready — only if the project has a schema / migrations: they apply cleanly and are ordered.
  • Docs & config in sync.env.example, README, and any PRD / context doc updated for new config or new usage.
  • Clean tree, correct branch, in sync with origin — and never on main.

Read the full file on GitHub · 60 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. yesterday First seen · 60 lines · 14 tokens per session scan A 77873a16d61d

Subscribe to this mod's changes

ship is a command published in the GitHub repository hamr0/agentic-toolkit (22 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 809 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-09-03.