logoalt Hacker News

rmnclmntyesterday at 6:48 AM1 replyview on HN

In the past few weeks, experimenting with a custom ai agent running entirely in the browser with sandboxed tools exec.

The core is built in Rust, a native CLI is built on top for local experimentation but the most interesting part is the web version: the core is built to WASM and get augmented with many tools in the JS land: - OPFS access (read, list, edit files) - Sandbox Python exec (Pyodide in WASM) - Sandbox DuckDB exec (DuckDB-WASM) - Draw charts - Show images - etc OpenAI Completions compatible API providers are supported.

But if you want a full local and sandboxed execution of the whole agent, the web version bundles also wllama to serve local GGUF models (with WebGPU optional support).

Github repo: https://github.com/rclement/cooper


Replies

momjayesterday at 7:12 AM

Very cool work. I've been seeking solutions for running an agent in the browser for building artifacts on my project, which is a web artifact tool library called Exhibit. I'm starring this for later.

https://github.com/momja/Exhibit

show 1 reply