Keep everything up to date
Installed items do not change on their own. mind copies each one into its
store, so upstream changes reach you only when you ask for them.
mind upgrade # fetch, show what changed, confirm, apply
Upgrade installed items
mind upgrade fetches every source an installed item came from, then reports
each item whose content changed, with its content hash and commit before and
after. Nothing changes until you confirm.
mind upgrade # everything
mind upgrade skill:review # one item
mind upgrade 'owner/repo#*' # every installed item from one source
mind upgrade owner/repo # fetch and upgrade one source only
mind upgrade --source owner/repo # the same, when an item shares the name
mind upgrade --no-sync # skip the fetch; compare against the clones on disk
mind upgrade --yes # apply without asking
--source takes the same filter as sync [source] and leaves every other
source unfetched and unchanged. Unlike 'owner/repo#*', it also offers items
the source added to an enabled install profile. Add an item to narrow it further
(mind upgrade skill:review --source owner/repo). A --source filter that
matches no melded source is an error; an item filter that matches neither an
installed item nor a melded source reports that everything is up to date.
A plain mind upgrade <name> is read as an item filter first. When it matches
no installed item but does match a melded source, it upgrades that source as
--source would. When it matches both, the item wins and a note names the
--source spelling.
Each upgrade is transactional: the new copy is built first and the old one is kept until the swap succeeds, so a failed upgrade leaves the previous version in place.
upgrade also:
- offers items a source added to an install profile
you enabled, and reports items that left one without removing them. This
runs on a plain
upgradeorupgrade <source>, not onupgrade <item>. - removes the installed items a source dropped, when the source declares
prune = true(see Remove the items you drop). Otherwise they stay installed untilmind prune. - re-runs a source’s install hooks when the source moved to a new commit, or its update hooks if it declares any. See Run setup with hooks.
- reports a rename when an item’s installed name changed (for example after a source added a namespace) and installs the new name before removing the old.
When the scope spans several sources, upgrade names each one before running
any hooks, even with --yes.
Sources that publish releases
A source that publishes semver releases is melded at its highest stable release and
follows a range (^1.4.2), not its default branch. recall shows the release
and range in each source’s header. upgrade moves such a source only to
releases inside its range, and shows version 1.4.2 -> 1.6.0 beside the
commit delta.
A new major is a breaking release. upgrade lists it and leaves it:
! owner/repo 1.6.0 -> 2.0.0 (breaking, not applied; take it with `mind upgrade --allow-breaking --source owner/repo`)
On a terminal it asks [y/N] for each one instead, showing the release’s tag
message when there is one. --yes never takes a breaking release. Accepting
moves the range to the new major (^2.0.0) and upgrades the source’s items.
Until then, recall marks the source “breaking release 2.0.0 available”. See
Follow release versions.
Refresh sources without upgrading
mind sync # fetch every source
mind sync acme # only sources whose name matches acme
sync updates the clones and catalogs, so probe and recall show what is
new, but installed items do not change. recall and probe mark installed
items that are out of date. sync exits non-zero if any fetch failed, after
saving what did succeed.
mind update is an alias for sync, not for upgrade. sync --upgrade still
works as shorthand for a sync followed by an upgrade, but plain upgrade
already syncs first.
Check for drift and broken links
mind introspect # report drift, broken links, unsynced sources
mind introspect --fix # recreate missing links
Drift means an installed item’s content no longer matches its source. Editing a
store copy by hand causes it, and so does a source that changed without an
upgrade. introspect --fix repairs links but never changes versions; use
upgrade for that.
Follow curators
If you melded a curated list of sources, mind curate applies the curator’s
own changes (new entries, re-pins, removals). sync and upgrade do not. See
Follow a curated collection.
Update the mind binary
mind evolve --check # is there a newer release?
mind evolve # download, verify, and replace the binary
mind evolve --to 0.29.0 # a specific version
See Install for how evolve verifies the download, and
Restricted networks for proxies and IT-managed binaries.
Automate it
mind upgrade --yes
A non-interactive run skips install and build hooks unless you pass
--accept-hooks. It runs code from the source, so use
it only for sources you trust. See Scripts and CI.
Auto-update
Auto-update syncs and upgrades version-pinned sources on its own, for the sources you allow:
mind config auto-update on # run at most once a day, when a session starts
mind meld owner/repo --auto-update # allow what the source declares
mind meld owner/repo --auto-update=off # stop
config auto-update on adds a SessionStart hook to each Claude lobe’s
settings.json that runs mind auto-update run --if-stale 1d --background.
--every 12h changes the interval and off removes the hook. For another
harness, schedule mind auto-update run --if-stale 1d from cron.
A source runs at the level you allowed with --auto-update (nothing until you
do), capped by your managed policy’s [sources].auto-update, if any. A
maintainer’s [source].auto-update is a request: it sets what a bare
--auto-update allows, and melding a source that declares one on a terminal
asks whether to allow it. Changing it never changes your level.
compatible takes releases inside the range. breaking also moves to a new
major once the maintainer recommends it with pin-version. recall shows each
source’s level.
A run never prompts. A source whose move would run a hook is left where it is
until you run mind upgrade. A source that declares prune = true has the
items its new release dropped removed by the run. The next recall or
upgrade prints a one-line summary of what auto-update did, including how many
items it pruned, and ~/.mind/auto-update.log keeps the history, one line per
pruned item.