AG

AG2B – Run the agent loop in the browser, expose your tools via WebMCP

Hacker News

AG2B – Run the agent loop in the browser, expose your tools via WebMCP

Hello everyone, TL;DR Live demo: https://ag2b-example.vercel.app Working on different projects, especially in B2B, I am getting the same request more and more often - "Add an AI feature, yesterday!" Most agent frameworks I found run the runtime on the server - and that pulls in a whole stack. Both backend and frontend have to learn how that runtime works and adopt its SDKs. The server turns into an orchestrator carrying most of the logic. For a feature that's really just "automate what the app already does, and add a brain," I kept asking the same thing: do we actually need all of that and how to ship these AI features faster? AG2B (Agent to Browser) is my research on this question. The agent loop runs in the browser, where your app already is. Tools (the first primitive) are just your existing client functions (store actions, click handlers, whatever you already wrote), so there's no second tool registry and no contract to negotiate between the frontend and backend. The server shrinks (but not limited) to a thin proxy that keeps your API key out of the bundle plus optionally gates with user's permissions. Because the loop runs where the UI lives, each turn can carry a fresh snapshot of what the user sees and can do right now. Scopes (the second primitive) re-inject live context on every iteration - into the system or user prompt, your choice. The model sees what's actually on screen right now. Nothing stale, zero roundtrips and clear context for the LLM. On security take, does it secure? The LLM can only call the tools you delegate, and those tools are your existing handlers which already hit authenticated, permission-checked endpoints. A tool call goes through the same gates a user or frontend logic goes through. What about existing server-side runtimes? Actually they can coexist. With AG2B you can write your own tool or custom provider which interacts with these endpoints. There are some alternatives to run the agent in browser like working with DOM. That also works, but you pay for it a lot - parsing html and DOM operations are more expensive (tokens, bundle size) than telling LLM what it can do and provide a filtered context. Two cases I built it for: 1. General app automation - a tiny LLM proxy + good prompting + your existing frontend logic wrapped with small primitives = the assistant can drive the app. 2. Domain tasks - e.g. "turn this question into a SQL query" over a big proprietary BI model. A fine-tuned/prompted model that knows the schema + an endpoint to hit it + one Tool - and you get the result. It's plain TypeScript, provider-agnostic (OpenAI/Anthropic built in, or your own), with a hook system to observe/intercept every step (human-in-the-loop approvals, guardrails, RAG) and React bindings - headless hooks or a drop-in chat. Vue is coming. There is also a plugin system. For example I created a WebMCP plugin which exposes your agent's tools through the browser API - which already could be tested in Chrome. Repo: https://github.com/ag2b/ag2b Docs: https://ag2b.ai

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, model, mcp · Missing: mac, agents, macos
98%98% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: created · Missing: supports, reddit linkedin, podcasting
83%83% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: exist, existing, ide · Missing: https docs, excited, just released
47%47% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: plus · Missing: platform, intuitive, reviews
37%37% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Lo
Looplet – a 0-dep agent loop you own42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Looplet – a 0-dep agent loop you own

Hacker News2
Ke
Keel - A conductor, not an agent loop42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Keel - A conductor, not an agent loop

Hacker News6
Lo
Loop, run a command in loop and nothing else55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Loop, run a command in loop and nothing else

Hacker News2
DR
DRUMPF-9000, a DeepDrumpf that can run in your browser53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DRUMPF-9000, a DeepDrumpf that can run in your browser

Hacker News2
Ch
CheerpJ JavaFiddle – Run Java in the browser45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CheerpJ JavaFiddle – Run Java in the browser

Hacker News65
Ru
Run the Browser Anywhere60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Run the Browser Anywhere

Hacker News1
Th
Three Slicer, I ported OrcaSlicer to run in the browser55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Three Slicer, I ported OrcaSlicer to run in the browser

Hacker News4
WeScribe
WeScribe36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Keep your stakeholders in the loop

Indie Hackers2analytics
Loop MCP by SimpliflowAI
Loop MCP by SimpliflowAI58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The tools Appstore for your AI

Product Hunt+141SaaS
Op
OpenHuman, an AI agent with a subconscious loop28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OpenHuman, an AI agent with a subconscious loop

Hacker News2