Files and locks
What lives under ~/.jevlin (or JEVLIN_HOME) on the default layout, what writes each file, and what deleting it would cost.
Files
| path | what it is | written by | safe to delete? |
|---|---|---|---|
jevlin.toml | The config. | setup | No. |
credentials.json | The search key, owner-only, and the router and agents API it is sent to. Refused if a symlink or readable by others. | connect, login | Only to forget the key: login -forget. |
registration_pending.json | A registration the platform answered that is not yet saved; finished by the next connect. | connect | No: it holds the new key. |
claim.json | The claim link and code for this installation's agent, while it is unclaimed. | connect | Yes; the next jevlin connect mints a fresh link, which ends the old one. |
search-default | agents prefer's choice. | agents prefer | Yes; the skill's default returns at the next install or upgrade that renders it. |
search-tier | agents tier's choice: the tier a search carries when the request names none. | agents tier | Yes; [router] tier, then the router's default, returns. |
search-fast-set | agents tier fast <preset>'s choice, sent as fast_set. The skill never sets it. | agents tier | Yes; agents tier default removes it. |
requests/ | Claude Code only: a search or fetch request holding a ' or a $, written by the agent with its Write tool and read by the call with --stdin < <file>. Nothing prunes the folder; uninstall -purge-state removes it. | the agent | Yes, with no search running. |
update_check.json | The daily release check's record: when it ran, what it found, and a release a rollback holds. | upgrade | Yes; the next agent session checks again, though a rollback's hold is forgotten. |
bin/jevlin | A native binary from the installer, and jevlin.previous after an upgrade. Setup never writes it. | the installer, upgrade | Through uninstall -binary. |
state/ | The agent registration (agent.json), the trace key (trace.key), and connect's lock and resume stamp. | setup, connect, search | No: it is your registration. |
sessions/ | Lineage files, one per workspace or Cursor conversation, and the hooks' window state; with turn_end on, an empty mark per searched turn and a turn's record until it is sent. A record whose sender never ran, after a sleep, a shutdown or an upgrade mid-turn, is removed by a later search once it is more than an hour old. | hooks, search | Yes, with no agent running; the hooks write them again. |
setup-env.json | Windows only: what setup changed in your user environment. | setup | No; uninstall reverts from it. |
Locks
| lock | coordinates | safe to delete? |
|---|---|---|
~/.jevlin.lifecycle.lock | The gate setup and connect pass, and that upgrade and uninstall hold while they run. | Yes, when no jevlin command runs. |
setup.lock | One setup or upgrade at a time. | Yes, when none runs. |
state/connect.lock | One connect at a time. | Yes, when none runs. |
bin/<binary>.update.lock | One upgrade of that binary at a time. | Yes, when none runs. |
update_check.lock | One release check at a time for the installation, whichever copy runs it. | Yes, when none runs. |
uninstall lists leftover .lock files, which are safe to delete once nothing runs.
The daily release check
The hooks start it, per host:
| host | starts the check at |
|---|---|
| Claude Code | session start and stop |
| Cursor | session start, stop and end |
| Codex | session start and stop (macOS and Linux; no hooks are written on Windows) |
| opencode | plugin load, session start and idle |
| Pi | session start |
| Hermes, an agent set up by hand | none |
For opencode, the plugin runs hook start when it loads, when a top-level session is created and at each of its idles (opencode reports one idle as two events, so the second start finds the check not due); for Pi, the extension runs it when a session starts. Each reads update_check.json, beside credentials.json, and when no check has run in the last day starts jevlin upgrade -auto as a detached child; the hook itself contacts nothing. A hook running inside an agent's sandbox starts no check: one whose environment carries Codex's sandbox markers, or a proxy on this machine's loopback, the only route out of Codex's sandbox, because the check's request would go through that proxy to a host Codex's profile does not list and fail the Codex command that is running.
The child takes the installation's check lock in one attempt, records the check before it touches the network (a check that cannot write its record makes no request), and asks the project's GitHub releases for the latest version, with no credential. Under [update] mode = "apply", the default, it installs a patch release of this copy's own minor through the same verified transaction as jevlin upgrade, taking the installation's own locks only then and in one attempt: when a setup, uninstall or upgrade holds them it records lifecycle_busy and checks again the next day. A new minor it only records, as available, for jevlin upgrade to install. Under "notify", or for a copy npm installed, which is never replaced, it only records that a newer release exists. A word mode does not know counts as notify, and doctor names it. It never moves to an older release, never installs a release a person rolled back from, and never replaces a binary that belongs to another installation than the config that started it.
The record is about one binary, the resolved path it names, at the version its outcome left there: the release an upgrade installed, the one a rollback restored, the one a check ran as. A record about another binary or version counts as none. Its outcome is started, current, available, upgraded (with refresh = "failed" when the agent integrations could not be refreshed afterwards), rolled_back, failed with the failure word upgrade would print, or not_release for a development build; status and doctor read it and nothing else.
Two records outlast a day because a person has to act on them. jevlin upgrade -rollback holds the release it left: no check installs that release, or an older one, again; a newer one it does, and jevlin upgrade by hand lifts the hold. An automatic replacement that could not put the binary back (manual_intervention) is never overwritten by a check: status and doctor list every copy that survives beside the binary, read from the binary's directory, until a person's jevlin upgrade succeeds; none is deleted. A record dated in the future, from a clock that was set back, counts as due, and so does one that found a release under "notify" once the mode is "apply" on a native copy. Deleting the record is safe: the next agent session checks again, though it also forgets a hold. See Upgrading.