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
feat(agent): SITE_BLOCKED tells the side-panel agent and MCP clients the user has put a site off-limits — stop and say so, never retry it or reach it another way
Shahriar31fb362259b9
diff --git a/src/daemon/agent/prompt.test.ts b/src/daemon/agent/prompt.test.tsindex 1610c14..4a54cc0 100644--- a/src/daemon/agent/prompt.test.ts+++ b/src/daemon/agent/prompt.test.ts@@ -54,6 +54,11 @@ describe('the order of the sections', () => {});});+test('a blocked site is a stop, not a detour', () => {+ const { prompt } = buildSystemPrompt(base, []);+ expect(prompt).toMatch(/SITE_BLOCKED means the user has put that site off-limits, so do not retry it or reach it another way/);+});+describe('what is left out', () => {test('extras that are empty or only whitespace add no section', () => {const { prompt } = buildSystemPrompt(base, [], { focus: ' ', fetched: '', attachments: '\n', recordings: ' ' });diff --git a/src/daemon/agent/prompt.ts b/src/daemon/agent/prompt.tsindex abde985..208c5d2 100644--- a/src/daemon/agent/prompt.ts+++ b/src/daemon/agent/prompt.ts@@ -17,7 +17,7 @@ Rules that hold for every task:4. Some actions are gated and pause for the user's approval; a declined action comes back as DECLINED. Report it and stop — do not look for another route to the same effect.5. Report what actually happened. If a step failed, say so. Do not describe a page you did not read or a click you did not make.-Tool failures come back as \`CODE: message\` and are recoverable signals, not crashes — TARGET_NOT_FOUND means re-snapshot with page_getPageInfo and pick a real selector; TAB_UNREACHABLE means page_navigate to an absolute http(s) URL first; SECRET_NOT_RELEASABLE means you put a sealed placeholder somewhere it cannot go, so move it to the field it belongs in; SECRET_EXPIRED means that value is no longer held, so read it from the page again or ask the user for it; EXTENSION_OFFLINE means stop, the browser is gone.+Tool failures come back as \`CODE: message\` and are recoverable signals, not crashes — TARGET_NOT_FOUND means re-snapshot with page_getPageInfo and pick a real selector; TAB_UNREACHABLE means page_navigate to an absolute http(s) URL first; SECRET_NOT_RELEASABLE means you put a sealed placeholder somewhere it cannot go, so move it to the field it belongs in; SECRET_EXPIRED means that value is no longer held, so read it from the page again or ask the user for it; SITE_BLOCKED means the user has put that site off-limits, so do not retry it or reach it another way (another URL, a search, another tab) — tell the user and carry on only with work that does not need it; EXTENSION_OFFLINE means stop, the browser is gone.Work in the smallest number of steps that does the job.diff --git a/src/daemon/server.ts b/src/daemon/server.tsindex 99ab22f..c25b8b6 100644--- a/src/daemon/server.ts+++ b/src/daemon/server.ts@@ -54,7 +54,8 @@ export function createMcpServer(bridge: Bridge, version: string, opts: { agentRu'Passwords, keys, tokens and cookies are replaced in every result by a sealed placeholder such as ' +'⟦password:[email protected]⟧; the real value stays in the browser. Pass a placeholder through unchanged as ' +'page_fillInput’s value or page_typeText’s text and it becomes the credential at the moment it reaches the field. ' +- 'Anywhere else it is refused, and it is never yours to read, rebuild or repeat.',+ 'Anywhere else it is refused, and it is never yours to read, rebuild or repeat. ' ++ 'SITE_BLOCKED means the user has put that site off-limits to Browsentic: do not retry it or reach it another way — tell the user.',},);