Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

rename browser harness -> use except urls

Laith Weinberger425bcb8de35f
diff --git a/browser_use/skills/browser_use.py b/browser_use/skills/browser_use.py
index 2fd43076c..9b364adca 100644
--- a/browser_use/skills/browser_use.py
+++ b/browser_use/skills/browser_use.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+import re
from importlib import resources
from pathlib import Path
@@ -40,11 +41,8 @@ def as_browser_use_skill(text: str) -> str:
)
body = body.replace('# browser-harness', '# Browser Use', 1).replace('# Browser Harness', '# Browser Use', 1)
- body = body.replace('`browser-harness`', '`browser-use`')
- body = body.replace('browser-harness <<', 'browser-use <<')
- body = body.replace('browser-harness --', 'browser-use --')
- body = body.replace('browser-harness auth', 'browser-use auth')
- body = body.replace('browser-harness doctor', 'browser-use doctor')
+ # Rebrand every mention except repo URLs (github.com/browser-use/browser-harness/...)
+ body = re.sub(r'(?<!/)browser-harness', 'browser-use', body)
body = body.replace('Browser Harness', 'Browser Use')
frontmatter_text = '\n'.join(lines)
return f'---\n{frontmatter_text}\n---\n{body}'