Upgrade Coldlocker
Coldlocker has no release numbers yet (release status (reference outside this guide)). "A new version" means newer commits of the source you cloned. Your library does not live in that source, so updating it does not touch your library.
Run every command from your Coldlocker checkout, the same folder you installed into. The imported-item check needs only Python and Git. The backup uses macOS and Linux commands; on Windows, use py -3 for python3 and copy folders in File Explorer.
Short form for a Git checkout on main with an origin remote: close agents and stop the gateway, then run python3 hub.py update. It does steps 1, 4 and 5 below (without the library backup and diff) and rolls back by itself if an installation check or the hook self-test fails (details). Keep the Rollback SHA line it prints.
What stays and what changes
| Stays as it is | Why |
|---|---|
| Skills, rules, routines and MCP definitions you imported | They live in .hub-store/, which Git never touches |
| Import history, secrets and routine records | Also in .hub-store/ |
config.json, if you made one | Ignored by Git |
| Agent settings (Claude, Codex, Cursor, ...) | The connect entry points at your checkout folder, and the folder does not move |
The gateway tool install in .scratch/ | Changes only if you rerun gateway.py install |
| Changes | |
|---|---|
The code, the shipped skills and rules, manifest.json, packs.json, the docs | Tracked files in the checkout |
Shipped skills now come in opt-in packs. If your checkout already had imports, links or catalog calls, every pack stays on and your agents see the same skills. Check with python3 hub.py pack list; turn a pack off with python3 hub.py pack remove pstack or on with python3 hub.py pack add pstack.
Upgrade
- Look at where you are. The second command should print nothing. If it prints file names, you edited tracked files; see If the pull refuses.Write down the first line. It is your way back.
git rev-parse --short HEAD git status --short - Close agents that use coldlocker. If you run the gateway, write down the
--portand--require-tokenoptions you start it with, then stop it.python3 gateway.py stop - Back up your library, outside the checkout and outside Git. The copy keeps the list of items you imported to compare later. If you have a
config.json, copy it too. If it setsstore_pathto a folder other than.hub-store, also runcp -a <STORE_PATH> ../coldlocker-backup/store-path: that folder holds your secrets and routine records, while.hub-storestill holds imported items and history.mkdir -m 700 ../coldlocker-backup cp -a .hub-store ../coldlocker-backup/ - Fetch and read what is coming, then update.
git fetch git log --oneline "HEAD..@{u}" git pull --ff-only--ff-onlyrefuses to merge, so it either moves cleanly forward or stops without changing anything. No Git login on this machine? Use the bundle you were given instead:git fetch <PATH_TO_BUNDLE> <APPROVED_BRANCH>, thengit merge --ff-only FETCH_HEAD. - Check it worked. Every line must start with
PASSand the command must exit 0. Thegit diffcommand should print nothing, meaning the list of items you imported is the same as before. It never lists shipped items, which an upgrade may add or rename. If you imported nothing, that file does not exist and you can skip it.Also runpython3 hub.py doctor git diff --no-index ../coldlocker-backup/.hub-store/catalog/manifest.json .hub-store/catalog/manifest.jsongit rev-parse --short HEAD. It should differ from step 1 and match the newest commit the log showed. - Reload your agents. Ask one to call
hub_list_skills. You should see your imported skills next to the shipped ones. Noconnectstep is needed. - Only if you use the gateway: start it again with the same
--portand--require-tokenoptions you used before; a plainstartresets them. Ifstartsays the runtime is missing or outdated, runinstallonce, thenstart.python3 gateway.py start python3 gateway.py statuspython3 gateway.py installinstallrefuses to run while the gateway is up. See gateway upgrades.
Optional follow-ups:
- If you linked skills into a project with
hub.py link, preview links for newly shipped skills:python3 hub.py link --target <root> --dry-run. - If you publish to hosted bots, publish again so they get the new shipped content (self-host).
If the pull refuses
Git says Your local changes to the following files would be overwritten: you changed a tracked file. Edit the originals of your skills outside this checkout and import them again; do not edit the shipped copies. To keep what you changed, save it, put the file back, then pull:
git diff --binary > ../coldlocker-my-edits.patch
git checkout -- <FILE>
git pull --ff-onlyIf Git says the branches have diverged, stop. Someone committed in this checkout; ask whoever maintains it before going further.
Roll back
Pick the smallest one that fixes your problem.
The new code misbehaves. Close your agents and stop the gateway first (python3 gateway.py stop), because running copies keep using the new code. Then go back to the commit you wrote down in step 1. Your library is untouched either way, so it keeps working.
git switch --detach <COMMIT_FROM_STEP_1>
python3 hub.py doctorYou are now on that old commit and Git calls this "detached HEAD". It is fine for running Coldlocker; do not commit here. Reopen your agents and start the gateway with its original options. To upgrade again later, run git switch <BRANCH> (usually main), then git pull --ff-only.
An imported item is wrong after you re-imported it. Every update keeps the old copy under .hub-store/history/. Put it back by importing that copy with the same owner and origin that python3 hub.py list shows for the item:
ls .hub-store/history/skills/<NAME>/
python3 hub.py import-skill .hub-store/history/skills/<NAME>/<TIMESTAMP>/skills/<NAME> --owner <OWNER> --origin <ORIGIN>
python3 hub.py doctorOther kinds use their own folder and command, such as rules with import-rule. The restore is itself an update, so it also keeps the version you replaced.
A client setting is wrong. An upgrade does not change agent settings. If a connect --write earlier broke one, run its printed disconnect command to preview undo. Append --apply to confirm. For older versions that printed a copy command, compare the timestamped backup with the current file and preserve later edits when removing the registration by hand.
Your library looks damaged. Do not copy the whole backup over a live .hub-store/; that can erase newer secrets, history and routine records. Keep both copies and follow private state, upgrade and rollback (reference outside this guide).