r/PiCodingAgent • u/startassets • 23d ago
Plugin pi-agent-computer-use: give your access to computer (browser+desktop)
Hi! Currently computer-use is a must for my agents, so I decided to build an extension with a custom CUA Driver fork and Playwright. It’s purposefully designed to be run in YOLO mode (although Safe is included) within the environment where you trust your agents. It works in hybrid mode: supports both raw image followed by input (agent sees a screenshot and then clicks on something) and structural way (playwright for browser and UIA for normal desktop applications). Agents can use their own browser profiles, or your own, work in sandboxes and remote desktops, work together (to some extent, there are limitations on the OS side).
I would say it was definitely worth working on that, my agents can now work in 3D, browse some stuff I need and can test my applications, acting like real users.
I’ve mostly benched it via GIMP drawing, which doesn’t support UIA so all the interactions are purely from picture based mode. But also Terra 6.1 High has gone to 42th level of https://neal.fun/not-a-robot/ until it got banned by Cloudflare, and we couldn’t pass further. It’s windows only (windows from WSL as well), but if anybody can contribute into linux/macos branch of it, it would be great, I’m just lacking such devices and can’t really test them to the full extent as I can with Windows.
https://github.com/alexshpunt/pi-agent-computer-use
https://pi.dev/packages/pi-agent-computer-use
To install: `pi install npm:pi-agent-computer-use`
Demo of deepseek-flash, haiku, opus, terra and sol drawing the same image with that: https://youtu.be/69doTus760U
38
u/Remote_Book 23d ago
cute benchmark
8
u/Megatron_McLargeHuge 23d ago
It looks like you gave it a skill for using the GIMP tools. Did you try letting it figure out the interface itself? I tried using GIMP recently for the first time in a decade and the interface was as obtuse as I remembered (at least the layers part). I'd be really impressed if an llm got it working from the docs alone.
4
u/yawk-ra 23d ago
Hi,
I built an agentic Painting Tool, Toska, that's a fork of Krita if you are interested. This tool just uses Krita's Python SDK to do paintstrokes . It's currently Mac only for now. Toska is on Github and I will be shortly releasing the Windows and Linux version as well.
Feel free to check out a Video of Toska painting here.
3
u/jackorjek 23d ago
whoa looks cool.
2
u/chelvis2 23d ago
Impressive! Do you have any test with a Qwen model?
2
u/Extra_Loquat_7667 16d ago
Hello, I was quite interested by your mention in the article about beating level 42 of not-a-robot.
Since I've recently been researching agents specialized in browser operation, I've also been testing this website to observe how agents interact with the interface.
I'm using the `terra high` model as well, but I've been stuck at Level 10.
The reason is that this stage requires the user to have high-speed reactions to track an object moving across the screen.
In my tests, the `terra high` model simply doesn't have a high enough reaction speed; by the time the agent receives the response, the timing has already passed.
It feels like unless you're using some kind of ultra-high-speed model (or relying on extreme luck...), passing this level is nearly impossible.
I was wondering if you could share how your framework managed to clear it?
1
u/MotokoAGI 23d ago
pretty nice, thanks for sharing! too bad it's windows only, i don't have one.
1
u/smugself 19d ago
I'll have to check it out. I've been doing a fair bit of computer use, recipe training for repeatable skills