upgrade

upgrade is a command for Claude Code from MadaraUchiha-314/the-loop. It costs 0 tokens per session (632 once invoked), scanned A, original, MIT.

A command for updating the installed the-loop command-line tool and its Claude Code plugin. A command-line tool is software operated from a terminal, while a plugin adds capabilities to another application.

In plain words
What is it for?
Use it to upgrade the CLI or Claude plugin for a user or project installation, choose a marketplace source, and run a dry run or receive results as a table or JSON.
Why use it?
It keeps both components current using the appropriate update method and reports what happened. It can also preview the changes before applying them.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the the-loop plugin — 2 skills, 37 commands, 2 hooks 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/madarauchiha-314/the-loop/upgrade
Clone the repo
git clone --depth 1 https://github.com/MadaraUchiha-314/the-loop

Made for: Claude Code.

Or install the-loop, the plugin that ships this one along with the rest of its 2 skills, 37 commands, 2 hooks.

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/madarauchiha-314/the-loop/upgrade.svg)](https://agentmods.dev/commands/madarauchiha-314/the-loop/upgrade)
Your own site
<a href="https://agentmods.dev/commands/madarauchiha-314/the-loop/upgrade"><img src="https://agentmods.dev/badge/commands/madarauchiha-314/the-loop/upgrade.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 632 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.1 $0.00000 $0.00632
Opus 5 $0.00000 $0.00316
Sonnet 5 $0.00000 $0.00126
Haiku 4.5 $0.00000 $0.00063

Measured 6d ago against content hash def7eb1c19b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

upgrade 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 6d 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.

docs/cli/commands/upgrade.md · 56 lines

How it starts

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

upgrade

Move an installed the-loop forward: the CLI and the Claude Code plugin.

the-loop upgrade [COMPONENT ...] [--scope user|project] [--project-dir .]
                 [--from owner/repo] [--dry-run] [--format table|json]
$ the-loop upgrade
the-loop upgrade · components: cli, claude · scope: user · marketplace: MadaraUchiha-314/the-loop
Component  Outcome  Step                              Command / file
---------  -------  --------------------------------  ------------------------------------------------
cli        applied  upgrade the the-loopy-one CLI     /usr/bin/uv tool upgrade the-loopy-one
claude     applied  refresh the the-loop marketplace  claude plugin marketplace update the-loop
claude     applied  update the-loop@the-loop          claude plugin update the-loop@the-loop --scope user

Same command as install — same components, flags, outcomes, scopes and exit codes — with the upgrade path of each installer instead of its install path. Read that page for the mechanics; this one covers only what differs.

What differs

  • The CLI is upgraded with the installer that owns it. uv tool upgrade, pipx upgrade, or pip install --upgrade, chosen by where the running package actually lives. That is the point of the command: issue-78 was a CLI that kept reporting an old version because nobody remembered which installer had put it there.
  • The marketplace is refreshed first. plugin marketplace update the-loop runs before plugin update the-loop@the-loop, so the update resolves against the current manifest rather than a cached one.
  • A source checkout is skipped, naming the checkout: a development install is updated with git pull (and uv sync), not by installing a release over it.

Claude Code applies a plugin update on the next session — restart the harness after an upgrade.

After upgrading the plugin

Read the full file on GitHub · 56 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. 6d ago First seen · 56 lines · 0 tokens per session scan A def7eb1c19b5

Subscribe to this mod's changes

upgrade is a command published in the GitHub repository MadaraUchiha-314/the-loop (4 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 632 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.