Upgrade Mash
このコンテンツはまだ日本語訳がありません。
Updating Mash keeps your settings and indexed chats. Check the release notes, save a backup, and use your usual install method to update. If you just need to back up or recover a chat, go to Make a portable backup or Restore a separate copy.
Upgrade an existing installation
Section titled “Upgrade an existing installation”If you publish history across machines, read the shared index steps before updating.
-
Pause indexing and close connected agents. Stop any
mash index --watchjobs and let active indexing finish. Stop a dashboard running in a terminal with Ctrl-C. -
Back up with the version you have. Keep its executable or release archive until the new version is working. Export to a new directory you can keep private.
Terminal window mash --versionmash export "/absolute/path/to/new-backup" -
Install the new version using your usual install method. Run
mash --versionagain to check that your shell finds the updated executable. -
Update Qdrant if the release needs a newer one. Rerun
mash qdrant install; it upgrades the service Mash installed and leaves its data alone. If you run Qdrant yourself, upgrade it on the same storage. -
Refresh the index. If a supported database format needs upgrading, this command does it before indexing. Read-only commands report that the upgrade is needed.
Terminal window mash index -
Check search and reopen Mash. Check that
mash statusreports"ready": true, then search for a word from an indexed chat.Terminal window mash statusmash search 'a word you remember' --local --intent exact-mentionRestart connected agents and any watchers you stopped. Run
mash dashagain for the local dashboard. For a remote dashboard, rerunmash dash remotewith the same options to start its service from the new executable. If an agent has trouble finding Mash after the upgrade, check the plugin and agent connection.
Mash keeps chat and message IDs and reuses compatible search data. The indexing pass also picks up history saved since the last pass.
The desktop app updates itself
Section titled “The desktop app updates itself”When a newer version exists, the Mash app shows a banner across the top of its window that names the version. Nothing is ever installed until you choose to update; Later puts the banner away until the app next starts or a newer version appears.
On macOS, and on Linux when you run the AppImage, the app downloads new
versions in the background, and the button is Update and restart. It
installs the update, upgrades the index if the new version needs it, and
restarts Mash’s background services that run the app’s mash. The menu bar
menu offers the same update as Mash (version) Is Available — Update and
Restart, which does what the banner’s button does, and Check for
Updates… checks now and brings the banner forward when there is a newer
version. If the update cannot be installed, the banner says why and offers
Download instead.
Where the app does not update itself, the button is Download update,
which opens the downloads page; install the new version over the old one.
For the apt package the banner shows the apt command instead.
- Updates in the same menu chooses Stable, the published releases, or Main (latest build), every build of the development branch. The choice decides only which versions you are offered.
- If you installed the
mashcommand with Install Command-Line Tool…, or the Windows app installed it, it runs the app’s ownmashand updates with the app. Amashyou installed another way (the install script, Homebrew, Scoop) updates separately; the app tells you when the two differ and, on a Mac, offers to use its own everywhere. - If a new version cannot start, choose Go Back to Previous Version in the menu.
- The apt package
mash-desktopis updated byapt, together withmash-cli. On Windows, install the new version over the old one.
Install the new version
Section titled “Install the new version”Choose the method you already use. For the shell or PowerShell script, rerun
the binary-only installer command
using the same install directory. If you set MASH_VERSION, change it to
the release you want.
| Installed with | Update command |
|---|---|
| Homebrew | brew update && brew upgrade mashhq/tap/mash |
| apt | sudo apt update && sudo apt install --only-upgrade mash-cli |
| Scoop | Run scoop update, then scoop update mash. |
| mise | mise upgrade github:mashhq/mash |
| cargo-binstall | Rerun the prebuilt install. |
| Source | Build the revision you want, including the web files if you use the dashboard. |
If you installed the first release’s Debian package under the name mash,
follow the apt install steps to
switch to mash-cli. If you pinned an exact version in mise, change the pin
to the version you want.
If mash --version still shows the old version, check which executable your
shell finds with command -v mash on macOS or Linux, or
(Get-Command mash).Source in PowerShell. Use the updated executable’s path
for the checks above.
If the index format changes
Section titled “If the index format changes”mash --version-info prints the index format the new executable writes
(silver_schema) and the oldest one it can upgrade (silver_schema_min).
If mash index reports a format older than that range, see
Replace an index that cannot be upgraded.
If it reports a newer format, use the executable that wrote it or a compatible
newer version. Restart any agents, dashboards, or watchers still running the
old executable.
Saved open questions are deleted. Upgrading an index written before open questions were retired as a kind of saved record removes them, with their revisions and the links that resolved them. Your export still contains those open questions. Keep the version that wrote it if you need to read them later.
Saved facts are deleted. Mash memory keeps decisions and preferences. Upgrading an index written before facts were retired removes them, with their revisions, evidence and links; decisions and preferences stay. An export from an earlier version that holds facts can no longer be imported. Upgrade the shared server and every machine together: an older machine’s facts are refused.
Notes need the same release everywhere. Upgrading an index adds notes as a kind of saved record and changes no existing record. A machine or shared server on an earlier release refuses notes, so upgrade them together.
Upgrade a shared index
Section titled “Upgrade a shared index”If you share history across machines, upgrade the server and every computer to the same release together. Mismatched releases refuse to synchronize; that never requires deleting or rebuilding search data.
Back up the server’s storage and configuration before upgrading it.
mash export on a computer backs up that computer’s index. On the server,
upgrade Qdrant if needed, then start the new mash-server. It upgrades each
machine’s database as it opens it. Resume shared indexing after the server
and its publishing computers are on the same release.
Make a portable backup
Section titled “Make a portable backup”Export your indexed chats to a private directory.
Restore without replacing your current history
Section titled “Restore without replacing your current history”Check a restored copy in a separate database.
Replace an index that cannot be upgraded
Section titled “Replace an index that cannot be upgraded”Use this when Mash reports an unsupported older index. Ordinary indexing cannot upgrade it; keep the old executable and the old index until the replacement works.
-
Export with the version that wrote the index, then import with the new version at a separate path. Add
--db PATHto the export if the old index is outside its default location:Terminal window /path/to/old/mash export "/absolute/path/to/new-backup"/path/to/new/mash import "/absolute/path/to/new-backup" --into "/absolute/path/to/staged.sqlite3" --keep-identity/path/to/new/mash --db "/absolute/path/to/staged.sqlite3" list-chats --local --limit 5Some older backups cannot be imported either. If import fails, keep the original data and executable.
-
--keep-identitymakes the replacement continue as the same machine on a shared index. Stop the old dashboard, watcher, and agent connections before switching. Only the replacement should publish after the switch. -
Choose the path you’ll use for the replacement. You can use the staged database where it is. To use the original path, first move the old database, its
.attachmentsdirectory and any-wal,-shmor-journalfiles next to it to a safe location. Then move the imported database and its accompanying files into place together. Renamestaged.sqlite3.attachmentsand any SQLite sidecar files to match the replacement database’s name. -
Build search data at the final path and verify that the chats are searchable. Replace the example path with the one you chose.
Terminal window mash --db "/absolute/path/to/replacement.sqlite3" index --rebuild-local-views --fullmash --db "/absolute/path/to/replacement.sqlite3" statusmash --db "/absolute/path/to/replacement.sqlite3" search 'a word you remember' --local --intent exact-mention -
For a custom path, keep passing
--db, including in your agents’ MCP setup. Restart your agents and watchers.
Other changes you may meet
Section titled “Other changes you may meet”Coming from Qdrant 1.19
Section titled “Coming from Qdrant 1.19”Mash needs Qdrant 1.20 or later. Before running mash index with the new
Mash, stop the 1.19 service and start 1.20 on the same storage.
The first index pass adds a word-search index to your existing search
data without rebuilding it or recomputing embeddings; until then, search
reports that the views need upgrading. On a shared server, starting the new
mash-server adds the index.
Storage opened by Qdrant 1.20 should not be opened by 1.19 again. Back up first if you may need to go back.
Settings that are no longer accepted
Section titled “Settings that are no longer accepted”views.query.experimental_gpu_reranking: remove it. Reranking runs on the CPU. Nothing needs reindexing and no new models are needed.- Old
[embeddings]remote-provider settings: replace them with the configuration in embedding inference. redaction.remote_embeddings: remove it, from node and server configuration.
Changing the embedding model
Section titled “Changing the embedding model”Vectors from the local model you already use stay valid across upgrades. If
you change to a different embedding model, run mash models install, then
rebuild local search data:
mash index --rebuild-local-views --fullOn a shared index, change the server and all computers together. Install the models on the server, then start it once with:
mash-server --server-config PATH --models-dir PATH --activate-views --replay-viewsThis rebuilds the server’s search data from the history it already holds; the history itself is not replaced. Back up first and expect shared search to be unavailable during the rebuild.