正在加载视频...

视频加载失败

we reverse engineered astra's computer use and made it 2x faster.

192,637 次观看 • 10 天前 •via X (Twitter)

15 条评论

Kyle Jeong 的头像
Kyle Jeong10 天前

how? well you should start by understanding how Astra's computer use works. i did a deep dive into the source code and wrote an article about it so you don't have to.

Kyle Jeong 的头像
Kyle Jeong10 天前

tl;dr it uses code mode + the a11y tree to be more accurate and faster. Astra defaults to Playwright, which it's post-trained on, so it's really good at writing and executing it.

Kyle Jeong 的头像
Kyle Jeong10 天前

we just turn playwright into stagehand code (our sdk for browser agents) which brings a speed up in action execution time with "batching". the models are very good at predicting next step, but now they can predict the next 5, 10, even 20 steps. batching lets us group together computer use steps and dispatch them all at once.

Kyle Jeong 的头像
Kyle Jeong10 天前

in the end, it's faster and in many cases qualitatively better since it's thinking pattern is different, like how it chose to paint Starry night here in the demo.

Kyle Jeong 的头像
Kyle Jeong10 天前

here's how we did it:

prath 的头像
prath10 天前

So isn't this browser use and not computer use?

idan levin 的头像
idan levin10 天前

cool so the efficiency gain stems mostly from stagehand being faster than playwright in operating the browser?

Kyle Jeong 的头像
Kyle Jeong10 天前

being faster in both action execution, but also the batching. doing sequential actions is pretty but not as efficient as bundling them together and dispatching. it's even more obvious when you use a remote browser, cdp rtt is no joke

idan levin 的头像
idan levin10 天前

dispatching i.e. executing in parallel?

Kyle Jeong 的头像
Kyle Jeong10 天前

more like sending a bunch of sequential calls but really fast and back to back to back s.t. it seems like it's in parallel sequential calls would flow: > figure out what to do > do it > wait for response > repeat whereas batching: >what are the next 5 things to do > do them > wait for response >

idan levin 的头像
idan levin10 天前

got it so less round trips..really interesting stuff!

Kyle Jeong 的头像
Kyle Jeong10 天前

precisely!

Pedro Nauck ⌁ compozy.com 的头像
Pedro Nauck ⌁ compozy.com10 天前

I created a similar version of this using Rust, got a very nice results as well, if you wanna I can send for you guys to use/explore :)

1492 Explorer🔖🧭🎖️ 的头像
1492 Explorer🔖🧭🎖️10 天前

Genius 😎

GNBW 的头像
GNBW10 天前

Whoa

相关视频