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.
TypeScript agentic-browseragentic-browsingagy-cliaiai-agentai-browser-extensionai-toolsbrave-extensionbrowser-agentbrowser-automationbrowser-extensionbrowser-usebrowserskillchrome-extensionclaude-codecodexfirefox-addonmcp-servernanobrowserweb-automation
fix(codex): approve the Browsentic server's tools, because headless Codex refuses what it would ask about
Shahriar856fd2d37b3d
diff --git a/docs/internals/agent-runs.md b/docs/internals/agent-runs.mdindex b271251..5c09d51 100644--- a/docs/internals/agent-runs.md+++ b/docs/internals/agent-runs.md@@ -88,7 +88,7 @@ Every runner is given the same four things, by whichever mechanism its CLI suppo| | Claude Code | Codex | Antigravity || --- | --- | --- | --- || Run | `claude -p --output-format stream-json` | `codex exec --json` | `agy -p --output-format stream-json` |-| MCP server | `--mcp-config` + `--strict-mcp-config` | `-c mcp_servers.browsentic.*` | `.agents/mcp_config.json` in its cwd |+| MCP server | `--mcp-config` + `--strict-mcp-config` | `-c mcp_servers.browsentic.*`, with `default_tools_approval_mode="approve"` — headless Codex refuses any MCP call it would have prompted for | `.agents/mcp_config.json` in its cwd || System prompt | `--append-system-prompt` | `-c developer_instructions` | `AGENTS.md` in its cwd || Follow-up turns | `--resume <session>` | `exec resume <thread>` | `--conversation <id>` || Kept off the machine by | `--allowedTools` + `--disallowedTools` | `-c sandbox_mode="read-only"`, `-c approval_policy="never"` | its own permission rules |diff --git a/src/daemon/agent/runners/codex.ts b/src/daemon/agent/runners/codex.tsindex 6272b31..1836df9 100644--- a/src/daemon/agent/runners/codex.ts+++ b/src/daemon/agent/runners/codex.ts@@ -83,6 +83,9 @@ export const codexRunner: Runner = {`${server}.env=${tomlTable(mcp.env)}`,'-c',`${server}.required=true`,+ // Headless Codex refuses an MCP call it would have asked about; the daemon gates these tools itself.+ '-c',+ `${server}.default_tools_approval_mode="approve"`,'-c',`developer_instructions=${tomlString(context.systemPrompt)}`,'-c',