Skip to main content

Update Check

SessionStartsessionEnabled by default

Checks for plugin updates once per 24 hours and notifies when a newer version is available.

Why use this

New hooks and bug fixes ship regularly. Without this you'd stay on the version you installed forever — potentially missing guards that prevent real mistakes.

Lifecycle

Where in the Claude Code session this hook fires.

SessionStart
PreToolUse
PostToolUse
Stop
Notification
Session Start

Fires once when a Claude Code session opens.

How it works

Compares the installed tonone version against the latest release on GitHub. At most one check per 24 hours via a local timestamp cache. Fires a macOS notification and writes an upgrade command to stderr when an update is found.

settings.json

What the hook configuration looks like in ~/.claude/settings.json after install.

~/.claude/settings.json
{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node ~/.claude/plugins/tonone-ai/tonone/tonone-update-check.js"
          }
        ]
      }
    ]
  }
}

Install

This hook

Install Update Check

1. Add to marketplace

$ claude plugin marketplace add tonone-ai/tonone

2. Install this hook

$ claude plugin install update-check@tonone-ai

More session hooks

All hooks

Ready to use Update Check?