# Sealights Agent Updates

Using an old agent version is a potential source for a range of unexpected issues on your apps that otherwise might have already been fixed in newer versions.

The benefits of using an up-to-date agent include, apart from the obvious numerous bug fixes, performance improvements, and updated dependencies with security patches.

Therefore, it is required that you update your apps periodically to use our latest agents version.

This article describes how to make it happen.

***

## Instructions <a href="#ud83d-udcd8-instructions" id="ud83d-udcd8-instructions"></a>

Go to **Settings > Agent** **Versions** and make sure you choose the latest version from the drop-down list for the relevant agent types

{% hint style="warning" %}
If you download the agents/plugin from an **internal repo**, you must make sure the updated version does exist there **before** changing the version number
{% endhint %}

<figure><img src="/files/prbBHlAv2gdCH5PaUpcX" alt=""><figcaption></figcaption></figure>

### For **Java Agents**

If you are running with the parameter `-Dsl.enableupgrade=false` change it to 'true' or drop it completely.

Alternatively, if you wish to avoid automatic updates to the agent you can manually download **and replace** the local agent’s files from <https://agents.sealights.co/sealights-java/sealights-java-latest.zip>

{% hint style="info" %}
You can consult a sample on our dedicated page [Keeping Your Agent Updated](/knowledgebase/setup-and-configuration/troubleshooting-faq/java/keeping-your-agent-updated.md)
{% endhint %}

### For **Nodejs Agent**

Update your package.json file to use the latest slnodejs version **OR**

run via NPM install - `npm install slnodejs -` will use the latest version

### For **.NET Agents**

If you are using VSTS/ADO your agents will update according to the version in the Agent Versions Settings page in the drop-down list (see #1)

Otherwise, you will need to manually install the latest version.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/others/sealights-agent-updates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
