upgrade

upgrade is a command for Claude Code from datathings/marketplace. It costs 25 tokens per session (3,773 once invoked), scanned C, original, Apache-2.0.

A maintenance command that updates GreyCat libraries and frontend packages to their latest versions, then checks the backend and frontend code.

In plain words
What is it for?
Use it for monthly dependency maintenance, before major releases, or after a breaking change is announced.
Why use it?
It finds and fixes lint, build, type, and test problems caused by dependency upgrades, so the project can return to a passing state.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; positional $N argument.

Part of the greycat plugin — 1 skill, 8 commands shipped together

Good fit Use it for monthly dependency maintenance, before major releases, or after a breaking change is announced.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/datathings/marketplace/upgrade
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.

Clone the repo
git clone --depth 1 https://github.com/datathings/marketplace

Made for: Claude Code.

Or install greycat, the plugin that ships this one along with the rest of its 1 skill, 8 commands.

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/datathings/marketplace/upgrade/github.svg)](https://agentmods.dev/commands/datathings/marketplace/upgrade)
Your own site
<a href="https://agentmods.dev/commands/datathings/marketplace/upgrade"><img src="https://agentmods.dev/badge/commands/datathings/marketplace/upgrade/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upgrade

Your own site · 80×15
<a href="https://agentmods.dev/commands/datathings/marketplace/upgrade"><img src="https://agentmods.dev/badge/commands/datathings/marketplace/upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,773 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00025 $0.03773
Opus 5.5 $0.00010 $0.01509
Sonnet 5.5 $0.00005 $0.00755
Haiku 4.5 $0.00003 $0.00377

Measured 3mo ago against content hash f17905d65c6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Dev**: stop server, `rm -rf gcdata`, replay importers.

Makes network callslowCapability

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

curl -s "https://get.greycat.io/files/${path}/dev/latest" | cut -d'/' -f2
plugins/greycat/commands/upgrade.md · 275 lines

How it starts

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

Upgrade GreyCat + Frontend

Purpose: Upgrade both ends' dependencies to latest, then lint + test both ends and fix every failure the upgrade surfaces until green:

  1. Backend — every @library in project.gcl to latest from get.greycat.io.
  2. Frontend — every frontend/package.json dependency to its latest published version (exact-pinned).
  3. Verify + fix — backend greycat lint + greycat test; frontend pnpm lint + vp build (+ pnpm test if the project uses Vitest). Fix all lint/type/test failures the upgrade introduced in both back and front, re-running after each fix until everything passes.

Run When: Monthly maintenance, before major releases, on announced breaking changes.

Two tracks — parallelize under ultracode

The backend track (bump @library → greycat install → greycat fmt --mode=check + lint → greycat test → fix loop) and the frontend track (bump package.json → greycat codegen ts → pnpm lint → vp build/pnpm test → fix loop) are largely independent. Under ultracode/ultrathink, dispatch them as two parallel subagents (Task) and reconcile at the end; otherwise run sequentially.


Libraries

Core: std (required), explorer (dev UI). Other published: ai, algebra, kafka, mqtt, opcua, ftp, ssh, osm, useragent, finance, powerflow, powergrid (successor to powerflow), text_search, fcs, and Pro-licensed ifc, sql, openid.

s3 is not a library — S3 access is part of std (IO). Don't add @library("s3", ...). Resolve each library from its OWN endpoint — don't assume one shared version. The only name quirk: std's URL path is core.


Backend Step 1: Resolve latest per lib

URL path-name = @library name, except std → core:

latest_version() {           # $1 = @library name
  local path="$1"; [ "$1" = "std" ] && path="core"     # std's URL path is 'core'
  curl -s "https://get.greycat.io/files/${path}/dev/latest" | cut -d'/' -f2
}

Read the full file on GitHub · 275 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. 3mo ago First seen · 275 lines · 25 tokens per session scan C f17905d65c6f

Subscribe to this mod's changes

upgrade is a command published in the GitHub repository datathings/marketplace (12 stars, last pushed 3d ago), licensed Apache-2.0. It adds 25 tokens to every session and 3,773 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

upgrade compared with commands from other repositories

upgrade next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
upgradedatathings/marketplaceCommand123d agoApache-2.0C25Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code