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
Merge remote-tracking branch 'origin/main' into feat/extension-launchers
Shahriar76d6a88253c6
diff --cc docs/guide/configuration.mdindex 1da4df3,4267569..9fcc85d--- a/docs/guide/configuration.md+++ b/docs/guide/configuration.md@@@ -131,22 -131,40 +131,54 @@@ settings page in all of them. A browsehands it to the daemon when it first connects; one picked while the daemon is unreachable is handedover at the next connect. The Mac app's own window keeps its separate System / Light / Dark setting.+### The Extension section++Below the theme, the same section holds what belongs to one browser alone. None of it is in+`config.json`; each browser keeps its own.++| Block | What it sets |+| --- | --- |+| **Right-click menu** | Whether a right-click on a page offers **Open Browsentic** (the side panel) and **Open Browsentic (Hands Free)**. Both are on until you switch one off. With both on, the browser gathers them under a **Browsentic** entry |+| **Keyboard shortcuts** | Shows the keys for **Open the popup**, **Open or close the side panel** and **Start or stop hands-free**. The browser owns these: it gives the side panel **Alt+Shift+B** and hands-free **Alt+Shift+H** (**⌥⇧B**, **⌥⇧H** on a Mac) at install unless something else already has them, and **Change shortcuts** opens its own shortcuts page. Firefox has the popup and the sidebar only |+| **Hands-free** | **Hold to talk** — the same switch as the mic's own menu |++The hands-free item, shortcut and block show only in a browser that can transcribe speech — see+[Hands-free → Which browsers](features/hands-free.md#which-browsers).+---+ ## Profile++ The **Profile** section of the settings page writes `~/.browsentic/profile.json` — a file of its own,+ so this one stays free of personal details. It is re-read before every run and watched like this one,+ and every field in it is optional:++ ```json+ {+ "fields": {+ "givenName": "Ada",+ "familyName": "Lovelace",+ "email": "[email protected]",+ "street": "12 St James’s Square\nFlat 3",+ "country": "United Kingdom"+ },+ "details": [{ "label": "Frequent flyer", "value": "BA 123456" }],+ "instructions": "Always choose the cheapest shipping."+ }+ ```++ | Key | Limit | Notes |+ | --- | --- | --- |+ | `fields` | 300 characters each | `givenName`, `familyName`, `email`, `phone`, `street`, `city`, `region`, `postalCode`, `country`, `company`, `jobTitle` |+ | `details` | 20 entries; label 60, value 300 characters | Anything the fields do not cover |+ | `instructions` | 4,000 characters | Kept on every task |++ An entry that breaks a limit, or a key the page does not know, is left out rather than cut short —+ the daemon logs that it did. What the agent is told, and what is refused, is in+ [Profile](features/profile.md).++ ---+## Things that are not configurableCompiled-in ceilings, listed here so you do not go looking for a key that does not exist:diff --cc docs/internals/extension.mdindex dbe8ca2,8120eb5..6018934--- a/docs/internals/extension.md+++ b/docs/internals/extension.md@@@ -102,21 -103,12 +103,21 @@@ lists it as **Options** on the toolbarThe panel's header, the popup's header and the connection sheet open it with`runtime.openOptionsPage()`, which focuses a settings tab already open rather than adding another.- The page is a sidebar of four sections — **Extension**, **Guardrails**, **Agent**, **Connection** —-The page is a sidebar of four sections — **Appearance**, **Guardrails**, **Agent**, **Connection** —-with the open one in the URL hash, so a reload or a link lands on it. **Agent** and **Connection** are-the same `AgentPicker` and `DaemonLink` the popup and the connection sheet show; those keep theirs,-so a blocked run is still one click from its fix.--**Appearance and Guardrails are shared with the Mac app**, and the daemon keeps both in++The page is a sidebar of five sections — **Extension**, **Profile**, **Guardrails**, **Agent**, **Connection** —+with the open one in the URL hash, so a reload or a link lands on it; an unknown hash,+such as the old `#appearance`, lands on **Extension**. **Agent** and **Connection** are the same+`AgentPicker` and `DaemonLink` the popup and the connection sheet show; those keep theirs, so a+blocked run is still one click from its fix.++**Extension** is the theme, then what belongs to this browser alone, in `storage.local`: the+right-click items (`browsentic/contextMenu`), the keyboard shortcuts, and hold to talk+(`browsentic/pushToTalk`, the switch the orb's menu writes too). The shortcuts are the manifest's+`commands`, declared from [shortcuts.ts](../../src/lib/settings/shortcuts.ts) with suggested keys; the+page lists them with `commands.getAll()`, re-read whenever it comes back into view, because the+browser owns the keys and only its own page changes them — `chrome://extensions/shortcuts`+(`edge://` on Edge), or `commands.openShortcutSettings()` on Firefox.++**The theme and Guardrails are shared with the Mac app**, and the daemon keeps both in`~/.browsentic/config.json`:- Two bridge ops, `preferences` and `setPreference`, forward to the socket frames of the same name.diff --cc src/extension/entrypoints/options/App.tsxindex 90c60ce,99f3721..ba0b995--- a/src/extension/entrypoints/options/App.tsx+++ b/src/extension/entrypoints/options/App.tsx@@@ -1,44 -1,50 +1,56 @@@--import { useEffect, useState, type ReactNode } from 'react';- import { Link2, Puzzle, ShieldCheck, Sparkles, type LucideIcon } from 'lucide-react';-import { Link2, Palette, ShieldCheck, Sparkles, UserRound, type LucideIcon } from 'lucide-react';++import { useEffect, useState, type ComponentType, type ReactNode } from 'react';++import { Link2, Puzzle, ShieldCheck, Sparkles, UserRound, type LucideIcon } from 'lucide-react';import { browser } from 'wxt/browser';import { AgentPicker } from '@/extension/components/agent-picker';import { Wordmark } from '@/extension/components/brand';import { DaemonLink } from '@/extension/components/daemon-link';+import { ExtensionSettings, SettingsGroup } from '@/extension/components/extension-settings';import { GuardrailSettings } from '@/extension/components/guardrail-settings';+ import { ProfileSettings } from '@/extension/components/profile-settings';import { StatusPill, describeStatus } from '@/extension/components/status-pill';import { ThemePicker } from '@/extension/components/theme-picker';import { useDaemonState } from '@/lib/bridge/use-daemon-state';import { useTheme } from '@/lib/bridge/use-theme';import { cn } from '@/lib/utils';- type SectionId = 'extension' | 'guardrails' | 'agent' | 'connection';-type SectionId = 'appearance' | 'profile' | 'guardrails' | 'agent' | 'connection';++type SectionId = 'extension' | 'profile' | 'guardrails' | 'agent' | 'connection';--const SECTIONS: { id: SectionId; label: string; icon: LucideIcon; blurb: string }[] = [++const SECTIONS: { id: SectionId; label: string; icon: LucideIcon; blurb: string; View: ComponentType }[] = [{- id: 'appearance',- label: 'Appearance',- icon: Palette,- blurb: 'How the side panel, the popup and this page look. Every paired browser follows the same choice, and the desktop app can change it too.',+ id: 'extension',+ label: 'Extension',+ icon: Puzzle,+ blurb: 'How the extension looks and how you reach it. Every paired browser and the desktop app share the look; the right-click menu, the shortcuts and the rest belong to this browser.',++ View: Extension,+ },+ {+ id: 'profile',+ label: 'Profile',+ icon: UserRound,+ blurb: 'What the agent may use about you — for forms, sign-ups and checkouts — and rules it keeps to on every task. Anything filled in here reaches the model with each run, so it uses these exact values instead of guessing.',++ View: ProfileSettings,},{id: 'guardrails',label: 'Guardrails',icon: ShieldCheck,blurb: 'What the agent may do without asking you first. A run takes its policy when it starts, so a change applies to the next one. The desktop app’s Settings tab edits the same rows.',++ View: GuardrailSettings,},{id: 'agent',label: 'Agent',icon: Sparkles,blurb: 'Which agent CLI the side panel drives, and on which model. A switch here or in the desktop app reaches every paired browser.',++ View: Agent,},{id: 'connection',label: 'Connection',icon: Link2,blurb: 'The link between this browser and the Browsentic daemon on this computer.',++ View: Connection,},];@@@ -116,15 -122,17 +128,7 @@@ export default function App()<p className="text-sm leading-relaxed text-ink-dim">{current.blurb}</p></header><div key={section} className="enters mt-8">- {section === 'extension' ? (- <Extension />- {section === 'appearance' ? (- <Appearance />- ) : section === 'profile' ? (- <ProfileSettings />-- ) : section === 'guardrails' ? (-- <GuardrailSettings />-- ) : section === 'agent' ? (-- <Agent />-- ) : (-- <Connection />-- )}++ <current.View /></div></div></main>diff --cc wxt.config.tsindex 82eb6a2,ed51f19..a83382d--- a/wxt.config.ts+++ b/wxt.config.ts@@@ -29,10 -28,10 +29,11 @@@ export default defineConfig('notifications', 'downloads', 'nativeMessaging',// Firefox has no sidePanel, debugger or offscreen permission, and addons.mozilla.org flags each name it does not know.// offscreen is the hidden page hands-free mode listens through once the side panel is closed.- ...(browser === 'firefox' ? [] : ['sidePanel', 'debugger', 'offscreen']),+ // userScripts runs a saved tool on every visit, once the user turns on Allow User Scripts.+ ...(browser === 'firefox' ? [] : ['sidePanel', 'debugger', 'offscreen', 'userScripts']),],host_permissions: ['<all_urls>'],+ commands: manifestCommands(browser === 'firefox'),// Release Firefox installs only what addons.mozilla.org has signed, and signing needs a// permanent id. The update URL is polled daily; the release job publishes updates.json// next to each signed .xpi, and `releases/latest` always resolves to the newest one.