Upgrading
A native install takes patch releases of its own minor version by itself, and jevlin upgrade installs any newer release, a new minor included: the release is downloaded from the project's GitHub releases, its signature and checksum verified, and the new binary run before and after it is installed. An npm install is npm's to update.
The daily check
Once a day, when Claude Code, Cursor, Codex, opencode or Pi starts a session or, in all but Pi, finishes a turn (Codex only on macOS and Linux, since no hooks are written for it on Windows; opencode also when its plugin loads), Jevlin checks the project's GitHub releases for a newer one. A native install then installs a patch release of the version you have (0.8.0 to 0.8.1) the same careful way jevlin upgrade does: signature and checksum verified, the new binary run before and after, the old one kept as jevlin.previous, nothing else touched. A new minor release (0.9.0) is only recorded, and jevlin status and jevlin doctor say so, because before 1.0 a minor release may change what the installation must hold: install it with jevlin upgrade. The check asks only for the latest release, so once that is another minor it finds no later patch of this one; jevlin upgrade -version X.Y.Z installs one by name. The check contacts nothing but GitHub and sends no credential.
To be told instead, or to turn the check off, add to your config:
[update]
mode = "notify" # or "off" to stop the check; the default is "apply"
Under notify, jevlin status and jevlin doctor say a release is available and give the command that installs it. The default installs a release nobody on this machine has looked at, on the strength of the project's release signature, checked against a key built into the copy you already have; choose notify where you would rather pick the moment yourself. An npm install is never replaced this way; the check only notes that a release exists, and jevlin status and jevlin doctor tell you to run npm's command.
jevlin status says when it last checked and what it found. jevlin doctor's up to date line says the same, and says so when the check has not run for three days. That usually means no agent with the hooks has been opened, or that your agents' hooks reach the network through a proxy on this machine, where no check is started: Codex's sandbox does that, and a check from inside it would break the Codex command running. Restart open agents after an upgrade.
If a release misbehaves, jevlin upgrade -rollback puts the previous binary back, and the daily check then leaves the release you rolled back from alone: it installs the next newer one, and jevlin upgrade by hand installs any release you ask for and lifts the hold. If an automatic upgrade ever fails so badly that the old binary could not be put back, jevlin status and jevlin doctor say so and list the copies left beside the binary, none of them deleted; reinstall from the releases page or put one back by hand, and no automatic check runs until jevlin upgrade succeeds.
The daily check arrived in v0.4.0, telling only; v0.4.1 signed releases and made apply the default. A copy on v0.4.0 keeps that release's default and only tells you about newer ones until jevlin upgrade has installed one. An older Jevlin refuses a config that names the [update] key, as it refuses any key it does not know, so add it only once v0.4.0 or later is installed. See the changelog.
By hand
jevlin upgrade # the latest release
jevlin upgrade -version X.Y.Z # exactly that release, never an older one
jevlin upgrade -rollback # put back the binary the last upgrade replaced
npm install -g @jevlinsearch/jevlin@latest # an npm install is updated with npm
upgrade installs the latest release, a new minor included, and downloads only from the project's GitHub releases, checks that checksums.txt is signed by the project's release key and that the download matches it, and runs the new binary before and after installing it. A release without that signature is refused. The release that first carried the check, v0.4.1, was installed by the copy before it, which checked the checksum only; every upgrade after it checks the signature too. It keeps the old one as jevlin.previous; -rollback swaps back with no network. It refuses an npm copy and a development build, takes at most three minutes, and never touches your registration or config.
The new binary then rewrites the skills and hooks this installation set up, and for Codex the block in ~/.codex/config.toml. An earlier version's block, which opened Codex's network to every host, becomes the permission profile without a question; a setting of your own that the profile would change is left and printed for you to change by hand. If that step fails, the upgrade still succeeded, and the message gives the command that finishes it. Restart open agents.
0.8.1 to 0.8.3: nothing needs to run after installing. Each reads every configuration the release before it reads, and changes none. A native upgrade re-renders the skills, hooks and, from 0.8.2, the opencode plugin of the agents this installation set up, which is what makes it load on opencode 2; after an npm update, jevlin agents install does. An existing config keeps its turn end as it was: off unless it says turn_end = true.
Rolling back to 0.8.0 from a config that sets trace under [search]: remove that line first. 0.8.0 does not know the key and refuses the config.
0.8.0: nothing needs to run after installing. 0.8.0 reads the same configuration as 0.7.0. A native upgrade rewrites the skills and hooks of the agents this installation set up, and after an npm update jevlin agents install does.
From 0.6.x
0.7.0 and later read only configuration format 1. After a 0.6.x install takes a newer release, every command that reads the config, search included, stops with "this configuration is from an older jevlin; run jevlin setup" until you do; the hooks fail open, so your agents' other tool calls are unaffected. A native 0.6.x install with automatic updates on, the default, can take 0.7.0 or later by itself at its daily check, so expect that message after it. On an npm install, run npm install -g @jevlinsearch/jevlin@latest first.
jevlin setup
Setup sets the old file aside as jevlin.toml.old (jevlin.toml.old.1 and so on if the name is taken), writes jevlin.toml in format 1 naming the directories and hosts the old one named, keeps your registration and key without registering again, and rewrites your agents' hooks and skills. A setting you changed by hand, such as turn_end or tier, you copy into the new file yourself, under its format-1 key; see Configuration. Files only the earlier version used are left where they are and never read; one of them may hold a key, so look before deleting any. See Removing and coming back.
Rolling back to 0.6.x. A release before 0.7.0 cannot read a format-1 config: rolled back, every command of that release fails with "unknown key(s)". From 0.8.0, jevlin upgrade -rollback says so instead of swapping: the config is format 1, which the release rolled back to does not read, the older configuration is where setup set it aside (jevlin.toml.old, or the highest-numbered jevlin.toml.old.N when that name was taken), and setup moved the key and registration beside the state directory. It names the two ways out, rolling back again or moving the older configuration and the key back by hand, and moves nothing itself. A rollback to 0.7.0 or later says nothing, since that release reads the file.
When it fails
The first word after upgrade: says what to do:
| word | meaning |
|---|---|
retry | Try again later; nothing changed. A slow first run, such as a virus scan, ends here. On Windows it is also the answer when an older Jevlin or agent process still runs jevlin.exe.previous, and the message says so: your binary was put back; close that process and run upgrade again. |
release_invalid | The release itself is wrong. Do not retry blindly. |
ownership | This copy is not one upgrade may replace, such as an npm install. |
filesystem | Fix the permissions or the file it names. |
lifecycle_busy | Another setup or upgrade is running. |
refused | An older version was asked for. |
manual_intervention | Putting the old binary back failed too. Every surviving copy is listed; none is deleted, and no automatic check runs until jevlin upgrade succeeds. |
After an upgrade
jevlin version # the version now installed
jevlin agents status # every agent's files are current
jevlin doctor # one line per check
From 0.7.0 on, running jevlin setup again is not required after an upgrade (moving from 0.6.x is the exception, above), but it is always safe: it keeps everything and updates its files in place. See Setup in detail. How the check records what it did, and where, is on Files and locks.