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(intent): run "search this site for X" without waking the agent
Shahriaracfa1de5f217
diff --git a/lib/intent/grammar.ts b/lib/intent/grammar.tsindex f5b4a90..07e99db 100644--- a/lib/intent/grammar.ts+++ b/lib/intent/grammar.ts@@ -4,6 +4,7 @@ import { navigate } from '@/lib/actions/page/navigate';import { openTab } from '@/lib/actions/page/open-tab';import { pressKey } from '@/lib/actions/page/press-key';import { scrollTo } from '@/lib/actions/page/scroll-to';+import { searchSite } from '@/lib/actions/page/search-site';import { stopMonitor } from '@/lib/actions/page/stop-monitor';import { START_RECORDING_ACTION, STOP_RECORDING_ACTION } from '@/lib/recordings/events';@@ -26,6 +27,7 @@ type NavigateInput = z.input<typeof navigate.input>;type OpenTabInput = z.input<typeof openTab.input>;type ScrollInput = z.input<typeof scrollTo.input>;type ClickInput = z.input<typeof clickElement.input>;+type SearchSiteInput = z.input<typeof searchSite.input>;type PressKeyInput = z.input<typeof pressKey.input>;const SITES: Record<string, string> = {@@ -152,6 +154,16 @@ export const RULES: readonly Rule[] = [);},},+ {+ id: 'site.search',+ action: searchSite.name,+ certainty: 0.95,+ pattern: /^search\s+(?:(?:on|in)\s+)?(?:(?:this|the)\s+(?:site|website)|here)\s+for\s+(?<q>.+)$/,+ build: ({ q }) => {+ const query = q!.trim();+ return query ? built({ query } satisfies SearchSiteInput, `Search this site for "${query}"`) : null;+ },+ },{id: 'scroll.direction',action: scrollTo.name,diff --git a/scripts/check-intent.mjs b/scripts/check-intent.mjsindex 8ac78fb..f0f270f 100644--- a/scripts/check-intent.mjs+++ b/scripts/check-intent.mjs@@ -107,6 +107,10 @@ const CASES = [['take me to the checkout page', 'escalate:no-match'],['google maps', 'escalate:no-match'],['search for wireless headphones', 'escalate:no-match'],+ ['search this site for wireless headphones', 'act:site.search', { query: 'wireless headphones' }],+ ['search the site for airpods', 'act:site.search', { query: 'airpods' }],+ ['search here for airpods', 'act:site.search'],+ ['search this website for airpods', 'act:site.search'],['log into my account', 'escalate:no-match'],['buy it now', 'escalate:no-match'],['', 'escalate:no-match'],