server: Command for Claude Code

.claude/commands/aide/upgrade.md

upgrade is a command for Claude Code from aidemd-mcp/server. It costs 0 tokens per session (2,468 once invoked), scanned A, original, MIT.

An interactive wizard that updates a project's AIDE methodology files to match a canonical version. It reviews one category at a time and asks before changing it.

In plain words
What is it for?
Use it to check for outdated AIDE artifacts, review each detected difference, and apply selected updates to disk.
Why use it?
It helps find and resolve differences between the project's methodology files and the canonical version without reviewing every file manually.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; names the AskUserQuestion tool.

This is aidemd-mcp/server's own configuration. It tells Claude Code how to work on server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aidemd-mcp/server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aidemd-mcp/server/main/.claude/commands/aide/upgrade.md
Clone the repo
git clone --depth 1 https://github.com/aidemd-mcp/server

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 upgrade

README.md
[![agentmods](https://agentmods.dev/badge/commands/aidemd-mcp/server/upgrade/github.svg)](https://agentmods.dev/commands/aidemd-mcp/server/upgrade)
Your own site
<a href="https://agentmods.dev/commands/aidemd-mcp/server/upgrade"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/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/aidemd-mcp/server/upgrade"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/upgrade.svg" alt="Reviewed on agentmods" width="80" 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 2,468 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.
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.02468
Opus 5.5 $0.00000 $0.00987
Sonnet 5.5 $0.00000 $0.00494
Haiku 4.5 $0.00000 $0.00247

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

.claude/commands/aide/upgrade.md · 150 lines

How it starts

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

/aide:upgrade — Interactive Methodology Upgrade

Agent: You are the orchestrator for this command. Do NOT delegate to a subagent.

CRITICAL — read this before doing anything: This is a step-by-step wizard. You show ONE category at a time, ask ONE question using the AskUserQuestion tool with structured options, then STOP and wait.

Rules:

  • Never show all drifted categories at once and ask "which do you want?"
  • Never offer "all" as an option
  • Every pause point MUST use AskUserQuestion with defined options
  • After every AskUserQuestion, STOP. Do not continue until the user responds.
  • The tool writes files to disk itself — you do NOT use the Write tool for file categories

Bring this project's AIDE methodology artifacts up to date with canonical by calling aide_upgrade and walking the user through each drifted category interactively.

Two-call pattern

The tool uses a two-call pattern. The first call (no category) returns a lightweight summary. The second call (with category) writes files to disk and returns a manifest — no file content.

Wizard flow


Step 1: Call aide_upgrade (summary)

Call aide_upgrade with no arguments. The response is JSON with framework and categories. Each category has files (metadata only — no canonicalContent) and a summary with counts.

If all categories have differs: 0 and missing: 0, skip to Project files below — the project's own files can still be on an older format even when the package files are current.

Otherwise, proceed to walk through drifted categories one at a time.


Step 2–N: Walk through drifted categories one at a time

For each category where differs > 0 or missing > 0 (or, for the brain category specifically, any file's status is "malformed" — which doesn't increment missing), present ONLY that category:

  • Name the category
  • List which files differ or are missing (use ~ for differs, + for missing)
  • Call AskUserQuestion:

Read the full file on GitHub · 150 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. 2d ago Changed · -1 lines be925fb9ac57
  2. 3d ago Changed · +3 lines b079adb483c8
  3. 4d ago Changed · +16 lines 463bf571cc3b
  4. 19d ago Changed fb963f421193
  5. 20d ago Changed · +28 lines 49e70b2003a8
  6. 2mo ago First seen · 104 lines · 0 tokens per session scan A 8c0cd38ca106

Subscribe to this mod's changes

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