Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

docs(agents): say how a Codex run is kept to the browser, why it runs without config.toml, what a follow-up carries on Claude Code and Codex, and that Codex now reads images

Shahriar0c6b6253f0fb
diff --git a/docs/guide/agents.md b/docs/guide/agents.md
index 4ca7617..27c92f6 100644
--- a/docs/guide/agents.md
+++ b/docs/guide/agents.md
@@ -65,7 +65,7 @@ agents cannot resume each other's sessions, so the next instruction starts a fre
| Install | `npm i -g @anthropic-ai/claude-code` | `npm i -g @openai/codex` | [antigravity.google/docs/cli/install](https://antigravity.google/docs/cli/install) | `uv tool install mistral-vibe` | `curl -fsSL https://x.ai/cli/install.sh \| bash` | `curl https://cursor.com/install -fsS \| bash` | `npm i -g @qwen-code/qwen-code` | `npm i -g opencode-ai` |
| Default model | `sonnet`, the newest Sonnet | the CLI's own | the CLI's own | the CLI's own | the CLI's own | the CLI's own | the CLI's own | the CLI's own |
| Effort names | `low`…`max` | `low`…`xhigh` | `low`…`high` | none — set `thinking` in Vibe's own config | `low`…`xhigh` | none — put it in the model id, e.g. `claude-opus-4-8[effort=high]` | none — the model id is the only lever | a variant the model defines, e.g. `high` or `max` |
-| Kept off your machine by | a per-run tool allowlist plus an explicit deny list | a read-only sandbox (`sandbox_mode="read-only"`) | its own permission rules | a per-run tool allowlist — its shell and file tools are never loaded | a per-run tool list, approvals that refuse anything not granted up front, and a kernel sandbox that keeps its writes in its own folder | per-run deny rules, where a deny beats every allow; a kernel sandbox is asked for too but not depended on | `--safe-mode`, which drops every setting of your own, plus deny rules for the shell, the disk and the tools that reach either | a per-run agent whose rules deny every tool not named for it, so the model is never offered the shell, the disk or another server's tools |
+| Kept off your machine by | a per-run tool allowlist plus an explicit deny list | its shell and image viewer switched off, your `config.toml` left out, and a read-only sandbox (`sandbox_mode="read-only"`) | its own permission rules | a per-run tool allowlist — its shell and file tools are never loaded | a per-run tool list, approvals that refuse anything not granted up front, and a kernel sandbox that keeps its writes in its own folder | per-run deny rules, where a deny beats every allow; a kernel sandbox is asked for too but not depended on | `--safe-mode`, which drops every setting of your own, plus deny rules for the shell, the disk and the tools that reach either | a per-run agent whose rules deny every tool not named for it, so the model is never offered the shell, the disk or another server's tools |
All eight get the same system prompt, the same `browsentic` MCP server pointed back at the daemon,
and the same [approval gate](approvals.md). What differs is how well each one can be fenced off from
@@ -76,6 +76,21 @@ for exactly what each flag buys.
too old to understand them fails the run with an explicit "update it" message rather than running
uncontained.
+### Follow-up messages, on Claude Code and Codex
+
+Both keep the system prompt a conversation began with. Claude Code records it on the first request
+and sends that record on every resume (its `--system-prompt-snapshot`, on by default), and Codex does
+the same with its developer instructions. A later message that changes what the agent should know —
+an element picked with A-Eye, a skill attached from the picker, a different skill for the job, notes
+for the site you have moved to — would otherwise never reach it.
+
+So Browsentic carries what changed in the message itself: a short *instructions for this message*
+section ahead of your words, holding only the parts that differ from what the conversation already
+has, and naming any that no longer apply. A message that changes nothing carries nothing extra. After
+the daemon restarts it cannot know what a conversation holds, so the first follow-up restates the
+whole prompt once. The agent's prompt cache is untouched either way, because nothing that came before
+changes.
+
### Codex keeps the browser tools out of sight
Codex does not put an MCP server's tools in the model's list. They are deferred behind its
@@ -85,14 +100,35 @@ see — its own memory, or a web search — without ever looking at your browser
So a Codex run is given a section of prompt saying where its browser tools are and how to load them,
and it is told to read the page rather than recall it. Web search is switched off unless the run is
-[mapping a site](features/site-maps.md), and sub-agents, goal memory, connector apps and plugin suggestions
-are switched off for good measure.
+[mapping a site](features/site-maps.md), and sub-agents, goal memory, connector apps, plugins, image
+generation, Codex's own browser and computer use, and the list of your Codex skills are switched off
+for good measure. A code-mode model can still spawn sub-agents — nothing in Codex 0.155 turns that
+off — but they share the run's browser tools, so each of their actions still goes through the same
+approval gate and shows on the timeline.
+
+**Codex runs without your `config.toml`.** A `-c` flag merges into that file rather than replacing
+it, so every MCP server you gave Codex would start beside the browser — with its tools on offer and no
+approval gate in front of them — and settings on a `browsentic` entry of your own would land on the
+run's. Browsentic starts Codex with `--ignore-user-config` instead. Your sign-in still comes from
+`~/.codex`, and the `model` and `model_reasoning_effort` at the top of your `config.toml` still apply
+when nothing is picked in the popup. Profiles, custom model providers and everything else in the file
+do not reach a side-panel run.
+
+**It has no shell and no image viewer.** Both read your disk, and a browsing run has the page for
+that. Codex still offers its patch tool — nothing switches it off — and its read-only sandbox refuses
+every write. If a run ever reports a shell command or a changed file anyway, Browsentic stops it
+(`AGENT_UNSAFE`). The file analyst reading a text file keeps the shell, read-only; a picture is
+attached to its message instead of opened.
**Codex cuts a tool result at 10,000 tokens** by default, which a whole-page snapshot can pass.
Browsentic raises that to 25,000, the ceiling Claude Code puts on the same result. A code-mode model
also has to ask for it at the top of every `exec` script, which the prompt tells it to do. A result
past 25,000 is still cut, so the prompt asks for smaller reads too.
+**It does not say how full its window is.** Codex reports tokens only for a whole turn, added up over
+every request in it and every turn before, so the context card shows no count for it rather than a
+wrong one.
+
### Mistral Vibe is in beta
It needs nothing set up beyond `vibe --setup` (or `MISTRAL_API_KEY` in `~/.vibe/.env`). Browsentic
diff --git a/docs/guide/features/captcha.md b/docs/guide/features/captcha.md
index 4bf49b5..9c167b4 100644
--- a/docs/guide/features/captcha.md
+++ b/docs/guide/features/captcha.md
@@ -77,7 +77,7 @@ Two kinds are answered:
- **Pictures to tap** — hCaptcha's canvas challenges ("click the animal icon that is
different"). The answer is a set of points on the photograph.
-The analyst needs an agent that can look at images; today that is Claude Code. With another
+The analyst needs an agent that can look at images; today that is Claude Code or Codex. With another
agent, or when the analyst gives up (ten rounds, or the time budget), the result comes back as
`state: "challenge"` with the picture attached, and the agent driving the run answers it itself
by calling `page_solveCaptcha` again with `tiles`, `points` or `reload`.
diff --git a/docs/guide/features/files.md b/docs/guide/features/files.md
index b5c9554..f7bb24e 100644
--- a/docs/guide/features/files.md
+++ b/docs/guide/features/files.md
@@ -21,7 +21,7 @@ What it reads:
| --- | --- | --- |
| Text — CSV, JSON, Markdown, logs, code, anything in UTF-8 | 5 MB | every agent |
| PDF | 10 MB | Claude Code |
-| Images — PNG, JPEG, GIF, WebP | 5 MB | Claude Code |
+| Images — PNG, JPEG, GIF, WebP | 5 MB | Claude Code, Codex |
The bytes decide the kind, not the name: a PNG called `notes.txt` is read as an image. Anything else
— a ZIP archive, which Word, Excel and PowerPoint files are too, a program, audio or video — is
diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md
index b247310..5309579 100644
--- a/docs/guide/troubleshooting.md
+++ b/docs/guide/troubleshooting.md
@@ -69,6 +69,9 @@ Those three answer most questions. The daemon log also lives at `~/.browsentic/d
| Codex fails with "not logged in" | The daemon inherits no session | `codex login`, then retry |
| Codex answers about the page without opening it, or from a web search | Codex defers an MCP server's tools until the model searches for them, so a web search is the tool it can see; an older Browsentic also failed to switch that search off | Update Browsentic; the run now says where its browser tools are and switches web search off |
| Codex sees only part of a long page | Codex cuts a tool result over 25,000 tokens; an older Browsentic left its 10,000 default in place | Update Browsentic, then ask for less at a time: a smaller `maxPerKind`, or `page_extractText` group by group |
+| Codex in the side panel ignores a profile, a custom model provider or an MCP server from your `config.toml` | By design: a run starts Codex without that file, because its MCP servers would otherwise start beside the browser with no approval gate | Pick the model in the popup; the `model` and `model_reasoning_effort` at the top of `config.toml` apply when none is picked |
+| Claude Code or Codex stops with *could not start Browsentic's browser tools* | The browser tools the run was given did not start — often a daemon still running from files an update replaced | `browsentic restart`, then send the message again |
+| A follow-up on Claude Code or Codex ignores a pick, an attached skill or new site notes | Both keep the prompt a conversation began with, and an older Browsentic changed only that prompt | Update Browsentic; each message now carries what changed |
| Mistral Vibe: every action on a follow-up turn fails with `RUN_INACTIVE` | Vibe re-reads a resumed session from the folder it began in, and an older Browsentic wrote each turn to a folder of its own | Update Browsentic, then start a new conversation: one begun before the update keeps its first folder |
| Grok Build sits silent for minutes, then fails with *xAI did not answer* | The Grok account is rate-limited, as a free one is; Grok retries quietly before giving up | Wait, or upgrade the account |
| Cursor CLI fails with *Authentication required* | The daemon inherits no session | `cursor-agent login`, or set `CURSOR_API_KEY` |
diff --git a/docs/internals/guardrails.md b/docs/internals/guardrails.md
index 75597d0..57a46ad 100644
--- a/docs/internals/guardrails.md
+++ b/docs/internals/guardrails.md
@@ -341,7 +341,7 @@ type LocalTools = 'allowlist' | 'sandbox' | 'host'
| Agent | Mode | What that means |
| --- | --- | --- |
| **Claude Code** | `allowlist` | A per-run tool allowlist plus an explicit deny list. `Read` is denied for a browser run — it reads pages, never the disk |
-| **Codex** | `sandbox` | No per-run tool list; the read-only sandbox is the whole containment, **so the agent can still read any file the user can**. `features.multi_agent=false` is required too: a sub-agent is spawned outside the run's gate and reports nothing to the panel |
+| **Codex** | `sandbox` | No per-run tool list. `--ignore-user-config` keeps the user's `config.toml` out: a `-c` flag only merges into it, so `mcp_servers={}` cleared nothing and every server the file names started beside the browser (measured against 0.155.1). `features.shell_tool=false` and `features.view_image=false` take away the two tools that read the disk, for every model and every sub-agent; `--enable`, `--profile` and a later `features.*=true` are forbidden flags. Its patch tool has no switch, and the read-only sandbox refuses its writes. A `command_execution` or `file_change` in the stream ends the run with `AGENT_UNSAFE`. A one-shot reading a text file keeps the shell, read-only, **so it can read any file the user can**. `features.multi_agent=false` is required too; a code-mode model's own sub-agents cannot be switched off in 0.155, but they share the run's MCP connection, so their calls are gated and shown like the parent's |
| **Antigravity** | `host` | No tool list and no sandbox flag; its built-in tools are governed by the user's own CLI settings, so a sealed environment is the only containment Browsentic applies |
| **Mistral Vibe** | `allowlist` | `--enabled-tools` is the whole of what loads: Browsentic's MCP tools, plus web search and fetch on a research run. The shell and file tools never exist in the run, and `--auto-approve` is a forbidden flag |
| **Grok Build** | `allowlist` | A per-run built-in tool list, `--permission-mode dontAsk`, deny rules, and a kernel sandbox for writes. Reads are closed by the tool list and a `Read` deny rather than the sandbox, and MCP servers the user set up in Grok itself still load |
diff --git a/docs/reference/errors.md b/docs/reference/errors.md
index 0c8f053..774f20b 100644
--- a/docs/reference/errors.md
+++ b/docs/reference/errors.md
@@ -77,7 +77,7 @@ repeatedly: failures carry the *fix* in the message, and a failed tool call neve
| `AGENT_MISSING` | Runner | The chosen agent's binary is not on the *daemon's* `PATH`. Set `agents.<name>.bin` to an absolute path |
| `AGENT_NEEDS_PERMISSION` | Runner | Antigravity has no rule allowing Browsentic's MCP tools (`browsentic agent fix antigravity`), Grok Build or Cursor CLI is not signed in (`grok login`, `cursor-agent login`), Qwen Code has no model provider configured (`qwen`, then `/auth`), or OpenCode is signed in to no provider (`opencode auth login`) |
| `AGENT_UNUSABLE` | Runner | The CLI is present but cannot run — usually too old for the flags Browsentic passes |
-| `AGENT_UNSAFE` | Runner | The run was stopped before the agent could act on the machine: its plan had lost its containment, which is a bug in Browsentic, or the CLI itself said it had not applied it — Grok Build offering tools Browsentic never asks for, Qwen Code reporting a denied tool or a second MCP server as registered, or OpenCode reporting that a tool outside the browser ran. Update both, and report it |
+| `AGENT_UNSAFE` | Runner | The run was stopped before the agent could act on the machine: its plan had lost its containment, which is a bug in Browsentic, or the CLI itself said it had not applied it — Grok Build offering tools Browsentic never asks for, Qwen Code reporting a denied tool or a second MCP server as registered, OpenCode reporting that a tool outside the browser ran, or Codex running a shell command or changing a file with both switched off. Update both, and report it |
## Guardrails