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 A, 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

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/contacttam/q-command-system/q-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/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/github.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/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 q-upgrade

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.00008 $0.01929
Opus 5.5 $0.00003 $0.00772
Sonnet 5.5 $0.00002 $0.00386
Haiku 4.5 $0.00001 $0.00193

Measured 2mo ago against content hash 1ee7e682eacc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

q-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 2mo 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.

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. 2mo 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 10mo ago), licensed MIT. It adds 8 tokens to every session and 1,929 once invoked, about $0.0000 per session on Opus 5.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-08-31.