r/devtools • • 1d ago

shoji: an open-source WebKit browser inside the terminal that coding agents can drive (no headless Chrome)

/r/OpenSourceAI/comments/1yak3rv/shoji_an_opensource_webkit_browser_inside_the/
1 Upvotes

3 comments sorted by

1

u/kantorcodes1 23h ago

Most agent browsers return a screenshot. You also return the page errors. What does your setup do after the page is fixed?

1

u/kunalkushwaha 22h ago

After the fix, the agent runs shoji ctl reload, which waits for the page to load, and then shoji ctl errors again. Errors are counted from that load, so old ones don't linger. A clean page prints "(none since the page loaded)", which closes the loop: the agent knows the fix worked instead of guessing from a screenshot. If it still fails, the same command shows what's left: uncaught exceptions, console.error, and failed or 4xx/5xx requests. It can also check the result itself with snapshot or text, and take a screenshot only if it needs to look.

1

u/kantorcodes1 19h ago

Counting the errors from the fresh load settles it. The agent stops guessing from a screenshot and knows whether the fix worked.

I help run HOL Guard. It checks commands before an AI agent runs them, and builders add extensions that teach it a tool's commands, the risky ones and the safe versions. Shoji's commands are the kind an agent runs all day. Would you be interested in writing a Guard extension for them?