hex-dev-rebuild

Rebuild and deploy the hex-nexus binary in release mode.

4|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/gaberger/hex --skill hex-dev-rebuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hex-dev-rebuild
Source: https://github.com/gaberger/hex/tree/main/.claude/skills/hex-dev-rebuild
Command: npx skills add https://github.com/gaberger/hex --skill hex-dev-rebuild

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebuild and deploy the hex-nexus binary automatically after Rust code or dashboard asset changes, eliminating manual steps and reducing downtime.

Core Features & Use Cases

  • Stop the running hex-nexus daemon, rebuild in release mode, and copy the updated binary to ~/.hex/bin/hex-nexus
  • Remove stale lock files, restart the daemon, and verify deployment
  • Use case: when you modify hex-nexus Rust code or assets, run this skill to ensure the new binary is active

Quick Start

Trigger the hex-dev-rebuild process to stop the daemon, rebuild hex-nexus in release mode, deploy the new binary, and verify the dashboard is accessible.

Frequently Asked Questions about hex-dev-rebuild

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rebuild and deploy a Rust daemon after code changes?

To rebuild and deploy a Rust daemon, this skill automates stopping the active daemon, compiling the Rust code in release mode via cargo, copying the binary to ~/.hex/bin/hex-nexus, removing stale lock files, and restarting the process.

What does removing stale lock files do when redeploying a daemon?

Removing stale lock files when redeploying a daemon ensures that the newly restarted process does not conflict with residual file locks from the previously stopped instance, preventing startup failures and verifying a successful deployment.

Do I need a Rust toolchain to rebuild and deploy hex-nexus binaries?

Yes, a Rust toolchain with cargo is required to rebuild and deploy hex-nexus binaries. Additionally, you need shell permissions for process management and access to the user's configuration at ~/.hex.

What is the best way to automate Rust binary deployment and daemon restart?

The best way to automate Rust binary deployment and daemon restart is to use a skill that sequentially stops the daemon, builds the release binary, replaces the old executable, clears lock files, and restarts the process to verify dashboard accessibility.

Why does my hex-nexus daemon fail to restart after a manual binary swap?

Your hex-nexus daemon may fail to restart after a manual binary swap due to stale lock files left in the configuration directory. Removing these residual lock files before restarting resolves the startup conflict.

Can I use cargo to build and copy release binaries to a custom deployment directory?

Yes, you can use cargo to build release binaries and copy them to a custom deployment directory like ~/.hex/bin/hex-nexus. This requires shell permissions for process management and file operations.