# Update axuse — instructions for the AI agent

The user asked you to update their installed axuse (https://ax-use.com; source: https://github.com/ctoldigital/axuse). Assume they are not technical. Perform the work with your local tools, explain the choices and clicks they need, and never ask them to open a terminal or type commands. This request authorizes the axuse update; ask only for missing choices, permissions your host actually requires, or actions outside that scope.

## 1. Find the existing installation and preserve its setup

- Identify the OS, the current MCP host, its registered axuse command/arguments/environment, and the actual installation path. Check for a Claude `.mcpb` desktop extension as well as a source installation. Do not clone another copy and leave the host pointing at the old one.
- Read the agent's saved axuse preferences: selected browser/instance and executable, default profile display name and directory key, extension vs CDP, persistent `profile_dir`, and optional desktop control. Inspect only profile metadata if needed; never read or display cookies, tokens or passwords. Keep these choices. Ask only if they are missing or conflict; follow the discovery steps in https://ax-use.com/install.md when necessary.
- Identify browser-extension registrations, installed plugins and any custom paths. Back up the axuse MCP entry and affected settings before changing them. Preserve other MCP servers and unrelated settings.
- If multiple axuse copies exist, determine which the current host actually uses. Ask which to update only if the intended installation remains ambiguous. Do not update unrelated repositories.
- If you cannot run local commands or access the installed extension, explain that limitation. Give the user the Claude download route below or a handoff for a local MCP-capable agent, including their existing preferences. Do not claim an update happened.

## 2. Update the installed package

### Claude desktop extension (`.mcpb`)

1. Download https://ax-use.com/download/axuse.mcpb and open it with local tools, or give the user the clickable link and ask them to double-click the file in Downloads.
2. Guide them through Claude's extension installation/update UI. Preserve existing axuse settings; do not uninstall the old extension or erase its data as a prerequisite. If the UI reports the same version, say so rather than claiming a newer release was installed.
3. Locate the updated bundle's actual `server` folder if its browser bridge needs re-registering. Bundle paths can change; do not assume the old extension directory is still valid. Claude includes its runtime, so do not install Node.js unnecessarily.

### Source installation / other local MCP hosts

1. Check the registered Node runtime against the repository's current engine requirement (currently Node.js 22+). Update the runtime only if needed and approved; preserve other applications using it.
2. For a Git checkout, inspect the working tree, branch and configured upstream/remote. Confirm it is the expected axuse source. Fetch the intended upstream and use a fast-forward-only update. Record the old and new commit IDs. Preserve local modifications; never use a hard reset, clean, force checkout, automatic stash, or discard custom plugins to make the update pass. If the checkout is modified or diverged and prevents a safe update, explain the specific issue and ask how to preserve it before proceeding.
3. For an archive installation, download the official source archive to a staging directory. Preserve a rollback copy, then replace only axuse application files. Keep custom plugins, licenses, settings, persistent profiles and user data; do not overwrite the entire installation blindly.
4. Keep the MCP command pointing at the intended updated installation. If its path must change, update only the axuse entry using the current host's supported MCP configuration method. axuse's open core has no npm dependencies; do not install unrelated packages.

## 3. Refresh the browser connection without changing profiles

- If the user uses the browser extension, run `node <updated-folder>/src/cli.js bridge install --browser <selected-browser>` to refresh its native-host registration. Supported identifiers include `chrome`, `edge`, `chromium` and `chrome-for-testing`; use the identifier matching the existing instance.
- In the selected profile, open `chrome://extensions` (Chrome/Chromium) or `edge://extensions` (Edge) and click **Reload** on **axuse bridge**. If the extension folder moved, guide the user to load the updated installation's exact `bridge/extension` directory using **Developer mode → Load unpacked**, replacing the stale axuse entry as needed. Do not install it into a different profile.
- Keep axuse enabled in only the intended running profile: the bridge has one active connection and does not automatically pin profiles. Run `node <updated-folder>/src/cli.js bridge verify`; a connection alone does not prove that the correct profile is active.
- If the user uses a separate CDP profile, preserve its absolute `profile_dir` and selected executable. Do not point it at the daily browser's data directory or substitute a fresh signed-out profile.
- Keep the existing desktop-control choice. On macOS, check Accessibility and Screen Recording only if desktop control is enabled or a related error appears. A changed host path may need its permission granted again in **System Settings → Privacy & Security**; guide the actual prompt rather than resetting permissions broadly.

## 4. Restart and verify the update

1. Save the preserved preferences and any remaining steps in the host's persistent instructions/memory. If unavailable, give the user a short handoff to paste after restarting. Do not store secrets.
2. Tell the user to fully quit and reopen their agent app or restart its CLI session so the updated MCP process loads. A supported MCP reload can be tried first; a new chat alone may not reload it. If this interrupts the task, report “Updated on disk; verification pending after restart” and resume afterward.
3. Run `node <updated-folder>/src/cli.js doctor` with the intended environment when accessible. Then use the reloaded **axuse** tools to open https://example.com with the preserved backend/profile, read the page title, and confirm that the tab appears in the intended profile. Do not count a fresh-profile doctor test as proof of the saved profile connection.
4. Report the version/commit before and after where available, browser/profile retained, extension status and actual test result. If anything fails, report the exact blocked step; preserve the rollback copy and offer a targeted recovery. Do not claim completion before the reloaded tools work.
5. Give the user a first task:

   > Use axuse to visit google.com and find the latest stock price of Apple (AAPL). Include the currency, the quote's timestamp, and the source link.

Do not remove browser profiles, cookies, saved logins, vaults, plugins or licenses during an update. Do not use sudo or administrator rights without permission. Help: dev@ax-use.com.
