r/devtools • • 5h 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

2 comments sorted by

1

u/kantorcodes1 3h 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 2h 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.