migrate-to-v4

migrate-to-v4 is a command for Claude Code from hazelcast/hive. It costs 0 tokens per session (913 once invoked), scanned A, original, Apache-2.0.

A guided process for moving a client app from version 3 to version 4 of Hazelcast's user-interface component library. It supports moving gradually by temporarily importing changed components from a compatibility path.

In plain words
What is it for?
Use it to upgrade the package, follow the migration guide, run tests, update changed imports, and find remaining compatibility-path imports.
Why use it?
It identifies breaking changes and lets the app continue working while components are updated over time.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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/hazelcast/hive/migrate-to-v4
Clone the repo
git clone --depth 1 https://github.com/hazelcast/hive

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-to-v4

README.md
[![agentmods](https://agentmods.dev/badge/commands/hazelcast/hive/migrate-to-v4.svg)](https://agentmods.dev/commands/hazelcast/hive/migrate-to-v4)
Your own site
<a href="https://agentmods.dev/commands/hazelcast/hive/migrate-to-v4"><img src="https://agentmods.dev/badge/commands/hazelcast/hive/migrate-to-v4.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.1 $0.00000 $0.00913
Opus 5 $0.00000 $0.00456
Sonnet 5 $0.00000 $0.00183
Haiku 4.5 $0.00000 $0.00091

Measured 6d ago against content hash f54f0ebb9635, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

migrate-to-v4 scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/migrate-to-v4.md · 134 lines

How it starts

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

Hive v4 Migration Assistant

You are helping a client app: mc (../management-center) or cloud (../hazelcast-cloud-frontend) migrate its @hazelcast/ui dependency from v3 to v4.

Key concept: gradual migration via /old

v4 ships with a @hazelcast/ui/old subpath that re-exports all v3 components that have changed or been removed from the main entry point. This means clients do not need to migrate everything at once.

The strategy is:

  1. Upgrade the package to v4
  2. For each component with a breaking change: either migrate now or temporarily redirect the import to @hazelcast/ui/old
  3. Migrate components from /old to the new API at your own pace
  4. Once all /old imports are gone, you're fully on v4

@hazelcast/ui/old components will be removed in v5 — they are a migration aid, not a permanent API.


Step-by-step process

1. Upgrade the package

npm install @hazelcast/ui@4

Run the test suite immediately after. Failures indicate where breaking changes are.

2. Load the migration guide

Ask the user for the path to docs/migration-v4.md from the hive repo, or read it if already available. This is the source of truth for all breaking changes.

3. Inventory all hive imports

Search the client codebase:

grep -r "@hazelcast/ui" src --include="*.tsx" --include="*.ts" -l

For each file, note which components are imported.

4. Triage each component

For every component that has a breaking change in the migration guide, decide with the user:

  • Migrate now — apply the new API immediately
  • Use /old temporarily — redirect the import, migrate later

For components with no breaking changes — nothing to do.

5. Apply the chosen strategy

Option A: Migrate now

Apply the prop/behavior/CSS changes from docs/migration-v4.md at every usage site.

Option B: Redirect to /old

Change the import in each affected file:

// Before
import { Tooltip } from '@hazelcast/ui'

// After (temporary — migrate before v5)
import { Tooltip } from '@hazelcast/ui/old'
// TODO: migrate to @hazelcast/ui v4 Tooltip

Read the full file on GitHub · 134 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. 6d ago First seen · 134 lines · 0 tokens per session scan A f54f0ebb9635

Subscribe to this mod's changes

migrate-to-v4 is a command published in the GitHub repository hazelcast/hive (19 stars, last pushed 10d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 913 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.