Skip to main content
Glama
README.md
# remobro

Let AI agents drive your real browser: Claude Code, Codex, Gemini CLI, or any MCP client.
They work in their own background tabs, next to you, using as few tokens as possible.

Works with Zen, Firefox, Chrome, Brave, Edge and Chromium on Linux, several at once.

## Install

```bash
curl -fsSL https://github.com/lazyspam/remobro/releases/latest/download/install.sh | bash
```

Zen/Firefox: click **Add** when it asks. Chrome & co: the installer opens `chrome://extensions`;
turn on **Developer mode** → **Load unpacked** → pick `~/Downloads/remobro/chromium`.
Remove with `install.sh --uninstall`.

## Updates

`remobro update` installs the latest release: the command, the bridge, and the Chrome extension
(which reloads itself). Zen/Firefox update the extension on their own. The bridge checks once a day
and shows **↑** on the toolbar icon when there's something new; `remobro update --auto on` lets it
install updates by itself.

## Use

Ask your agent: *"use remobro to check the checkout flow on shop.example"*.

- Agent tabs glow in the agent's colour, grouped per task. Your own tabs are never touched.
- A small island at the top shows what it's doing. ✋ takes the wheel, ▶ gives it back; click the island to collapse or expand it.
- For logins, captchas or anything risky (buying, sending, deleting) it asks you first.

## Testing websites

Every run is recorded. Export it and replay it later with no AI and zero tokens:

```bash
remobro replay ~/.local/share/remobro/sessions/<id>/test.json
# PASSED 8 steps in 4.1s
```

Agents can add assertions (`expect`), and console errors or failed requests show up in every result.

## Layout problems

Something looks off? **Alt+click** the element in an agent tab and tell your agent
*"this isn't aligned"*. It inspects that element like a layout inspector: exact box, margins and
padding, how it lines up with its siblings (`left: 3 at 37px, off by a little: 6 +3px`), uneven gaps,
content that sticks out or gets clipped, and what covers a point.
Agents can also *see* the layout: `look(bounds=True)` is a screenshot with every box outlined,
margins in orange and padding in green, like "Show layout bounds" on Android.

## DevTools

Agents can use the Chrome DevTools Protocol on their tab: run JavaScript, watch network and console,
read response bodies, measure performance (`devtools("Network.enable")`, `devtools("events")`, …).
In Zen/Firefox only running JavaScript is available.

## How it saves tokens

The agent reads a page in the cheapest way that answers its question: a short outline first, then
specific elements or text, and a screenshot only when needed. Every action reports what changed, so it
rarely has to look again:

```
✓ click 3 "Login"
navigated → https://example.com/secure
notice "You logged into a secure area!"
```

## Development

```bash
uv sync
npx web-ext run --firefox=flatpak:app.zen_browser.zen    # try the extension in Zen
git tag v0.3.0 && git push --tags                         # release + sign
```

`extension/` is the browser side, `src/remobro/` the MCP bridge.

GitHub Actions builds everything. Every push to `main` and every pull request runs CI, which lints the extension, builds the Firefox and Chromium zips (download them from the run's artifacts) and smoke-tests the CLI and binary. Pushing a `v*` tag builds, signs and publishes the release.

## License

[MIT](LICENSE)