q-upgrade

q-upgrade is a command for Claude Code from contactTAM/q-command-system. It costs 8 tokens per session (1,929 once invoked), scanned E, original, MIT.

A command for checking and upgrading the Q-Command System installation to its latest version. It checks the current version, asks for permission, runs the upgrade script, and verifies the result.

In plain words
What is it for?
Use it to inspect the installed Q-Command System version, review local release information, request approval for an upgrade, and confirm that the upgrade succeeded.
Why use it?
It provides a controlled way to update the local command system without guessing which version is installed. The pre-flight checks make the upgrade steps explicit.

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/contacttam/q-command-system/q-upgrade
Clone the repo
git clone --depth 1 https://github.com/contactTAM/q-command-system

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 q-upgrade

README.md
[![agentmods](https://agentmods.dev/badge/commands/contacttam/q-command-system/q-upgrade.svg)](https://agentmods.dev/commands/contacttam/q-command-system/q-upgrade)
Your own site
<a href="https://agentmods.dev/commands/contacttam/q-command-system/q-upgrade"><img src="https://agentmods.dev/badge/commands/contacttam/q-command-system/q-upgrade.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 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,929 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 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.00008 $0.01929
Opus 5 $0.00004 $0.00964
Sonnet 5 $0.00002 $0.00386
Haiku 4.5 $0.00001 $0.00193

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

Security

Grade E, and why

q-upgrade scanned grade E with 3 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 5d 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.

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.

curl -sL https://raw.githubusercontent.com/contactTAM/q-command-system/main/scripts/upgrade.sh | bash

Recursive force deletehighDestructive command

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

rm -rf .claude/commands

Makes network callslowCapability

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

2. Downloads [N] command files via curl
templates/.claude/commands/q-upgrade.md · 356 lines

How it starts

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

Upgrade Q-Command System

Purpose: Efficiently check and upgrade to the latest Q-Command System version.

Efficiency: This command uses a script-based approach that reduces token usage by ~85% compared to individual file fetches.


MANDATORY PRE-FLIGHT CHECKLIST

STOP. Before proceeding, confirm:

  • 1. I will check versions BEFORE making changes
  • 2. I will get explicit user permission before upgrading
  • 3. I will use the upgrade SCRIPT (not individual WebFetch calls)
  • 4. I will verify the upgrade completed successfully

Step 1: Check Local Version

1.1 Read Local Version Info

cat .q-system/version.yaml 2>/dev/null || cat .q-system/version 2>/dev/null || echo "No version file found"
  • Command executed
  • Local version identified: ____________________

Parse the version:

  • If version.yaml: Look for q_system.version
  • If version file: Single line with version number
  • If neither: Assume pre-2.1 installation

1.2 Check for releases.yaml (if exists locally)

cat .q-system/releases.yaml 2>/dev/null | head -5 || echo "No local releases.yaml"

VERIFICATION GATE 1:

Local installation:
- Version: [version or "unknown"]
- Version file type: [version.yaml / version / none]

Step 2: Fetch Remote Version Info

2.1 Fetch releases.yaml (Small File - Efficient)

Use WebFetch to get:

https://raw.githubusercontent.com/contactTAM/q-command-system/main/templates/releases.yaml
  • Fetch attempted
  • Latest version identified: ____________________
  • Commands changed since local version: ____________________

2.2 Parse Release Information

From releases.yaml, identify:

  • current_version: The latest available version
  • Find releases between local version and current version
  • Aggregate commands_changed from all intermediate releases
  • Note any breaking_changes or migration_notes

VERIFICATION GATE 2:

Version comparison:
- Local version:  [local]
- Latest version: [remote]
- Status: [Up to date / Upgrade available]
- Commands changed: [list or "all"]

Read the full file on GitHub · 356 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. 5d ago First seen · 356 lines · 8 tokens per session scan E 1ee7e682eacc

Subscribe to this mod's changes

q-upgrade is a command published in the GitHub repository contactTAM/q-command-system (5 stars, last pushed 8mo ago), licensed MIT. It adds 8 tokens to every session and 1,929 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.