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.
curl -O https://raw.githubusercontent.com/aidemd-mcp/server/main/.claude/commands/aide/upgrade.mdgit clone --depth 1 https://github.com/aidemd-mcp/serverWrote 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.
[](https://agentmods.dev/commands/aidemd-mcp/server/upgrade)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
AskUserQuestiontool 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
AskUserQuestionwith 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:
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.
- 2d ago Changed · -1 lines be925fb9ac57
- 3d ago Changed · +3 lines b079adb483c8
- 4d ago Changed · +16 lines 463bf571cc3b
- 19d ago Changed fb963f421193
- 20d ago Changed · +28 lines 49e70b2003a8
- 2mo ago First seen · 104 lines · 0 tokens per session scan A 8c0cd38ca106
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.
Other commands, from other repositories
watchdog
Run a superskill watchdog pass. Input: $ARGUMENTS (empty = dig the latest session).
review
Run a superskill review. Scope: $ARGUMENTS (empty = the entire project).
worktree
Use the superskill worktree MCP tools. Input: $ARGUMENTS (empty = status).
superskill
route a task through superskill packs.
ijfw-audit
Run the IJFW audit gate for the current workflow phase. Usage: /ijfw-audit [phase name].
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).