auto-update

auto-update is a command for Claude Code from affaan-m/ECC. It costs 13 tokens per session (513 once invoked), scanned A, original, MIT.

A command that pulls the newest changes from the ECC repository and reinstalls the currently managed targets.

In plain words
What is it for?
Use it to update ECC and regenerate its managed installation from the existing install settings.
Why use it?
It avoids manually finding updates, applying them, and rebuilding the current installation. A preview mode lets you inspect the update before it changes anything.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

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 ecc plugin — 81 skills, 58 commands, 71 agents, 1 MCP server shipped together

Good fit Use it to update ECC and regenerate its managed installation from the existing install settings.

Compare 6 commands from other repositories ↓
About the project

ECC is a toolkit that organizes and improves how coding agents work through skills, memory, security checks, research practices, and related extensions. It is for developers using agents such as Claude Code, Codex, OpenCode, and Cursor.

affaan-m/ECC · 313,018 stars · on GitHub · ecc.tools

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 affaan-m/ECC
Claude Code
/plugin install ecc

Made for: Claude Code.

Or install ecc, the plugin that ships this one along with the rest of its 81 skills, 58 commands, 71 agents, 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 auto-update

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/affaan-m/ecc/auto-update"><img src="https://agentmods.dev/badge/commands/affaan-m/ecc/auto-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 513 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review
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.00013 $0.00513
Opus 5.5 $0.00005 $0.00205
Sonnet 5.5 $0.00003 $0.00103
Haiku 4.5 $0.00001 $0.00051

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

Security

Grade A, and why

auto-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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

commands/auto-update.md · 29 lines

What it actually says

Auto Update

Update ECC from its upstream repo and regenerate the current context's managed install using the original install-state request.

Usage

# Preview the update without mutating anything
ECC_ROOT="${CLAUDE_PLUGIN_ROOT:-$(node -e "var r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;if(e&&e.trim())return e.trim();var d=p.join(o.homedir(),'.claude');function L(x){try{return require(p.join(x,'scripts','lib','resolve-ecc-root')).resolveEccRoot({probe:p.join('scripts','auto-update.js')})}catch(_){return null}}var r=L(d);if(r)return r;var s=['ecc','ecc@ecc','marketplaces/ecc','everything-claude-code','everything-claude-code@everything-claude-code','marketplaces/everything-claude-code'];for(var i=0;i<s.length;i++){r=L(p.join(d,'plugins',s[i]));if(r)return r}try{var g=['ecc','everything-claude-code'];for(var j=0;j<g.length;j++){var c=p.join(d,'plugins','cache',g[j]);var O=f.readdirSync(c);for(var k=0;k<O.length;k++){var q=p.join(c,O[k]);var V=f.readdirSync(q);for(var m=0;m<V.length;m++){r=L(p.join(q,V[m]));if(r)return r}}}}catch(_){}return d})();console.log(r)")}"
node "$ECC_ROOT/scripts/auto-update.js" --dry-run

# Update only Cursor-managed files in the current project
node "$ECC_ROOT/scripts/auto-update.js" --target cursor

# Override the ECC repo root explicitly
node "$ECC_ROOT/scripts/auto-update.js" --repo-root /path/to/everything-claude-code

Notes

  • This command uses the recorded install-state request and reruns install-apply.js after pulling the latest repo changes.
  • Reinstall is intentional: it handles upstream renames and deletions that repair.js cannot safely reconstruct from stale operations alone.
  • Use --dry-run first if you want to see the reconstructed reinstall plan before mutating anything.
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. 2mo ago First seen · 29 lines · 13 tokens per session scan A c354e4b09a0d

Subscribe to this mod's changes

auto-update is a command published in the GitHub repository affaan-m/ECC (313,018 stars, last pushed 7d ago), licensed MIT. It adds 13 tokens to every session and 513 once invoked, about $0.0001 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-09-03.

Related

auto-update compared with commands from other repositories

auto-update next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auto-updateaffaan-m/ECCCommand313k7d agoMITA13Claude Code
caveman-commitJuliusBrussee/cavemanCommand124ktodayApache-2.0A11Claude Code
update-documentationclosedloop-ai/claude-pluginsCommand1224d agoApache-2.0A0Claude Code
push-learningsclosedloop-ai/claude-pluginsCommand1224d agoApache-2.0A11Claude Code
t00-gitmaysunAI/T00-zhCommand24mo agoMITA29Claude Code
t00-publishmaysunAI/T00-zhCommand24mo agoMITA21Claude Code
merge-when-trueDYAI2025/PlumblineCommand62mo agononeA107Claude Code