ctx-upgrade
Update context-mode to the latest version, rebuild assets, reinstall global NPM dependencies, and refresh hook configurations.
Introduction
The ctx-upgrade skill provides an automated maintenance workflow for the context-mode MCP server, ensuring that users stay current with the latest features, bug fixes, and performance improvements released via GitHub. This utility simplifies the complex lifecycle of the agent plugin, which involves not only source updates but also local compilation, package management, and system-level hook synchronization. It is designed for developers and power users who rely on context-mode to optimize their LLM context windows, providing a reliable way to keep the environment in sync with the upstream repository.
-
Automatically pulls the latest code from the official mksglu/claude-context-mode repository.
-
Performs a clean build of TypeScript assets and native bindings to ensure system compatibility.
-
Updates global NPM packages and refreshes integration hooks for tools like Claude Code, OpenClaw, and VS Code Copilot.
-
Provides a diagnostic checklist to verify successful installation, including version identification and doctor pass checks.
-
Includes a robust fallback mechanism that targets the plugin root directly if the primary MCP tool invocation fails.
-
Run the skill using the /context-mode:ctx-upgrade trigger command in your agent interface.
-
The tool returns a shell command that must be executed in your environment to complete the installation.
-
Users should monitor the output for the post-update confirmation, which confirms the new version number (e.g., v1.0.39).
-
Note: A full session restart is strictly required after running this upgrade to ensure the updated plugin code is loaded into the agent's memory.
-
If you encounter issues during the upgrade, the skill's fallback logic uses the plugin root path to manually trigger the internal CLI upgrade script.
Repository Stats
- Stars
- 12,053
- Forks
- 834
- Open Issues
- 3
- Language
- TypeScript
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 3, 2026, 04:45 AM