custom-protocol-update-after-reinstall

custom-protocol-update-after-reinstall is a command for coding agents from TeamManagementPlugin/claude-plugin. It costs 11 tokens per session (499 once invoked), scanned A, original, MIT.

A command that compares customized team protocols with newer built-in versions after a team-management update.

In plain words
What is it for?
Use it to check for drift, view the affected custom and staged files, and merge selected upstream changes into the customized versions.
Why use it?
It identifies changes that may need to be merged into local protocol copies and flags custom protocols whose origin cannot be tracked.

Command

Part of the team-management plugin — 8 commands, 16 agents, 6 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/teammanagementplugin/claude-plugin/custom-protocol-update-after-reinstall
Clone the repo
git clone --depth 1 https://github.com/TeamManagementPlugin/claude-plugin

Or install team-management, the plugin that ships this one along with the rest of its 8 commands, 16 agents, 6 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 custom-protocol-update-after-reinstall

README.md
[![agentmods](https://agentmods.dev/badge/commands/teammanagementplugin/claude-plugin/custom-protocol-update-after-reinstall.svg)](https://agentmods.dev/commands/teammanagementplugin/claude-plugin/custom-protocol-update-after-reinstall)
Your own site
<a href="https://agentmods.dev/commands/teammanagementplugin/claude-plugin/custom-protocol-update-after-reinstall"><img src="https://agentmods.dev/badge/commands/teammanagementplugin/claude-plugin/custom-protocol-update-after-reinstall.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.00499
Opus 5 $0.00005 $0.00249
Sonnet 5 $0.00002 $0.00100
Haiku 4.5 $0.00001 $0.00050

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

Security

Grade A, and why

custom-protocol-update-after-reinstall 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/custom-protocol-update-after-reinstall.md · 25 lines

How it starts

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

Update Custom Protocols After Reinstall

After a team-management reinstall/update, the built-in (system) protocols may have changed. This reconciles your forked custom protocols (created via /team-management:custom-protocol-create) against the new system versions.

Workflow

  1. Detect drift. Call mcp__plugin_team-management_tm__protocol_check_drift().
  2. Report the result:
    • drifted — each entry's system source changed since you forked it. The new system version has been staged next to your custom copy as new-<basename> (e.g. custom/new-task.json, custom/sub-protocols/new-task-investigation.md). Show the user each custom path and its staged counterpart.
    • unknown — custom protocols with no provenance record (hand-made forks, or forked before provenance tracking). The tool cannot diff these; list them so the user knows they are untracked.
    • If drifted is empty, tell the user everything is up to date and stop here.
  3. Guide the merge, one file at a time. For each drifted file, read both the user's custom/<file> and the staged new-<file>, and help the user fold the upstream changes they want to keep into their custom version. Leave the staged new- file untouched until they confirm.
  4. Finalize. Once the user confirms all merges are done, call mcp__plugin_team-management_tm__protocol_check_drift(acknowledge=True). This deletes the new- staged files and refreshes the provenance hashes so the next run starts clean. Report removed_staging and acknowledged.

Rules

  • Do NOT read or edit files under team-management/protocol-configs/system/ — it is protected; the MCP tool reads it for you.
  • The staged new-<file> copies live in custom/ but are NOT active protocols — protocol_list ignores the new- prefix, and the engine never resolves them. They are scratch copies for merging only.
  • Only call acknowledge=True after the user has finished merging — it discards the staged versions and resets the drift baseline.

Read the full file on GitHub · 25 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 · 25 lines · 11 tokens per session scan A 3fbd22b73925

Subscribe to this mod's changes

custom-protocol-update-after-reinstall is a command published in the GitHub repository TeamManagementPlugin/claude-plugin (4 stars, last pushed 28d ago), licensed MIT. It adds 11 tokens to every session and 499 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-31.