scout-update

scout-update is a command for Claude Code from Raven-Scout/Scout. It costs 40 tokens per session (6,646 once invoked), scanned A, original, MIT.

An upgrade command for an existing Scout vault, the folder that stores its configuration and files. It applies current templates and migrations while preserving vault customizations.

In plain words
What is it for?
Upgrade Scout, merge configuration changes, update plugin-owned files, and run checks on the resulting vault.
Why use it?
It updates an existing installation without replacing the changes already made to its files. It does not install a new vault.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT variable. Also seen: mentions .claude-plugin; 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 scout plugin — 4 skills, 6 commands, 1 hook shipped together

Good fit Upgrade Scout, merge configuration changes, update plugin-owned files, and run checks on the resulting vault.

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 Raven-Scout/Scout
Claude Code
/plugin install scout

Made for: Claude Code.

Or install scout, the plugin that ships this one along with the rest of its 4 skills, 6 commands, 1 hook.

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 scout-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/raven-scout/scout/scout-update/github.svg)](https://agentmods.dev/commands/raven-scout/scout/scout-update)
Your own site
<a href="https://agentmods.dev/commands/raven-scout/scout/scout-update"><img src="https://agentmods.dev/badge/commands/raven-scout/scout/scout-update/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 scout-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/raven-scout/scout/scout-update"><img src="https://agentmods.dev/badge/commands/raven-scout/scout/scout-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,646 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.00040 $0.06646
Opus 5.5 $0.00016 $0.02658
Sonnet 5.5 $0.00008 $0.01329
Haiku 4.5 $0.00004 $0.00665

Measured 3d ago against content hash ec13fec603c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scout-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 3d 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.

plugin/commands/scout-update.md · 336 lines

How it starts

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

Scout Update

You are the Scout updater. This command upgrades an existing vault against the current plugin templates without clobbering vault customizations. It runs an 8-stage pipeline (pre-flight → migrations → plugin-owned files, keeping the vault's edits to them → .gitignore merge → cat-4 3-way merge → job lifecycle → version stamp → doctor).

This command is for existing vaults only. If no vault exists, refuse and tell the user to run /scout-setup.


Locating scoutctl — canonical resolver

Every shell block in this command runs in a fresh process, so variables set in one block do not carry into the next. Each block that needs the plugin root must re-resolve it at its top using the canonical resolver snippet below.

Canonical resolver (copy verbatim into every block that needs $NEW_ROOT / $SCOUTCTL):

NEW_ROOT=""
if [ -e "$HOME/scout-plugin/.git" ] && [ -f "$HOME/scout-plugin/.claude-plugin/plugin.json" ]; then
  NEW_ROOT="$HOME/scout-plugin"           # legacy single-repo scout-plugin clone
elif [ -e "$HOME/scout-plugin/.git" ] && [ -f "$HOME/scout-plugin/plugin/.claude-plugin/plugin.json" ]; then
  NEW_ROOT="$HOME/scout-plugin/plugin"    # Raven-Scout/Scout monorepo clone: plugin under plugin/
fi
[ -n "$NEW_ROOT" ] || NEW_ROOT="$(claude plugin list --json 2>/dev/null \
  | python3 -c 'import sys,json;d=json.load(sys.stdin);e=d if isinstance(d,list) else [p for ps in d.get("plugins",{}).values() for p in ps];print(next((p["installPath"] for p in e if p.get("id")=="scout@scout-plugin"),""))' 2>/dev/null)"
[ -n "$NEW_ROOT" ] || NEW_ROOT="$(ls -d "$HOME"/.claude/plugins/cache/scout-plugin/scout/*/ 2>/dev/null | sort -V | tail -1)"
NEW_ROOT="${NEW_ROOT%/}"
[ -n "$NEW_ROOT" ] || { echo "PLUGIN_ROOT_NOT_FOUND"; exit 1; }
SCOUTCTL="$NEW_ROOT/.venv/bin/scoutctl"

This prefers a maintainer git checkout at ~/scout-plugin — a legacy single-repo scout-plugin clone (.claude-plugin/plugin.json at its root) is the plugin root itself; a Raven-Scout/Scout monorepo clone (plugin/.claude-plugin/plugin.json) has its plugin root at ~/scout-plugin/plugin; a .git alone is not enough — then the scout@scout-plugin entry of claude plugin list --json (which has emitted both a flat list and a {"plugins": {...}} map — the snippet accepts either), then the newest version directory in the marketplace cache. It never yields an empty root: if all three miss it prints PLUGIN_ROOT_NOT_FOUND and stops — tell the user the plugin isn't installed and to re-run the installer. Do NOT use ${CLAUDE_PLUGIN_ROOT:-$HOME/scout-plugin} in any block — after Step 0.5 refreshes the plugin, $CLAUDE_PLUGIN_ROOT may still point at the pre-refresh path.

Read the full file on GitHub · 336 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. 3d ago First seen · 336 lines · 40 tokens per session scan A ec13fec603c8

Subscribe to this mod's changes

scout-update is a command published in the GitHub repository Raven-Scout/Scout (19 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 6,646 once invoked, about $0.0002 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-10-06.