Show HN: AI Subroutines – Run automation scripts inside your browser tab
5 by arjunchint | 1 comments on Hacker News.
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 server We 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 get the LLM to generate a script leveraging all the possible ways to interact with a site and the wider web like directly calling backed API's, interacting with the DOM, and calling 3P tools/APIs/MCP servers.
top story news
top story haker news new yourk tims
Ad
Saturday, 18 April 2026
Friday, 17 April 2026
New top story on Hacker News: Detecting DOSBox from Within the Box
Thursday, 16 April 2026
New top story on Hacker News: German Dog Commands
New top story on Hacker News: Qwen3.6-35B-A3B on my laptop drew me a better pelican than Claude Opus 4.7
Qwen3.6-35B-A3B on my laptop drew me a better pelican than Claude Opus 4.7
29 by simonw | 2 comments on Hacker News.
29 by simonw | 2 comments on Hacker News.
Wednesday, 15 April 2026
New top story on Hacker News: Users lose $9.5M to fake Ledger wallet app on the Apple App Store
Users lose $9.5M to fake Ledger wallet app on the Apple App Store
32 by CharlesW | 14 comments on Hacker News.
32 by CharlesW | 14 comments on Hacker News.
New top story on Hacker News: Cal.com is going closed source
Tuesday, 14 April 2026
New top story on Hacker News: California ghost-gun bill wants 3D printers to play cop, EFF says
California ghost-gun bill wants 3D printers to play cop, EFF says
48 by Bender | 9 comments on Hacker News.
48 by Bender | 9 comments on Hacker News.
Monday, 13 April 2026
New top story on Hacker News: B-trees and database indexes (2024)
New top story on Hacker News: Someone Bought 30 WordPress Plugins and Planted a Backdoor in All of Them
Someone Bought 30 WordPress Plugins and Planted a Backdoor in All of Them
153 by speckx | 37 comments on Hacker News.
153 by speckx | 37 comments on Hacker News.
Sunday, 12 April 2026
New top story on Hacker News: Mark's Magic Multiply
Saturday, 11 April 2026
New top story on Hacker News: Mexican surveillance company Grupo Seguritech watches the U.S. border
Mexican surveillance company Grupo Seguritech watches the U.S. border
10 by classichasclass | 0 comments on Hacker News.
10 by classichasclass | 0 comments on Hacker News.
Subscribe to:
Comments (Atom)