AI Subroutines – Run automation scripts inside your browser tab

We built AI Subroutines in rtrvr.ai. Record a browser task once, save it as a callable tool, replay it at: zero token cost, zero LLM inference delay, and zero mistakes.The subroutine itself is a deterministic script composed of discovered network calls hitting the site's backend as well as page interactions like click/type/find.The key architectural decision: the script executes inside the webpage itself, not through a proxy, not in a headless worker, not out of process. The script dispatches requests from the tab's execution context, so auth, CSRF, TLS session, and signed headers get added to all requests and propagate for free. No certificate installation, no TLS fingerprint modification, no separate auth stack to maintain.During recording, the extension intercepts network requests (MAIN-world fetch/XHR patch + webRequest fallback). We score and trim ~300 requests down to ~5 based on method, timing relative to DOM events, and origin. Volatile GraphQL operation IDs are detected and force a DOM-only fallback before they break silently on the next run.The generated code combines network calls with DOM actions (click, type, find) in the same function via an rtrvr.* helper namespace. Point the agent at a spreadsheet of 500 rows and with just one LLM call parameters are assigned and 500 Subroutines kicked off.Key use cases:- record sending IG DM, then have reusable and callable routine to send DMs at zero token cost- create routine getting latest products in site catalog, call it to get thousands of products via direct graphql queries- setup routine to file EHR form based on parameters to the tool, AI infers parameters from current page context and calls tool- reuse routine daily to sync outbound messages on LinkedIn/Slack/Gmail to a CRM using a MCP serverWe see the fundamental reason that browser agents haven't taken off is that for repetitive tasks going through the inference loop is unnecessary. Better to just record once, and

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

Record browser tasks once as deterministic scripts that execute in-tab at zero inference cost, replacing expensive LLM-driven automation for repetitive workflows.

The pain

Current browser automation agents (RPA, Selenium, headless browsers) either require constant LLM inference loops (expensive, slow, error-prone) or manual scripting (time-consuming). Teams doing high-volume repetitive tasks like bulk DM sending, form filling, or data syncing pay per execution through token costs and latency, even when the task is identical each time.

The gap

No existing tool lets non-technical users record a browser task once and replay it deterministically without re-invoking an LLM or maintaining separate auth/proxy infrastructure. Zapier/Make handle APIs but not complex multi-step UI workflows. Browser extensions exist but require coding. LLM agents are flexible but economically broken for repetition.

Build angle

The in-tab execution model is the key insight, by running scripts inside the webpage's execution context, you inherit auth, CSRF tokens, and TLS sessions for free. This eliminates the entire proxy/headless/certificate problem that plagues traditional RPA. The recording-to-script pipeline (network call filtering + DOM action capture) is technically sound and solves the real bottleneck: users don't need AI for the 100th identical task, they need it once to define the task.

Strengths

  • Solves a real economic problem: LLM inference cost scales linearly with repetitions, but recorded scripts don't. For 500 identical form fills, you pay 1 LLM call instead of 500.
  • Technical architecture is elegant and avoids the auth/proxy nightmare that kills most RPA tools. In-tab execution is a genuine moat.
  • Clear use cases with measurable ROI: bulk messaging, catalog scraping, form automation, CRM syncing. These are high-frequency, low-variance tasks.
  • Extensible via MCP server integration, positions the tool as infrastructure for AI agents to call, not just a standalone product.
  • Recording UX is simpler than coding, lowers barrier to adoption vs. Selenium or custom scripts.

Risks

  • Market size uncertainty: How many teams actually do high-volume, repetitive browser tasks? The TAM depends on whether this is niche (power users) or broad (every SaaS company). Early traction will reveal this.
  • Website fragility: If a site's DOM or API changes, the script breaks. The volatile GraphQL ID detection is clever but not bulletproof. Maintenance burden on users could be high.
  • Legal/ToS risk: Automating DMs, form submissions, or scraping on platforms like Instagram, LinkedIn, or healthcare sites may violate terms of service. This could limit addressable market or create liability.
  • Competition from LLM agents: As Claude/GPT agents improve and inference costs drop, the economic advantage of recorded scripts shrinks. You're betting on a cost/latency gap that may close.
  • Adoption friction: Users must install an extension and trust it with their auth tokens. Enterprise sales will face security review friction.
  • Positioning ambiguity: Is this a tool for end-users, a developer SDK, or infrastructure for AI agents? The pitch conflates all three. Clarity on GTM will determine success.

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “AI Subroutines – Run automation scripts inside your browser tab”.

Open FlyBot