# Update the plugin

Keep LeoPrevent current in each coding agent, and turn on automatic updates where the agent supports them.

When a newer version is available, LeoPrevent tells you on your next prompt, with how to update in your agent. In Claude Code in the terminal it reads:

```output
⚠️ Ask Claude to "update the LeoPrevent plugin". LeoPrevent <latest> is available, you're on <current>. Or run `/plugin marketplace update leotrace` and update leoprevent in `/plugin`.
```

In other agents, the first sentence names that agent's own update step.

Your connection and licence key survive every update.

## Update in your agent

**Claude Code terminal**

Open `/plugin`, refresh the `leotrace` marketplace, then update **leoprevent**.

To update automatically, open `/plugin`, go to the **Marketplaces** tab, select `leotrace`, and turn on auto update. Claude Code then checks at session start and prompts `/reload-plugins` when a newer version is available.

**Claude desktop app**

Open **Customize > Plugins > Browse > Code**, open the `leotrace` menu, and select **Check for updates**. Turn on auto update from the same menu to get updates in the background. An update is used from the next session.

**Claude Code in VS Code**

In `/plugins`, refresh the **leotrace** marketplace, update **leoprevent**, then start a new conversation.

**Codex**

```bash
codex plugin marketplace upgrade leotrace
```

```bash
codex plugin add leoprevent@leotrace
```

Open a new session, then trust any changed hooks in `/hooks`.

**GitHub Copilot**

Open the Command Palette, select **Chat: Update Plugins**, then reload the window.

**Cursor**

Pull the source and copy the package again, as in [Install in Cursor](https://help.leotrace.io/install-cursor/), then reload Cursor.

**Devin CLI**

```sh
devin plugins update leoprevent
```

Start a new session afterwards.

**Hermes Agent**

Refresh the source and copy the package and commands plugin again, then restart Hermes and start a new session.

```sh
git -C ~/.hermes/leoprevent-source pull --ff-only
```

```sh
cp -R ~/.hermes/leoprevent-source/hermes/leoprevent/. ~/.hermes/leoprevent/
```

```sh
mkdir -p ~/.hermes/plugins/leoprevent
cp -R ~/.hermes/leoprevent/commands-plugin/. ~/.hermes/plugins/leoprevent/
hermes plugins enable leoprevent
```

## Claude Code on the web

The setup script installs the latest version whenever the environment is rebuilt. To update sooner, edit the setup script or the allowed domains, which forces a rebuild.

## Check it worked

The update notice stops appearing, and **Plugin setup** in the dashboard shows your installation as **Live** rather than **Update available**.

Source: https://help.leotrace.io/update-the-plugin/ (updated 2026-11-19)
