update

update is a command for Claude Code from Hassaan146/forge-mentor. It costs 14 tokens per session (855 once invoked), scanned A, original, MIT.

A command that checks whether a newer version of Forge is available and tells you how to update it. Forge is the project tool that manages the recorded development process and its checks.

In plain words
What is it for?
Use it to check the installed Forge version and, when needed, refresh it and its local catalogue.
Why use it?
It helps you find updates immediately when you suspect a fix or newer catalogue is available, instead of waiting for the daily automatic check.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: 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 forge plugin — 4 skills, 6 commands, 4 agents, 4 hooks, 1 MCP server shipped together

Good fit Use it to check the installed Forge version and, when needed, refresh…

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 Hassaan146/forge-mentor
Claude Code
/plugin install forge

Made for: Claude Code.

Or install forge, the plugin that ships this one along with the rest of its 4 skills, 6 commands, 4 agents, 4 hooks, 1 MCP server.

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 update

README.md
[![agentmods](https://agentmods.dev/badge/commands/hassaan146/forge-mentor/update.svg)](https://agentmods.dev/commands/hassaan146/forge-mentor/update)
Your own site
<a href="https://agentmods.dev/commands/hassaan146/forge-mentor/update"><img src="https://agentmods.dev/badge/commands/hassaan146/forge-mentor/update.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 855 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.00014 $0.00855
Opus 5 $0.00007 $0.00428
Sonnet 5 $0.00003 $0.00171
Haiku 4.5 $0.00001 $0.00085

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

Security

Grade A, and why

update 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 7d 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.

commands/update.md · 86 lines

How it starts

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

/forge:update

Ask whether this copy of Forge is current, and say what to run if it is not.

Forge checks this once a day on its own and tells you when something is out. This command is for when you want to ask now — usually right after someone has pushed a fix you are waiting on.

Run it

python "${CLAUDE_PLUGIN_ROOT}/scripts/forge_update.py" --force

--force skips the once-a-day cache. Without it you would get this morning's answer to a question you are asking because something changed this afternoon.

Print whatever it returns, exactly as it comes. Silence means you are current — say so in one line rather than inventing a block, and do not describe the check itself. Nobody asked how it works.

Two different answers, and they are not interchangeable

"An update is out." A newer version exists on GitHub and is not on this machine. Ask, then run it yourself. Do not hand the user two commands to type: they have Claude Code open, you have a shell, and the whole point of the notice is to save them the trip.

On yes, run both, in this order, because the second reads the local catalogue and the first is what refreshes it. Run the second alone and it finds nothing, reports success, and changes nothing, which is the loop this exists to end:

claude plugin marketplace update forge-marketplace
claude plugin update forge@forge-marketplace

Then say the version that landed and that a restart is what loads it. On no, say "fine, it will keep" in one line and carry on. Do not ask twice in a session, and never update without being told to: swapping the tool underneath a session that is mid-decision is how you get half of one version and half of another.

"It is downloaded, this session is running the old one." The update already worked. Nothing needs downloading again, and running the update command a second time will report success and change nothing, which is the loop that wastes an afternoon. What is left is one restart.

Read the full file on GitHub · 86 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. 7d ago First seen · 86 lines · 14 tokens per session scan A 1e0c9c9a98d6

Subscribe to this mod's changes

update is a command published in the GitHub repository Hassaan146/forge-mentor (22 stars, last pushed 21d ago), licensed MIT. It adds 14 tokens to every session and 855 once invoked, about $0.0001 per session on Opus 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-30.