upgrade

upgrade is a command for Claude Code from sk-lim19f/Hypomnema. It costs 29 tokens per session (911 once invoked), scanned B, original, MIT.

An update checker for the Hypomnema project wiki and its supporting hooks. It compares the installed schema, hook files, and settings with the current package.

In plain words
What is it for?
Use it to check for Hypomnema updates and, when requested, update the schema, hook files, and hook registrations.
Why use it?
It shows whether the installed setup is outdated or incomplete before you rely on it. An optional apply step can bring the installation up to date.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the hypo plugin — 1 skill, 16 commands, 9 hooks shipped together

Good fit Use it to check for Hypomnema updates and, when requested, update the…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sk-lim19f/Hypomnema
Claude Code
/plugin install hypo

Made for: Claude Code.

Or install hypo, the plugin that ships this one along with the rest of its 1 skill, 16 commands, 9 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/sk-lim19f/hypomnema/upgrade.svg)](https://agentmods.dev/commands/sk-lim19f/hypomnema/upgrade)
Your own site
<a href="https://agentmods.dev/commands/sk-lim19f/hypomnema/upgrade"><img src="https://agentmods.dev/badge/commands/sk-lim19f/hypomnema/upgrade.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 911 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00029 $0.00911
Opus 5 $0.00015 $0.00456
Sonnet 5 $0.00006 $0.00182
Haiku 4.5 $0.00003 $0.00091

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

Security

Grade B, and why

upgrade scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **settings.json**: checks if all hook registrations are present in `~/.claude/settings.json`
commands/upgrade.md · 66 lines

How it starts

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

You are running /hypo:upgrade. Check if the installed Hypomnema wiki is out of date and offer to apply updates.

What this checks

  • SCHEMA version: compares ~/hypomnema/SCHEMA.md version against the package's current version
  • Hook files: checks if any hooks in ~/.claude/hooks/ are stale or missing
  • settings.json: checks if all hook registrations are present in ~/.claude/settings.json

Step 1 — Run script

Bundled scripts here run via ${CLAUDE_PLUGIN_ROOT}/scripts/. To resolve that package root: if ${CLAUDE_PLUGIN_ROOT} is already an absolute path, use it; otherwise read pkgRoot from ~/.claude/hypo-pkg.json (only when non-empty and the target script exists under it); otherwise use the hypo@hypomnema (or legacy hypomnema@hypomnema) installPath in ~/.claude/plugins/installed_plugins.json; if none resolve, stop and tell the user to run hypomnema upgrade --apply (or /hypo:upgrade on a plugin install) or reinstall instead of guessing the cache layout.

If the user specified a Hypomnema directory, pass it as --hypo-dir="<path>". Otherwise omit the flag.


Step 2 — Run upgrade check

node ${CLAUDE_PLUGIN_ROOT}/scripts/upgrade.mjs [--hypo-dir="<path>"]

Show the output verbatim.

Plugin installs: if the output begins with ℹ Plugin install detected, the core hooks, slash commands, and settings.json wiring are managed by the Claude Code plugin loader — not by /hypo:upgrade. Do not run --apply expecting it to update them (it intentionally skips those to avoid double-registering every hook). To upgrade the plugin itself: /plugin marketplace update hypomnema then /reload-plugins. Then run --apply anyway: the vault's git pre-commit hook holds an absolute path baked in at init time, and reloading the plugin does not move it, so without that step every wiki commit keeps running the install you had when you first ran init. --apply in plugin mode applies vault-side migrations (SCHEMA, .hypoignore), refreshes package metadata, and still syncs any vault extensions — but does not install the core hooks/commands/settings (the plugin provides those).

Read the full file on GitHub · 66 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 0149d92e53d3
  2. 7d ago First seen · 66 lines · 29 tokens per session scan B d18cbf4f8faa

Subscribe to this mod's changes

upgrade is a command published in the GitHub repository sk-lim19f/Hypomnema (10 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 911 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.