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(panel): the composer loses its attach-page button, since the agent reads the title, address and selection itself; Attach a file takes the paperclip
Shahriar88650324afe5
diff --git a/docs/guide/features/android.md b/docs/guide/features/android.mdindex 7c07b83..2c74574 100644--- a/docs/guide/features/android.md+++ b/docs/guide/features/android.md@@ -102,8 +102,8 @@ tool cannot run on every visit on the phone, because nothing of Browsentic is inWhile the phone tab is in front, the side panel hides what only works in a desktop tab:[recordings](recordings.md), [scheduling](scheduling.md), [action cues](action-cues.md) and-[hands-free](hands-free.md). Voice in the panel, attaching a file and attaching the page's context-still work. They all come back when you switch to a desktop tab.+[hands-free](hands-free.md). Voice in the panel and attaching a file still work. They all come back+when you switch to a desktop tab.The agent is offered only the tools that work on the phone. Hovering, captchas, downloads,uploading a file to a page, recordings, a site's own tools, monitors and diagnostics stay on thediff --git a/docs/guide/features/blocked-sites.md b/docs/guide/features/blocked-sites.mdindex c3220d6..7b08681 100644--- a/docs/guide/features/blocked-sites.md+++ b/docs/guide/features/blocked-sites.md@@ -41,7 +41,7 @@ Everything Browsentic could do to a matching page, whoever asked:- **Seeing it in passing**: a blocked tab is left out of the agent's tab list, never matched by name,and cannot be switched to or closed. A run started from a blocked tab does not send its address.- **Your own tools**: [instant commands](instant-commands.md), saved tools, the ones set to run on- every visit, [A-Eye](a-eye.md), **Attach page** and [recording](recordings.md) all refuse it too.+ every visit, [A-Eye](a-eye.md) and [recording](recordings.md) all refuse it too.- **Things already running**: a [monitor](monitoring.md) or a [diagnostics](diagnostics.md) captureends when its tab moves onto a blocked site (the capture discards what it collected), a recordingstops before the blocked page is written into it, and a [scheduled task](scheduling.md) that woulddiff --git a/src/extension/components/composer.tsx b/src/extension/components/composer.tsxindex c16d480..499fe48 100644--- a/src/extension/components/composer.tsx+++ b/src/extension/components/composer.tsx@@ -3,7 +3,6 @@ import {CalendarClock,Code2,FileText,- FileUp,Loader2,Mic,MicOff,@@ -62,7 +61,6 @@ export function Composer({onToggleVoice,onPick,onClearFocus,- onAttachPage,onAttachFile,onRemoveFile,onRetryFile,@@ -97,7 +95,6 @@ export function Composer({onToggleVoice: () => void;onPick: () => void;onClearFocus: () => void;- onAttachPage: () => void;onAttachFile: (file: File) => void;onRemoveFile: (fileId: string) => void;onRetryFile: (fileId: string) => void;@@ -263,16 +260,6 @@ export function Composer({><ScanEye className={cn('size-3.5', picking && 'animate-pulse')} /></Button>- <Button- variant="ghost"- size="icon-sm"- title="Add this page’s title, URL and selection to the message"- aria-label="Attach page context"- onClick={onAttachPage}- disabled={!connected}- >- <Paperclip className="size-3.5" />- </Button><Buttonvariant="ghost"size="icon-sm"@@ -281,7 +268,7 @@ export function Composer({onClick={() => fileInputRef.current?.click()}disabled={!connected}>- <FileUp className="size-3.5" />+ <Paperclip className="size-3.5" /></Button><Buttonvariant={liveTools ? 'subtle' : 'ghost'}diff --git a/src/extension/entrypoints/sidepanel/App.tsx b/src/extension/entrypoints/sidepanel/App.tsxindex 4b60511..681c695 100644--- a/src/extension/entrypoints/sidepanel/App.tsx+++ b/src/extension/entrypoints/sidepanel/App.tsx@@ -2,10 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';import { ArrowDown, PanelRightClose, PictureInPicture2, SlidersHorizontal, SquarePen } from 'lucide-react';import { browser } from 'wxt/browser';-import { invokeInActiveTab } from '@/lib/actions/client';import { isHandsFreeCommand, isRemoveToolsCommand } from '@/lib/bridge/commands';-import { getPageInfo } from '@/lib/actions/page/get-page-info';-import { BRIDGE_CHANNEL, failure, type ActionResult, type FocusedElement } from '@/lib/actions/protocol';+import { BRIDGE_CHANNEL, type FocusedElement } from '@/lib/actions/protocol';import { MAX_STORED_FILE_BYTES } from '@/lib/files/report';import { Wordmark } from '@/extension/components/brand';import { BLOCKED_HERE, BlockedSiteNote } from '@/extension/components/blocked-site-note';@@ -262,24 +260,6 @@ export default function App() {else if ('error' in outcome) setAttachError(`A-Eye couldn’t read that element: ${outcome.error}`);}- async function attachPageContext() {- if (blockedHere) {- setAttachError(BLOCKED_HERE);- return;- }- const result: ActionResult<{ document: { title: string; url: string }; selection?: string }> = onPhone- ? ((await browser.runtime.sendMessage({ channel: BRIDGE_CHANNEL, op: 'invoke', action: getPageInfo.name, input: {} })) ??- failure('BRIDGE_ERROR', 'The extension did not answer.'))- : await invokeInActiveTab(getPageInfo, {});- if (!result.ok) {- voice.setInput(`${voice.input}\n[couldn’t read this page: ${result.error.message}]\n`);- return;- }- const { document: doc, selection } = result.data;- const snippet = selection ? `\nSelection: “${selection}”` : '';- voice.setInput(`${voice.input ? `${voice.input}\n\n` : ''}[Page: ${doc.title} — ${doc.url}${snippet}]\n`);- }-async function attachFiles(incoming: File[]) {setAttachError(null);for (const file of incoming) await storeFile(file);@@ -553,7 +533,6 @@ export default function App() {onToggleVoice={toggleVoice}onPick={() => void pointAtElement()}onClearFocus={() => setFocus(null)}- onAttachPage={() => void attachPageContext()}onAttachFile={(file) => void attachFiles([file])}onRemoveFile={run.detachFile}onRetryFile={run.reanalyzeFile}