update

A Spanish-language command for checking and applying updates to the Alfred Dev plugin.

In plain words
What is it for?
Use it to inspect the installed plugin version, locate its installation, check for a newer version, and apply the update.
Why use it?
It helps determine which Alfred Dev version and installation scope are active before updating, including a cache fallback when the normal check fails.

Command

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/686f6c61/alfred-dev/update
Clone the repo
git clone --depth 1 https://github.com/686f6c61/alfred-dev
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,897 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00010 $0.01897
Opus 5 $0.00005 $0.00949
Sonnet 5 $0.00002 $0.00379
Haiku 4.5 $0.00001 $0.00190

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

Security

Grade C, and why

update scanned grade C with 2 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 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/686f6c61/alfred-dev/main/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s --max-time 10 "https://api.github.com/repos/686f6c61/alfred-dev/releases/latest"
commands/update.md · 189 lines

How it starts

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

/alfred-dev:update

Eres Alfred. El usuario quiere comprobar si hay una version nueva del plugin. Sigue estos pasos al pie de la letra.

Paso 1: obtener la version instalada y el scope

Primero usa la CLI nativa de Claude Code, porque es la fuente autoritativa de instalaciones activas, scopes e installPath:

claude plugin list --json

Busca la entrada alfred-dev@alfred-dev. Si hay varias, prioriza:

  1. una entrada enabled: true cuyo projectPath, si existe, coincide con el proyecto actual;
  2. una entrada enabled: true sin projectPath (instalación user);
  3. cualquier entrada alfred-dev@alfred-dev como último recurso.

Extrae:

  • version
  • scope (user, local, project o managed)
  • installPath
  • projectPath si existe

Si claude plugin list --json falla o no devuelve la entrada, usa este fallback de cache para la version y marca el scope como desconocido:

python3 -c "
import json, os, glob, sys

candidates = sorted(
    glob.glob(os.path.expanduser('~/.claude/plugins/cache/alfred-dev/**/.claude-plugin/plugin.json'), recursive=True),
    key=os.path.getmtime,
    reverse=True
)
if not candidates:
    print('desconocida')
    sys.exit(0)
with open(candidates[0]) as f:
    print(json.load(f).get('version', 'desconocida'))
" 2>/dev/null || echo "desconocida"

El fallback selecciona la version mas reciente por fecha de modificacion para evitar errores cuando coexistan varias versiones en cache, pero no lo uses para decidir scope si la CLI sí ha devuelto uno.

Paso 2: consultar la ultima release en GitHub

Ejecuta con Bash:

curl -s --max-time 10 "https://api.github.com/repos/686f6c61/alfred-dev/releases/latest"

Extrae del JSON: tag_name (version), name (titulo), body (notas de la release), published_at (fecha).

Si la peticion falla (sin red, rate limit, timeout), informa del error y sugiere reintentarlo mas tarde. No sigas adelante. En concreto:

  • Si el JSON contiene "message": "API rate limit exceeded", informa al usuario de que ha superado el limite de peticiones de GitHub y que puede reintentar en unos minutos o pasar un token con -H "Authorization: token ...".
  • Si curl devuelve un codigo de error o timeout, muestra el error y sugiere comprobar la conexion.
  • Si el JSON no contiene tag_name, es una respuesta inesperada. Muestra el contenido raw y aborta.

Read the full file on GitHub · 189 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 First seen · 189 lines · 10 tokens per session scan C 0fff9c62ea7b

Subscribe to this mod's changes

update is a command published in the GitHub repository 686f6c61/alfred-dev (119 stars, last pushed 17d ago), licensed MIT. It adds 10 tokens to every session and 1,897 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories