Edge Agent
✨ Vibed with Antigravity & Claude Code ✨
接入你的智能体
從發布者安裝。不是 PlugMCP 端點。
遠端 URL 還是本機指令? 兩種安裝方式的差異
來自發布者
✨ Vibed with Antigravity & Claude Code ✨
Agent that uses code execution via a wasm mcp server in rust that allows dynamic TypeScript execution
I was nerd-sniped into: Why can't an agent in the browser just write dynamic code and execute it?
Everything else is either:
Edge Agent is different. It's primed out of the box. If you can visit the page, you can get the value. It runs a full WASM-based runtime that compiles and executes TypeScript natively in your browser tab. Safe, private, and instant. No server round-trips. No external sandbox.
It's a full-stack agent environment running in WebAssembly, consisting of three parts:
graph TD
subgraph Browser
TUI[Ratatui TUI]
Agent[Agent Layer]
Sandbox[WASI Sandbox]
TUI -->|User Input| Agent
Agent -->|Tools| Sandbox
Sandbox -->|Result| Agent
Agent -->|Response| TUI
end
That's the "nerd-sniped" part. We built a pipeline entirely in WASM:
graph LR
TS[weather.ts] -->|SWC| JS[JavaScript]
JS -->|QuickJS| Out[stdout]
When the agent (or you) runs tsx script.ts, the runtime transpiles it on the fly using SWC and executes it in an embedded QuickJS engine.
It's not a toy shell. It supports:
ls, cd, cat, grep, cp, mv, rmtsx (TypeScript), git (go-git compiled to WASM), sqlite3Ctrl+R)Yes. While the agent runs in the browser, it can connect to local or remote MCP (Model Context Protocol) servers.
We also provide an MCP Bridge that lets external agents (like Claude Code) use the browser sandbox as their backend:
cd tools/mcp-bridge && npm start
# Then run Claude Code:
claude --tools "" --mcp-config '{"mcpServers": {"browser-sandbox": {"type": "http", "url": "http://localhost:3050/mcp"}}}'
This effectively turns your browser tab into a secure, local sandbox for any AI agent.
Yes. The core logic is structured as a package, @tjfontaine/web-agent-core, though currently you must build from source.
import { WebAgent } from '@tjfontaine/web-agent-core';
// 1. Initialize
const agent = new WebAgent({
provider: 'anthropic',
model: 'claude-3-5-sonnet-20241022',
apiKey: 'sk-...'
});
await agent.initialize();
// 2. Chat with tools
for await (const event of agent.send('Write a script to fetch weather')) {
if (event.type === 'chunk') console.log(event.text);
if (event.type === 'tool-call') console.log('Executing:', event.toolName);
}
We support two modes depending on browser capabilities:
fetch or OPFS).# Install dependencies
pnpm install
# Build WASM and packages
pnpm build
# Start dev server
pnpm dev
MIT
Agent that uses code execution via a wasm mcp server in rust that allows dynamic TypeScript execution
工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
Agent In A Browser 透過 stdio 在本機執行。
上次檢查時間:2026-10-28。 Agent that uses code execution via a wasm mcp server in rust that allows dynamic TypeScript execution