Skip to content

Updating hpilot ​

Audience: Users — Pipeline operators upgrading installations.

Use the update path that matches how hpilot was installed.

Import from Cybervisor ​

Run the importer before hpilot init in each project you want to move. Keep both .cybervisor/ and .hpilot/ in your project’s Git ignore rules if you store credentials there. The importer reads account settings in ~/.cybervisor/config.yaml, project settings in .cybervisor/config.yaml, the cybervisor.yaml pipeline, and local usage history. It skips missing sources and existing destinations, so you can import a second project without replacing your account settings.

bash
hpilot import-cybervisor --workspace /path/to/project --dry-run
hpilot import-cybervisor --workspace /path/to/project

Omit --workspace to use the current directory. The destination files are ~/.hpilot/config.yaml, .hpilot/config.yaml, hpilot.yaml, and ~/.hpilot/usage.sqlite3. The importer honors CYBERVISOR_USAGE_DB for the old database and HPILOT_USAGE_DB for the new one. It copies a consistent SQLite snapshot and creates private files. The originals, logs, artifacts, backups, and session records stay in their existing locations.

The imported pipeline uses hpilot paths and environment variables. Its top-level sandbox block is removed. Review the reported hook or command locations and update any external scripts that use CYBERVISOR_* variables. Replace any workflows that depended on disposable filesystem writes. Use hpilot serve for a daemon running directly in the workspace. Run hpilot validate from the project to check its imported pipeline.

Background update checks ​

hpilot run and hpilot serve check PyPI for newer versions in the background. An available update appears as a notice in the logs.

Example log output when an upgrade is available:

Newer version available: X.Y.Z (current: A.B.C). Run `uv tool upgrade hpilot` or `pip install --upgrade hpilot` to update.

Update an installation ​

Upgrade an installation managed by uv with:

bash
uv tool upgrade hpilot
hpilot --version

This keeps your existing global configuration in ~/.hpilot/config.yaml.

If hpilot is not installed yet, use:

bash
uv tool install hpilot

Update An Editable Local Install ​

If you installed from a local checkout for development, reinstall the tool from the repo root so the executable points at the current source tree:

bash
uv tool install -e . --force
hpilot --version

Then refresh the project environment if dependencies changed:

bash
uv sync

Migration: protected_paths → read_only_paths ​

The top-level protected_paths key and the previous top-level read_only_paths key are no longer accepted in hpilot.yaml. If your config contains either key, you will see a validation error with a migration hint at startup.

To migrate, move read_only_paths (or protected_paths) from the top level into individual stage definitions:

Before (deprecated):

yaml
read_only_paths:
  - "src/**"
  - "tests/**"

stages:
  - name: Spec
  - name: Implement

After (current):

yaml
stages:
  - name: Spec
    read_only_paths:
      - "src/**"
      - "tests/**"
  - name: Implement

The per-stage approach allows different write-protection patterns for different stages (e.g., design stages protect source code while implementation stages allow full write access).

Migration: hook → verifier ​

The singular hook configuration key was renamed to verifier. Update any existing hpilot.yaml before running the upgraded CLI:

yaml
# Before
hook: {}

# Current
verifier: {}

The plural hooks key still configures trusted before_stage and after_stage lifecycle commands in hpilot.yaml. The active global configuration now accepts the same mapping as user-level defaults. Pipeline phase strings replace those defaults and phase-level null disables them. Verifier settings remain under llm in ~/.hpilot/config.yaml.

Older releases could leave .hpilot/hooks/, hook_config.json, snapshot files, or .hpilot/hook-events.sock behind. The current release does not create or migrate these files. If they remain from an older run, remove them manually after confirming no older hpilot process is using them.