Agent-first isolated browser workbench — one burrow per identity, one egress per burrow.
An Electron desktop workbench and native CLI where each Environment pairs isolated Chromium storage, a dedicated proxy + CA trust boundary, and dual Person / Agent spaces under single-writer lease control.
English · 简体中文 · Quick Start · Visual Tour · CLI & Skills · Architecture · Plugins · Docs
Dark & light adaptive preview — grouped environments, Person / Agent spaces, live websites (react.dev / github.com), and the right Workbench Inspector.
Etymology — A warren is a network of rabbit burrows: one interconnected system where each burrow has its own entrance and exit. Every Environment gets its own identity and network egress while living inside one shared workbench.
Most browser-automation setups split into two extremes: headless scripts you cannot watch or rescue mid-flight, or anti-detect fingerprint managers built around spoofed browser identities. Warren takes a different shape—isolated environments, explicit addressing, and human-in-the-loop co-browsing:
| Capability | What It Solves |
|---|---|
| Per-Burrow Isolation | Each Environment owns a partitioned Electron Session (cookies, localStorage, cache), independent HTTP/SOCKS/Whistle proxy, and per-environment X.509 trustedCa verification—without kernel patches or fingerprint spoofing. |
| Dual Spaces, Shared Auth | Every Environment contains a Person Space (always human-owned, no lease required) and an Agent Space (lease-gated). Both share the same login session and proxy egress while keeping separate tab sets that never collide—and releasing control keeps you right in your active view. |
| Single-Writer Lease & 3-Layer WebGL Shield | Reading never requires a lease; writing requires an explicit <env> lease. When an agent holds the lock, a native WebContentsView shield renders an animated 3-layer WebGL veil (domain-warped FBM aurora, interactive dot-matrix pointer trail & click ripple, and Poisson-blurred border glow) plus CTA target box and one-click Take Over. |
| CLI + Auto-Synced Skills | Designed for coding agents (warren CLI + compiled SKILL.md for ~/.agents, ~/.claude, ~/.codex) with compact accessibility @N snapshots, batched Delta Receipts, and a locked node:vm scripting runtime. |
When an agent drives Agent Space, Warren's native shield layer (InputShield) blends a translucent WebGL breathing veil, radial dot-matrix pointer trail, Poisson-blurred flowing border glow, CTA highlight anchor, and virtual cursor directly above real web pages—keeping content legible while blocking accidental clicks until you click Take Over.
|
More Real-Site Captures: Right-Dock Exclusivity, Stopped Env Launchpad, Whistle Proxy, Accounts & Vault Settings
Download Warren-<version>-arm64.dmg or Warren-darwin-arm64-<version>.zip from GitHub Releases or the warren-macos-arm64 artifact on the latest passing CI workflow run (Apple Silicon / macOS).
Important
Unsigned macOS packages trigger Gatekeeper
Prebuilt installers currently use ad-hoc signing without an Apple Developer ID signature or notarization. Because browsers attach com.apple.quarantine to downloaded files, double-clicking Warren.app directly will make macOS show "Warren" is damaged and can't be opened (or "Apple could not verify Warren"). Clear the quarantine attribute once before opening:
Option A — Install from .dmg:
- Open
Warren-0.1.0-arm64.dmgand dragWarren.appinto/Applications(if Gatekeeper warns before dragging, do not move to Trash). - Run in Terminal:
xattr -cr /Applications/Warren.app
open -a WarrenOption B — Install from .zip:
Extract with ditto into /Applications (preserves Electron bundle symlinks and permissions), clear quarantine, and launch:
ditto -xk Warren-darwin-arm64-0.1.0.zip /Applications
xattr -cr /Applications/Warren.app
open -a Warren- If macOS still restricts execution, run
sudo xattr -rd com.apple.quarantine /Applications/Warren.app(and optionally verify checksums withshasum -a 256 -c SHA256SUMS.txt). - Installing
.dmg/.zipgives you the Desktop App (Warren.app, which exposes~/.warren/runtime/envd.sockon launch). To expose thewarrenCLI globally onPATH, link it from a cloned checkout below.
Prerequisites: macOS (Apple Silicon) + Node.js 24+ and npm.
git clone https://github.com/euanguo/warren.git
cd warren
npm install
npm start # Starts Electron Core + local Unix socket RPC (~/.warren/runtime/envd.sock)In a second terminal (optionally run npm link once to expose warren globally):
npm link # Optional: links `warren` -> bin/warren.mjs
warren env list
warren helpEvery mutation explicitly names <env>—selecting a row in the sidebar never grants implicit write access.
# Create & boot an isolated environment (optional --proxy and --start-url)
warren env create dev --start-url=https://example.com
warren env start dev
# Acquire single-writer lease on Agent Space, open a page, read compact accessibility tree
warren env acquire dev --wait=5000
warren browser open dev https://example.com --read
warren browser snapshot dev -i -u --content-boundaries
# Batch actions with an automatic post-step Delta Receipt
warren batch dev --bail <<'EOF'
click @1
snapshot -i
EOF
# Release lease when finished
warren env release dev --lease=<leaseId>Build & Package macOS Desktop Bundle Locally (Warren.app / .dmg / .zip)
Make sure npm start is stopped before packaging so Vite build outputs in .vite/ do not collide (see docs/RELEASE.md):
npm run make
# Outputs under out/make/:
# out/make/dmg/arm64/Warren-0.1.0-arm64.dmg
# out/make/zip/darwin/arm64/Warren-darwin-arm64-0.1.0.zipOptional Apple signing & notarization (credentials are read exclusively from environment variables; when omitted, builds remain ad-hoc signed so recipients must run xattr -cr /Applications/Warren.app after download):
APPLE_ID=you@example.com \
APPLE_APP_SPECIFIC_PASSWORD=xxxx-xxxx-xxxx-xxxx \
APPLE_TEAM_ID=XXXXXXXXXX \
npm run makewarren (bin/warren.mjs → bin/cli.mjs + bin/commands/*.mjs) drives the running desktop Core over ~/.warren/runtime/envd.sock. Untrusted page content is sanitized against terminal escapes, bounded to --max-output (12000 bytes by default, spilling overflow to ~/.warren/tmp/), and optionally wrapped in randomized --content-boundaries nonces.
| Group | Key Subcommands | Purpose |
|---|---|---|
env |
list, create, start, stop, hibernate, wake, remove, update, select, acquire, renew, release, takeover, egress, doctor, move, reorder |
Environment lifecycle, proxy/CA updates, leases, diagnostics |
group / tab |
group list|create|rename|remove|collapse · tab list|new|select|close|reopen |
Sidebar grouping and per-space tab management |
browser |
open, snapshot, read, find, get, is, diff, click, fill, type, press, select, drag, drop, upload, download, wait, dialog, eval, frame, pdf, set, webmcp, vitals, a11y, react, console, network, screenshot, highlight, detect-login |
Isolated-world CDP control, actionability checks, a11y trees, telemetry |
batch / exec |
batch <env> [--bail] [--no-changes] · exec <env> (--capabilities) |
Multi-step CLI pipelines with Delta Receipts; node:vm scripts |
net |
rules, rule add|enable|disable|remove, hits, body, passthrough, record, replay |
Built-in per-environment mocks, blocks, redirects, HAR record/replay |
notes / flow |
notes get|set|append|list|rm · flow steps|save|run|list|show|rm |
Per-domain agent notes (auto-injected into snapshots) & read-only GET flows |
vault / extension |
vault list|add|remove|fill · extension list|add|remove · shot diff |
SafeStorage secret autofill (stdin-only add), unpacked extensions, pixel diff |
plugin / skills |
plugin list|create|install|update|enable|disable|grant|run|rpc|logs|config · skills status|install|refresh|plugin |
v4 plugin lifecycle, dynamic skill synthesis, agent harness sync |
rpc / meta |
methods, call, events, evidence capture, help, warren --skill |
Live introspection across all registered RPC endpoints |
Sandboxed warren exec & Agent Skill Sync Examples
warren exec executes scripts inside a locked node:vm context exposing only 5 globals (page, console, setTimeout, clearTimeout, emitResult)—never process, require, fs, or raw network sockets:
warren exec dev <<'JS'
await page.goto('https://example.com');
const snap = await page.snapshot();
emitResult({ url: snap.url, interactiveCount: snap.nodes.length });
JS
warren exec --capabilitiesSynchronize Warren's base skill and all enabled plugin skills (SKILL.md + references/) directly into your local agent directories (~/.agents, ~/.claude, ~/.codex):
warren skills status
warren skills refresh
warren --skill --base-only # Base Warren manual only
warren --skill --plugin=<id> # Single plugin manualflowchart TB
subgraph Clients["Clients"]
direction LR
CLI["Coding Agent / CLI<br/>bin/warren.mjs · batch · exec"]
UI["React 19 Desktop Shell<br/>2-Row Chrome · Inspector · Settings"]
end
CLI -->|"Unix Socket + 0600 Token<br/>~/.warren/runtime/envd.sock"| RPC["RPC_REGISTRY<br/>src/main/rpc/*"]
UI <-->|"contextBridge IPC<br/>src/preload/preload.ts"| Core
RPC --> Core
subgraph Core["Electron Main Process (Core)"]
direction LR
Env["EnvironmentManager<br/>Lifecycle · Session · Lease"]
CDP["Isolated-World CDP<br/>Actionability · AXTree · OOPIF"]
Store["SQLite (WAL) + Vault<br/>~/.warren/core/warren.db"]
Plugins["PluginHost (v4)<br/>sandbox (node:vm) · host (ESM)"]
end
Core --> Layers["WindowLayerManager<br/>5-Layer Z-Order Stack<br/>below → page → devtools → shield → overlay"]
- Two-Row Minimal Chrome + Keep-Alive Shell:
- Row 1 (
40px): Sidebar collapse (⌘B), environment pill,Person | Agentspace switcher, tab strip, single lease/takeover pill (control release preserves the active view),⌘Kcommand bar trigger, global settings. - Row 2 (
40px): Navigation, decomposed URL bar with one-click copy, omnibox history popover, pluginstatusBadge/popoverslots, zoom, centered/scaled simulated viewport presets (390×844/1280×800/1440×900over a dotted canvas), direct Downloads trigger, DevTools, and right Workbench Inspector toggle. - Switching to full-page Settings or a plugin
railPagepreserves live sidebar and page views with zero teardown.
- Row 1 (
- 5-Layer Native Window Stack (
layer-order.ts): Every ChromiumWebContentsViewis ordered strictly bybelow → page → devtools → shield → overlaywith unified8pxcorners—guaranteeingOverlayHost(⌘K/ dialogs),PopoverHost(omnibox / downloads / find / plugin popovers), 3-layer WebGLInputShield, and resizable dockedDevToolsHost(right/bottomdraggable splitter +detach) never clip or occlude each other. - Clean Telemetry & Anti-Detection Hygiene: Warren never keeps
Runtime.enableorNetwork.enablepermanently attached. Console and network logs come from Electron's nativeconsole-messageandwebRequesthooks and persist per tab in SQLite (warren.db, retained across stop/hibernate and purged onenv remove). CSS/XPath locators run insidePage.createIsolatedWorldrather than polluting page globals. - Right Workbench Inspector & 6+N Settings: On-demand
360pxdrawer bundling 6 built-in tabs (events,snapshot,console,network,rules,storage) + plugininspectorTabcontributions, paired with a searchable 6-section Settings center (general,browser,agent,vault,plugins,diagnostics) + pluginsettingsSectioncontributions and light/dark (#181b21) theming.
Everything Warren persists lives under a single configurable data root (WARREN_HOME, defaulting to ~/.warren, defined symmetrically in src/main/paths.ts and bin/paths.mjs):
~/.warren/
├── app/ # Electron shell Chromium userData
├── core/
│ ├── warren.db # Unified SQLite WAL DB (envs, groups, history, telemetry, notes, flows, vault)
│ ├── sessions/<env>/ # Partitioned browser storage per Environment
│ └── plugins/<id>/ # Installed plugin bundles + isolated plugin data.db
├── runtime/
│ ├── envd.sock # Local Unix socket RPC server
│ └── runtime.json # Ephemeral 0600 auth token
└── whistle/ # Shared Whistle root CA & per-instance state (WHISTLE_PATH)
- Encrypted Vault without Reveal: Credentials are encrypted via Electron
safeStorage.warren vault add <provider> --label=<name>reads secrets strictly fromstdin(neverargv). External callers can only invokevault.list(ref+ maskedusernameHint) and domain-checkedvault.fill—prototype keys (e.g.,"toString") are rejected, and there is no plaintextrevealAPI. - Per-Environment CA & Proxy Auth: Setting
EnvironmentConfig.trustedCaverifies leaf certificates withX509Certificate.verifyinside that environment'sSessiononly; proxy auth inapp.on('login')denies immediately if no matching credential exists. - Human-Only Approval Policy:
controlPolicyand per-environmentapprovalrules can only be mutated via the desktop IPC channel—never via CLI/RPC.
Warren plugins are standard npm packages declaring metadata under package.json#warren (apiVersion: "4"), typed by @warren/plugin-sdk. See plugins/README.md for the full authoring guide.
- Subprocess Execution with Hard Timeout: Both
runtime: "sandbox"(restrictednode:vminside a worker process—norequire,fs, orprocess) andruntime: "host"(full Node ESM worker process) run inside killable child processes (utilityProcess.fork/child_process.fork) enforced by a30_000msdefault kill timeout (WARREN_PLUGIN_TIMEOUT_MS). Neither runtime is an OS-level malware sandbox—only install trusted plugins. - 8 Fail-Closed UI Surfaces: Zero-build frontend ESM (
warren-plugin://<id>/app.js) reuses hostapp.ui,app.shell, andapp.hostacrossrailPage,settingsSection,inspectorTab,envAction,envBadge,popover,statusBadge, andcommandBarAction. - Automatic Skill Injection: Enabled plugins synthesize
SKILL.mdandreferences/(capped at32KBper plugin) into the main Warren agent skill automatically.
Single source of truth in src/shared/permissions.ts (19 total permissions):
| Tier | Permissions | Policy |
|---|---|---|
granted (6) |
environment.read, browser.dom.read, browser.screenshot, ui.mount, storage.write, rpc.serve |
Granted on install |
confirm (8) |
environment.write, browser.navigate, browser.input, vault.fill, network.observe, network.fetch, storage.cookie.port, events.subscribe |
Requires explicit user approval (warren plugin grant or UI prompt) |
denied (5) |
browser.evaluate, storage.cookie.read, storage.cookie.write, process.spawn, filesystem.read |
Permanently denied, ignored even if declared |
| Plugin | ID | Runtime | Highlights |
|---|---|---|---|
| Whistle Proxy | com.warren.whistle |
host |
Isolated whistle@2.10.15 instances per environment (46 commands, 7 UI surfaces): HTTPS traffic capture, quickMock / injectFault / mapLocal intent groups, redacted replay diff, cURL export, and preflight doctor. |
| Account Manager | com.warren.accounts |
sandbox |
Zero-selector login autofill + RFC 6238 TOTP (16 commands, 5 UI surfaces). Explicit product exception: stores test credentials in plaintext in its own data.db with persistent UI warnings; agent channels never receive plaintext passwords/TOTP and enforce non-empty domain allowlists. |
| Notes | com.example.notes |
sandbox |
Per-environment & global agent memory/todo store (9 commands, 5 UI surfaces). |
| Login / Cookies / Host | com.example.{login,cookies,hosty} |
sandbox / host |
Minimal reference plugins demonstrating vault.fill, metadata-only storage.cookie.port, and host Node runtime. |
# Install & use a bundled plugin
warren plugin install path:plugins/whistle
warren plugin enable com.warren.whistle
warren plugin run com.warren.whistle presetPreview --input='{"storage":"<instance>","scenario":"test"}'
warren plugin run com.warren.whistle presetApply --input='{"storage":"<instance>","scenario":"test","expectedHash":"<preview-hash>"}'warren/
├── bin/ Agent CLI entrypoint (warren.mjs) & domain commands/*.mjs
├── src/
│ ├── shared/ Cross-process contracts (permissions.ts, plugin-host-api.ts, types/*.ts)
│ ├── main/ Electron Core: env/, ui/ (5-layer stack), browser/, net/, plugins/, rpc/, store/, vault/
│ ├── preload/ Type-safe contextBridge IPC preload
│ └── renderer/ React 19 + Vite 8 + Tailwind v4 + base-ui desktop shell
├── packages/plugin-sdk/ @warren/plugin-sdk TypeScript package contract
├── plugins/ Official & reference plugins (whistle, account-manager, example-*)
├── skills/warren/ Built-in Warren Agent Skill template
├── tests/ Node unit tests (71 files) + Vitest/happy-dom UI tests (tests/ui/)
├── scripts/ Fixture server, changed-test selector, and regression suite
└── docs/ Architecture plans, product specs, UI design language & handoff
npm run check:changed # Daily workflow: oxlint + prettier + tsc + git-diff headless tests
npm run test:ui # Headless React UI test suite (Vitest + happy-dom)
npm run check # Full headless CI gate: lint, format, typecheck, unit + UI tests, Vite build
npx tsc -p tsconfig.check.json # Full typecheck across src/, tests/, and @warren/plugin-sdk| Topic | Document |
|---|---|
| Docs index & reading order | docs/README.md |
| Architecture decisions & current state | docs/HANDOFF.md |
| Product requirements & CLI contracts | docs/PRD.md |
| Tech stack rationale | docs/TECH-STACK-RESEARCH.md |
| Design system & component contract | docs/ui-design-language.md |
| Plugin authoring guide & SDK | plugins/README.md · packages/plugin-sdk/README.md |
| Build, signing & notarization | docs/RELEASE.md |
Licensed under the MIT License.