Add version upgrade notification at session start#218
Open
calreynolds wants to merge 3 commits intomainfrom
Open
Add version upgrade notification at session start#218calreynolds wants to merge 3 commits intomainfrom
calreynolds wants to merge 3 commits intomainfrom
Conversation
Users don't know when a newer version of ai-dev-kit is available. This adds a lightweight check that runs at Claude Code session start and notifies the user if an update exists. How it works: - check_update.sh compares local version against GitHub latest - Results cached for 24h to avoid repeated network requests - Silent on any failure (offline, timeout, missing files) - Hook stdout is injected as context Claude sees and relays Supports multiple install paths: - Plugin mode (CLAUDE_PLUGIN_ROOT/VERSION) - Project-scoped install (.ai-dev-kit/version) - Global install (~/.ai-dev-kit/version) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Wire the check_update.sh hook into .claude/settings.json during install so that install.sh users (not just plugin users) get the version notification at session start. Uses Python JSON merge when possible to safely add the hook to existing settings without overwriting other config. Falls back to writing a new file if settings.json doesn't exist yet. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move the install command out of the ASCII box into its own code block on a single line so users can select and copy it cleanly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SessionStarthookHow it works
check_update.shruns at session start. Its stdout is injected as context Claude sees, so it naturally relays the upgrade notice to the user before proceeding with their request.Supports all install paths:
$CLAUDE_PLUGIN_ROOT/VERSION.ai-dev-kit/versionin project dir~/.ai-dev-kit/versionWhat users see
When outdated (once per new session, max once per 24h network check):
When up to date or offline: nothing.
Files changed
.claude-plugin/check_update.sh(new) — version check script with 24h cachehooks/hooks.json(modified) — added check_update hook to SessionStartTest plan
.claude/settings.jsonpointing to check_update.sh🤖 Generated with Claude Code