update

Solid

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".

AI & Automation 61 stars 14 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /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...

Details

Author
crisandrews
Repository
crisandrews/ClawCode
Created
3 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category