15 comments

  • firejake3081 day ago
    Is it decided then that screenshots are better input for LLMs than HTML, or is that still an active area of investigation? I see that y'all elected for a mostly screenshot-based approach here, wondering if that was based on evidence or just a working theory.
    • gregpr071 day ago
      Not sure, I think there is a lot of research being done here.<p>Actually, browser use works quite well with vision turned off, it just sometimes gets stuck at some trivial vision tasks. The interesting thing is that screenshot approach is often cheaper than cleaned up html, because some websites have HUGE action spaces.<p>We looked at some papers (like ferret ui) but i think we can do much better on html tasks. Also, there is a lot of space to improve the current pipeline.
      • arjvik1 day ago
        Would be really cool if you could tie this into Claude&#x27;s computer use APIs!
        • gregpr071 day ago
          Do you think they do any super fancy magic other than for example how ferret ui does their classification of ui elements? It could be very interesting to test head to head hope much better you can make computer use by adding html (it’s much better from our quick testing, just don’t know the numbers).
        • stuckkeys19 hours ago
          My wallet just ran way. Come back you!
          • gregpr0718 hours ago
            Haha with browser use or Computer use??
    • teaxio1 day ago
      I am one of the authors of this open source project Agent-E. I would love if people here give it a go: <a href="https:&#x2F;&#x2F;github.com&#x2F;EmergenceAI&#x2F;Agent-E">https:&#x2F;&#x2F;github.com&#x2F;EmergenceAI&#x2F;Agent-E</a> It doesn&#x27;t have any vision yet, all clever DOM manipulation. We have a Discord for feedback and welcome contributions to make it better.
      • elpalek7 hours ago
        Tried Agent-E, like the DOM distillation to reduce token method. I&#x27;ve started using AgentQL for a new project, which works well combining playwright.
    • Screenshots aren&#x27;t as accurate or context-rich as HTML, but they let you bypass the hassle of building logic for permissions and authentication across different apps to pull in text content for the LLM.
      • EGreg1 day ago
        Can’t you just make a browser extension to haveaccess to the HTML and CSS, and use LLMs from that?
        • maggreenWAI1 day ago
          Context length + API cost is right now main bottleneck for huge HTML + CSS files. The extraction here is already quite efficient but still: with past messages + system prompt + sometimes extracted text + extracted interactive elements you are quickly already around 2500 tokens (for gpt-4o 0.01$).<p>If you extract entire HTML and CSS your cost + inference time are quickly 10x.
          • EGreg1 day ago
            Aren&#x27;t screenshots far larger than this?
            • gregpr071 day ago
              Nope: 1280x1024 low resolution with gpt-4o are 85 tokens so approx $0.0002 (so 100x cheaper). For high resolution its apporx $0.002 <a href="https:&#x2F;&#x2F;openai.com&#x2F;api&#x2F;pricing&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openai.com&#x2F;api&#x2F;pricing&#x2F;</a>
              • stuckkeys19 hours ago
                Yeah. I noticed a very low cost when I run it via vm, predefined resolution. Good tip.
        • e-clinton1 day ago
          I do this for my extension [0] but the HTML is often too large for context window sizes . I end up doing scraping of the relevant pieces before sending to LLM.<p>[0] <a href="https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;namebrand-check-for-amazo&#x2F;jacmhjjebjgliobjggngkmkmckakphel" rel="nofollow">https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;namebrand-check-for...</a>
    • maggreenWAI1 day ago
      Next step is to represent also the structure of the HTML tree in the extracted elements for better understanding, maybe images are then less needed.
    • EGreg1 day ago
      I doubt screenshots would be better input considering that eg &lt;select&gt; box options and other markup are hisden visually until a user interacts with something
    • refulgentis1 day ago
      Per research across companies, both help, screenshots are worse, but marginally.<p>The computer use stuff gets me fired up enough that I end up always sharing this, even though when delivered concisely without breaking NDAs, it can sound like a hot take:<p>The whole thing is a dead end.<p>I saw internal work at a FAANG on this for years, and even in the case where the demo is cooked up to &quot;get everything right&quot;, intentionally, to figure out the value of investing in chasing this further...its undesirable, for design reasons.<p>It&#x27;s easy to imagine being wow&#x27;d by the computer doing something itself, but when its us, its a boring and slow way to get things done thats scary to watch.<p>Even with the stilted 100% success rate, our meatbrains cheerily emulated knowing its &lt; 100%, the fear is akin to watching a toddler a month into walking, except if the toddler had your credit card and a web browser and instructions to buy a ticket.<p>I humbly and strongly suggest to anyone interested in this space to work towards CLI versions of this concept. Now, you&#x27;re nonblocking, are in a more &quot;native&quot; environment for the LLM, and are much cheaper.<p>If that sounds regressive and hardheaded, Microsoft, in particular, has plenty of research on this subject, and there&#x27;s a good amount from diverse sources.<p>Note the 20%-40% success rates they report, then, note that completing a <i>full task</i> successfully represents a product series of 20%-40%. To get an intuition for how this affects the design experience, think how annoying it is to have to repeat a question because Siri&#x2F;Assistant&#x2F;whatever voice assistant don&#x27;t understand it, and they have roughly ~5 errors per 100 words.
      • gregpr071 day ago
        Could you elaborate on the CLI idea? I am intrigued but not exactly sure what you mean.
        • refulgentis1 day ago
          (handwaving) I&#x27;d rather be in a loop of &quot;here&#x27;s our goal. here&#x27;s latest output from the CLI. what do we type into the CLI&quot; than the GUI version of that loop.<p>I hope that&#x27;s clearer, I&#x27;m a bit over-caffeinated
          • gregpr071 day ago
            Hmm, but this how we handle it? We just have a CLI that outputs exactly, goal, state, and asks user for more clarity if needed, no GUI. The original idea was to make it completely headless.
            • refulgentis1 day ago
              I&#x27;m sorry I&#x27;m definitely off today, and am missing it, I appreciate your patience.<p>I&#x27;m thinking maybe the goal&#x2F;state stuff might have clouded my point. Setting aside prompt engineering, just thinking of the stock AI UIs today, i.e. chat based.<p>Then, we want to accomplish some goal using GUI and&#x2F;or CLI. Given the premise that I&#x27;d avoid GUI automation, why am I saying CLI is the way to go?<p>A toy example: let&#x27;s say the user says &quot;get my current IP&quot;.<p>If our agent is GUI-based, maybe it does: open Chrome &gt; type in whatismyip.com &gt; recognize IP from screenshot.<p>If our agent is CLI-based, maybe it does: run the curl command to fetch the user&#x27;s IP from a public API (e.g. curl whatismyip.com) &gt; parse the output to extract the IP address &gt; return the IP address to the user as text.<p>In the CLI example, the agent interacts with the system using native commands (in this case, curl) and text outputs, rather than trying to simulate GUI actions and parse screenshot contents.<p>Why do I believe thats preferable over GUI-based automation?<p>1. More direct&#x2F;efficient - no need for browser launching, screenshot processing, etc.<p>2. More reliable - dealing with <i>only</i> structured text output, rather than trying to parse visual elements<p>3. Parallelizable: I can have N CLI shells, but only 1 GUI shell, which is shared with the user.<p>4. In practice, I&#x27;m basing that off observations of the GUI-automation project I mentioned, accepting computer automation is desirable, and...work I did to build an end-to-end testing framework for devices paired to phones, both iOS and Android.<p>What the? Where did that come from?<p>TL;DR: I love E2E tests, for years, and it was stultifying to see how little they were used beyond the testing team due to flakiness. Even small things like &quot;Launch the browser&quot; are extremely fraught. How long to wait? How often do we poll? How do we deal with some dialog appearing in front of the app? How do we deal with not having the textual view hierarchy for the entire OS?
              • fragmede1 day ago
                try openinterpreter for cli computer automation.
  • theredsix1 day ago
    Awesome project, starred! Here are some other projects for agentic browser interactions:<p>* Cerebellum (Typescript): <a href="https:&#x2F;&#x2F;github.com&#x2F;theredsix&#x2F;cerebellum">https:&#x2F;&#x2F;github.com&#x2F;theredsix&#x2F;cerebellum</a><p>* Skyvern: <a href="https:&#x2F;&#x2F;github.com&#x2F;Skyvern-AI&#x2F;skyvern">https:&#x2F;&#x2F;github.com&#x2F;Skyvern-AI&#x2F;skyvern</a><p>Disclaimer: I am the author of Cerebellum
    • gregpr071 day ago
      Thanks man, starred yours too, it&#x27;s super cool to see all these projects getting spun up!<p>I see Cerebellum is vision only. Did you try adding HTML + screenshot? I think that improves the performance like crazy and you don&#x27;t have to use Claude only.<p>Just saw Skyvern today on previous Show HNs haha :)
      • theredsix1 day ago
        I had an older version that used simplified HTML, and it got to decent performance with GPT-4o and Gemini but at the cost of 10x token usage. You are right, identifying the interactable elements and pulling out their values into a prompt structure to explicitly allow the next actions can boost performance, especially if done with grammar like structured outputs or guidance-llm. However, I saw that Claude had similar levels of performance with pure vision, and I felt that vision + more training would beat a specialized DOM algorithm due to &quot;the bitter lesson&quot;.<p>BTW I really like your handling of browser tabs, I think it&#x27;s really clever.
        • gregpr071 day ago
          Fair, also Claude probably only gets better on this since they kinda want people to use Computer use. We are gonna try to do best of both worlds.<p>Thanks man, Magnus came up with it this morning haha!
      • dbacar1 day ago
        I starred both of you
  • gitgud1 day ago
    It&#x27;s impressive, but to me it seems like the saddest development experience...<p><pre><code> agent = Agent( task=&#x27;Go to hackernews on show hn and give me top 10 post titels, their points and hours. Calculate for each the ratio of points per hour.&#x27;, llm=ChatOpenAI(model=&#x27;gpt-4o&#x27;), ) await agent.run() </code></pre> Passing prompts to a LLM agent... waiting for the black box to run and do something...
    • gregpr071 day ago
      For that we wanted to give you more control as well with a for loop and you take actions step by step. I think all of these crewai like agent swarms are also very much black boxes.<p>How would you imagine the perfect scenario? What would make LLM outputs less of a black box?
    • atrus1 day ago
      I mean, is that really much different than an API? I pass a query, and get data back, and rarely do I get to inspect the mechanisms behind what&#x27;s returning that data.
      • Tepix1 day ago
        Well, i guess that with an LLM you kind of hope it will understand you whereas with a regular program you don&#x27;t have to hope for that, just that it will work without throwing errors (usually with a magnitudes lower error rate).
      • gitgud1 day ago
        Okay that’s a pretty good point actually.<p>I guess I wrongly assume regular API’s are more reliable, but you’re right they’re basically black boxes too…
  • maggreenWAI1 day ago
    Let&#x27;s say in 1 year, more agents than humans interact with the web.<p>Do you think: 1. Websites release more API functions for agents to interact with them or 2. We will transform with tools like this the UI into functions callable by agents and maybe even cache all inferred functions for websites in a third party service?
    • stuartjohnson1222 hours ago
      Came across some folks a little while ago who just raised a few million $ for the latter (in stealth).
      • gregpr0722 hours ago
        Who (or still in stealth haha)?
  • G_o_D1 day ago
    It is called screen scraping, where text rendered on screen&#x2F;monitors are being scraped either in browser or even in windows os even on android screen , thats how softwares like autohotkey and all do automation windows or android screen can be dumped into heirarchical xml along with x y coordinates of its ui elements along with text they contain which can be uses o click scroll scrape text
  • bravura1 day ago
    It would be amazing if you:<p>a) There were a test &#x2F; eval suite to determine which model works best for what. It could be divided into a training suite and test suite. (Training tasks can be used for training, test tasks only for evaluation.) Possibly a combination of unit tests against known xpaths, and integration tests that are multi-step and end in a measurable result. I know the web is constantly changing, so I&#x27;m not 100% sure how this should work.<p>b) There were some sort of wiki, or perhaps another repo or discussion board, of community-generated prompt recipes for particular actions.
    • gregpr071 day ago
      A) we plan on thoroughly testing that with Mind2Web dataset. They have a very robust set of (persistant) selectors<p>B) so, shadcn for prompts for web agents haha :) but I agree, that would be SICK! Just go to browseruse and get the prompt for your specific use case
      • maggreenWAI1 day ago
        A) For Mind2Web: because there are multiple ways to reach a goal state - any thoughts how to evaluate if a task was successful? Should we let the LLM&#x2F; other LLM evaluate it?
  • Oras1 day ago
    This looks interesting. I am really impressed with MultiOn [0], and I tried to make something similar, but it&#x27;s quite challenging doing it with a Chrome extension.<p>I also saw one doing Captcha solving with Selenium [1].<p>I will keep an eye on your development, good luck!<p>[0] <a href="https:&#x2F;&#x2F;www.multion.ai&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.multion.ai&#x2F;</a> [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;VRSEN&#x2F;agency-swarm">https:&#x2F;&#x2F;github.com&#x2F;VRSEN&#x2F;agency-swarm</a>
    • namukang1 day ago
      I actually built a Chrome extension that runs Claude computer use if you’d like to try it out! [0] It’s currently awaiting approval in the Chrome Web Store.<p>After having spent the last several years building a popular Chrome extension for browser automation [1], I was excited to see if LLMs could actually build automations end-to-end based on a high-level description. Unfortunately, they still get confused quite easily so the holy grail has yet to come. Still fun to play around with though!<p>[0] <a href="https:&#x2F;&#x2F;autobrowser.ai&#x2F;" rel="nofollow">https:&#x2F;&#x2F;autobrowser.ai&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29254147">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29254147</a>
    • gregpr071 day ago
      Thanks! Have you tried captcha solving with [1]? It&#x27;s very tricky sometimes, especially with non standard &quot;verify human&quot; - maybe you could solve it by writing Selenium&#x2F;Javascript code directly and then execute it.
      • Oras1 day ago
        I haven’t but watched a video doing it with this framework.<p>With captcha, worst case scenario is using a service to do it as part of the agent flow. See 2captcha service
    • aethelingas1 day ago
      what are the challenges with the Chrome extension path?
      • Oras1 day ago
        You need to call an API to screenshot the page, then figure out the JavaScript code to execute it. It’s not as easy as it might sound.<p>Playwright and selenium automate the browser itself, but with the chrome extension you need to use the context of the current browser.<p>I’m not an expert in browser automation so found it challenging moving from playwright to make it completely browser based.
        • gregpr071 day ago
          I don’t know a lot about this but do you have full power of Selenium or not? That would be also very interesting aproach especially when “local” browser models get very good
          • Oras1 day ago
            From 3 days playing around it, I couldn’t find a way to use selenium or playwright in the browser.<p>What I did though is having a loop to send instructions from playwright.<p>For instance, I will open the browser, and then enter a loop to await for instructions (can be from event such as redis) to execute again in the same browser. But still, it’s based on the session instantiated by playwright.
  • soham1231 day ago
    I have built something similar at <a href="https:&#x2F;&#x2F;github.com&#x2F;ComposioHQ&#x2F;composio&#x2F;tree&#x2F;master&#x2F;python&#x2F;composio&#x2F;tools&#x2F;local&#x2F;browsertool&#x2F;actions">https:&#x2F;&#x2F;github.com&#x2F;ComposioHQ&#x2F;composio&#x2F;tree&#x2F;master&#x2F;python&#x2F;co...</a><p>Compatible with any LLMs and agentic framework
    • gregpr071 day ago
      Looks nice. I find the cleaning HTML step in our cleaning pipeline extremely important, otherwise there is no real benefit from just using a general vision model and clicking coordinates (and whole HTML is just way too many tokens). How do you guys handle that?
  • rahimnathwani1 day ago
    In case anyone else was looking for the functions available to the LLM: <a href="https:&#x2F;&#x2F;github.com&#x2F;gregpr07&#x2F;browser-use&#x2F;blob&#x2F;68a3227c8bc97fe424f90f744c295c7d330ae5fd&#x2F;src&#x2F;controller&#x2F;views.py#L59">https:&#x2F;&#x2F;github.com&#x2F;gregpr07&#x2F;browser-use&#x2F;blob&#x2F;68a3227c8bc97fe...</a>
    • maggreenWAI1 day ago
      You can just extend this e.g. with adding data to database, sending notifications, extracting specific data format ect... make sure to also accept your added function when its called in act() <a href="https:&#x2F;&#x2F;github.com&#x2F;gregpr07&#x2F;browser-use&#x2F;blob&#x2F;main&#x2F;src&#x2F;controller&#x2F;service.py">https:&#x2F;&#x2F;github.com&#x2F;gregpr07&#x2F;browser-use&#x2F;blob&#x2F;main&#x2F;src&#x2F;contro...</a>
    • gregpr071 day ago
      Yes, this plus reasoning and ask user for additional info. More here <a href="https:&#x2F;&#x2F;github.com&#x2F;gregpr07&#x2F;browser-use&#x2F;blob&#x2F;main&#x2F;src&#x2F;agent&#x2F;views.py">https:&#x2F;&#x2F;github.com&#x2F;gregpr07&#x2F;browser-use&#x2F;blob&#x2F;main&#x2F;src&#x2F;agent&#x2F;...</a>
  • coreyp_11 day ago
    This looks really interesting. The first hurdle, though, that prevents me from experimenting with this on my job is the lack of a license.<p>I see in the readme that it claims that it is MIT licensed, but there is no actual license file or information in any of the source files that I could find.
    • gregpr071 day ago
      Thanks you, love the feedback! Will add the license.<p>Let me know how it goes if you try it.
  • DeathArrow1 day ago
    &gt;This enables you to design custom web automation and scraping functions without manual inspection through DevTools<p>Can it use a headless browser?
    • gregpr0722 hours ago
      Technically you can yeah, I am not sure if the performance is the same - would have to test it!
  • KaoruAoiShiho1 day ago
    Maybe can build a database for which sites &#x2F; pages work best with HTML vs Screenshots, and then can choose to use HTML to save on token cost &#x2F; improve latency if possible.
  • daft_pink1 day ago
    I was really excited about the original claude computer use until I watched the youtube videos and saw it was only running in a docker container. I wish I could run something like this on a real machine.
    • craftkiller1 day ago
      What makes a docker container not a &quot;real machine&quot;? Docker programs are running natively, just like any other program, without emulation&#x2F;virtualization. Its not like a virtual machine (unless you&#x27;re on one of the lesser operating systems like Windows or OSX), its just configuring some settings in the Linux kernel to isolate the process from other processes. Its basically just an enhanced chroot.
      • daft_pink21 hours ago
        Because I would like to automate programs I use in Windows with files that I actually use, instead of some random linux docker container. I should have used my actual machine instead of a real machine.
        • craftkiller18 hours ago
          &gt; Windows<p>Ah, well there&#x27;s your problem. Your problem isn&#x27;t docker, nor is it claude, its that you&#x27;re running Windows.
      • alexeichhorn1 day ago
        Running natively doesn&#x27;t make it a real machine. If I run iOS Simulator, it also runs natively, but I&#x27;m pretty sure it&#x27;s not a real iPhone ;)
    • gregpr071 day ago
      You can run browser use in your terminal, no need for Docker containers. Just clone it and run it
  • WillAdams1 day ago
    Does it work with COM objects&#x2F;Java applications?<p>I&#x27;d give my interest in Hell for a way to have a script plug in data into a Java app.
    • gregpr071 day ago
      No I think that’s a completely different beast, this is only for html&#x2F;websites.<p>But would be interesting to see what happenes with our pipeline with pure vision model. Did you mean something else?
    • fragmede1 day ago
      have you tried Claude&#x27;s &quot;computer use&quot;?
  • fragmede1 day ago
    wants to have cron, so I can ask it to check with my local parking agency, every day or every 12 hours, do I have a parking ticket, and to raise a warning if I do. Or to check with county jail and see if someone is still there&#x2F;not there. Or check the price of a product on Amazon every hour and warn when it&#x27;s changed (aka camelcamelcamel but local). Search craigslist&#x2F;zillow&#x2F;Facebook marketplace for items until one shows up. etc.