← ClaudeAtlas

updatelisted

Check for new versions of Claude Code and ClawCode, and print safe update commands. Triggers on /agent:update, /update, "check for updates", "are there updates", "buscar actualizaciones".
crisandrews/ClawCode · ★ 56 · AI & Automation · score 84
Install: claude install-skill crisandrews/ClawCode
# /agent:update — Check for new versions Detect whether new versions of Claude Code (`@anthropic-ai/claude-code`) or ClawCode (this repo) are available, and surface the safe update procedure for each. Designed for users running ClawCode as a long-running daemon, where Claude Code's in-process auto-updater is disabled (see `lib/service-generator.ts` — `Environment=DISABLE_AUTOUPDATER=1`) and updates have to be applied explicitly. ## When to use - User asks `/agent:update`, `/update`, "check for updates", "are there updates", etc. - Heartbeat skill calls in silent-check mode (see `templates/HEARTBEAT.md`). - Before applying any change to the running service — knowing the upstream version helps decide whether to bundle with an update. ## Steps 1. **Detect current versions.** Run all three in parallel (independent reads): ```bash # Claude Code installed binary CC_INSTALLED=$(claude --version 2>/dev/null | awk '{print $1}') # ClawCode local repo HEAD PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(pwd)/ClawCode}" CW_LOCAL=$(git -C "$PLUGIN_ROOT" rev-parse --short HEAD 2>/dev/null) CW_LOCAL_TAG=$(git -C "$PLUGIN_ROOT" describe --tags --abbrev=0 2>/dev/null || echo "no-tag") ``` 2. **Detect available versions.** Network calls — be tolerant of failures (no network, npm flake, GitHub down): ```bash # Claude Code latest on npm CC_LATEST=$(npm view @anthropic-ai/claude-code version 2>/dev/null) # ClawCode latest tag and HEAD on upstream git -C "$PLU