upgrade

upgrade is a command for Claude Code from Generous-Corp/pulp. It costs 58 tokens per session (1,819 once invoked), scanned C, original, MIT.

An interactive upgrade assistant for the Pulp command-line tool, which is a program developers run from a terminal.

In plain words
What is it for?
It helps determine whether the Pulp CLI, its plugin, and the current project are compatible, then runs the documented upgrade process.
Why use it?
It checks installed and project versions, shows relevant migration notes, and asks for consent before upgrading instead of relying on fixed file paths.

Command for Claude Code

Part of the pulp plugin — 63 skills, 30 commands, 3 hooks, 1 MCP server shipped together

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/generous-corp/pulp/upgrade
Clone the repo
git clone --depth 1 https://github.com/Generous-Corp/pulp

Made for: Claude Code.

Or install pulp, the plugin that ships this one along with the rest of its 63 skills, 30 commands, 3 hooks, 1 MCP server.

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 upgrade

README.md
[![agentmods](https://agentmods.dev/badge/commands/generous-corp/pulp/upgrade.svg)](https://agentmods.dev/commands/generous-corp/pulp/upgrade)
Your own site
<a href="https://agentmods.dev/commands/generous-corp/pulp/upgrade"><img src="https://agentmods.dev/badge/commands/generous-corp/pulp/upgrade.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 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,819 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00058 $0.01819
Opus 5 $0.00029 $0.00910
Sonnet 5 $0.00012 $0.00364
Haiku 4.5 $0.00006 $0.00182

Measured today against content hash 59ed4dea3b62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

upgrade scanned grade C with 2 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

echo "Install with: curl -fsSL https://www.generouscorp.com/pulp/install.sh | sh"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

echo "Install with: curl -fsSL https://www.generouscorp.com/pulp/install.sh | sh"
.claude/commands/upgrade.md · 197 lines

How it starts

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

Interactive upgrade assistant for the Pulp CLI. Reuses the upgrade skill (.agents/skills/upgrade/SKILL.md) for authoritative guidance; this file is the Claude Code surface that wires the pieces together.

1. Confirm pulp is on PATH

command -v pulp >/dev/null 2>&1 || {
  echo "pulp CLI not found on PATH."
  echo "Install with: curl -fsSL https://www.generouscorp.com/pulp/install.sh | sh"
  exit 1
}

If pulp is missing, stop here — the skill cannot operate without the installed CLI. The design decision locked in on 2026-04-21 explicitly rules out hardcoded plugin paths.

2. Pull version diagnostics (structured)

pulp doctor --versions --json > /tmp/pulp-doctor-versions.json 2>/dev/null

Parse the JSON to extract:

  • cli.raw — installed CLI semver (e.g. "0.30.0")
  • plugin.raw — Claude plugin semver from plugin_json_path
  • plugin_json_path — absolute path to the plugin's plugin.json
  • project_sdk.raw — active project's SDK (if inside a Pulp project)
  • project_cli_min.raw — the active project's cli_min_version pin (if any)
  • findings[] — advisory skew messages

Derive the latest available CLI from the cache without hitting the network twice, and CAPTURE the value into a shell variable so step 3 can reuse it:

LATEST="$(pulp upgrade --check-only 2>/dev/null | awk -F'v' '/^Latest:/ {print $2}' | tr -d '[:space:]')"

If the cache is empty, --check-only will query GitHub. Note: --check-only does NOT persist its fetched result into the update cache (see tools/cli/cmd_upgrade.cpp), so you MUST capture $LATEST from its stdout and forward it to step 3 explicitly. Relying on the --notes default cache lookup would resolve to == from on first-run / empty-cache machines and silently hide real migration hops.

3. Pull applicable migration notes

Pass --to "$LATEST" (captured in step 2) explicitly so the notes surface sees the real hop even when the background cache refresh has not yet refreshed:

Read the full file on GitHub · 197 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. today First seen · 197 lines · 58 tokens per session scan C 59ed4dea3b62

Subscribe to this mod's changes

upgrade is a command published in the GitHub repository Generous-Corp/pulp (16 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 1,819 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.