Inspiration

The Open Agentic Web (MVP Profile 0.3) makes a bold architectural shift. Instead of hiding multi-agent intelligence behind centralized servers, a static website publishes a declarative agent graph and lets the visitor's own browser run it with the visitor's chosen model. That removes server lock-in, yet it exposes a fundamental limitation of tab-scoped execution.

Formally, a conventional browser agent behaves as a stateless map over a single session

$$ f_{\text{stateless}}(x_t) = \mathcal{R}(G, x_t) $$

where G = (V, E) is the published Neuro SAN graph, x_t is the prompt at turn t, and R is the visitor's LLM router. When the tab closes, learned preferences, trusted peer origins, and verified multi-step procedures collapse back to the empty set.

Inspired by Nous Research's Hermes Agent closed learning loop, we asked whether a purely static website with zero backend infrastructure could sustain a stateful, self-improving transition system strictly inside the visitor's browser sandbox

$$ S_{t+1} = \mathcal{T}\left(S_t, x_t, \mathcal{R}\right), \qquad S_t = \left\langle M_t, K_t, L_t \right\rangle $$

where M_t denotes browser-local context files (SOUL.md, USER.md, MEMORY.md), K_t denotes the procedural SKILL.md library, and L_t denotes a tamper-evident SHA-256 receipt chain. Pico was built to turn amnesiac agentic tabs into private, compounding, interoperable browser agents that anyone can host on GitHub Pages and any open agentic website can adopt in three lines of code.

What it does

Pico is a zero-dependency Open Agentic Web harness and procedural skill foundry that executes a 5-agent Neuro SAN topology directly inside ordinary web browsers.

1. Multi-Agent Browser Kernel (pico_foundry.network.json)

A front orchestrator (pico_orchestrator) delegates across four internal specialists (skill_foundry, memory_curator, peer_scout, trajectory_auditor) and consent-gated external peer networks, executing under strict finite resource bounds

$$ \mathcal{B} = \left(\text{steps} \le S_{\max},\; \text{depth} \le D_{\max},\; \text{remote} \le R_{\max},\; \Delta t \le T_{\max}\right) $$

2. Private Browser-Local Memory & Client-Side BM25 Recall

Pico stores character-budgeted SOUL.md, USER.md, and MEMORY.md files strictly in origin-scoped browser storage, subject to a hard character ceiling per document. Cross-session retrieval ranks context lines and past session summaries locally with Okapi BM25 (k1 = 1.5, b = 0.75)

$$ \operatorname{BM25}(Q, d) = \sum_{q \in Q} \ln\left(1 + \frac{N - n(q) + 0.5}{n(q) + 0.5}\right) \cdot \frac{f(q, d)(k_1 + 1)}{f(q, d) + k_1\left(1 - b + b \cdot \frac{|d|}{\operatorname{avgdl}}\right)} $$

A periodic consolidation trigger fires whenever turns since the last memory update reach the nudge interval (nudgeInterval = 3), prompting memory_curator to snapshot an atomic checkpoint before updating MEMORY.md. Restoring a checkpoint is classified as an irreversible site action guarded by a runtime-owned confirmation dialog.

3. Procedural Skill Foundry & Network Compiler

Completed multi-step workflows are distilled into portable agentskills.io SKILL.md documents with automatic semantic patch version bumps. Progressive disclosure keeps prompt overhead linear in lightweight metadata rather than full skill bodies

$$ \mathcal{O}\left(|K| \cdot L_{\text{meta}} + L_{\text{body}}\right) \;\ll\; \mathcal{O}\left(|K| \cdot L_{\text{body}}\right) $$

Any stored SKILL.md compiles in-browser via a structure-preserving compiler map

$$ \Phi(\text{SKILL.md}) \longmapsto N_{\text{MVP-0.3}} \in \mathcal{N} $$

producing a standalone, validated Neuro SAN .network.json artifact ready for immediate web publication.

4. Consent-Gated Cross-Origin Peer Web & Bidirectional Action Bridge

Before contacting any external origin outside the caller site, Pico enforces a closed peer policy and displays an explicit Consent Card showing the destination origin, exact network name, bounded request preview (at most 140 characters), and isolation guarantees. The peer's .network.json is fetched with credentials omitted and executed locally on the visitor's own router. In the reverse direction, Pico publishes an nsdeploy-actions-v1 Action Bridge (bridge/action-bridge.html) over a sandboxed iframe and MessageChannel so companion sites such as Marrow Field Notes can invoke three read-only public actions (list_public_skills, search_public_skills, validate_network_json) without ever touching private memory.

5. Deny-By-Default sly_data Firewall & SHA-256 Receipt Ledger

Every delegation hop, consent decision, and filtered payload is appended to a Web Crypto SHA-256 hash chain initialized at h_0 = GENESIS

$$ h_i = \operatorname{SHA256}\left(h_{i-1} \;\Vert\; i \;\Vert\; t_i \;\Vert\; e_i \;\Vert\; \operatorname{scrub}(p_i, K_{\text{BYOK}})\right) $$

yielding cryptographic tamper detection across the entire execution trace and one-click sanitized JSONL trajectory export.

How we built it

We built Pico from first principles using standard open web primitives (HTML, CSS, native ES Modules, Web Crypto, MessageChannel, and JSON) with zero npm runtime dependencies and zero backend services.

The architecture decomposes into cleanly bounded runtime modules under runtime/

  • hocon-parser.js parses both resolved .network.json and canonical .hocon files, rejecting unresolved include directives, ${...} substitutions, duplicate agent names, dangling references, invalid front_man declarations, and server-side executable classes before any model invocation.
  • oaw-engine.js runs the multi-agent orchestration loop with active-stack cycle detection. Letting pi denote the active call stack, the transition guard enforces

$$ v_{\text{next}} \in \pi \;\Longrightarrow\; \operatorname{HALT}(\text{cycle}), \qquad v_{\text{next}} \notin \pi \;\Longrightarrow\; \pi' = \pi \mathbin{\Vert} \left(v_{\text{next}}\right) $$

which halts recursive cycles (A -> B -> A) while still permitting valid sequential re-invocations (A -> B, return, A -> B).

  • sly-firewall.js implements destination-scoped private-context projection for a context map C, destination allowlist A_d, and secret-key predicate S_secret

$$ \Pi_d(C) = \left\lbrace (k, \operatorname{scrub}(v)) \in C \;\middle|\; k \in A_d \;\land\; k \notin S_{\text{secret}} \right\rbrace $$

At every cross-origin peer boundary, A_d defaults to the empty set, guaranteeing strict non-interference for visitor credentials

$$ K_{\text{BYOK}} \;\notin\; \operatorname{Img}(E_{\text{peer}}) \;\cup\; \operatorname{Img}(L) \;\cup\; \operatorname{Img}(M) $$

  • llm-router.js decouples the agent graph from inference, supporting Mozilla Otari (US and EU hosted endpoints defaulting to alibaba/qwen3.8-flash), OpenRouter, OpenAI, local Ollama, custom OpenAI-compatible gateways, and a deterministic zero-key Local Demo Engine that emits genuine OpenAI tool_calls executed by the real OawEngine.
  • site-actions.js registers 11 typed site capabilities validated against JSON Schema with effect classifications (read, write, irreversible) and runtime-owned confirmation gates.
  • peer-bridge.js provides the live MVP Profile 0.3 peer conformance auditor and both ends of the nsdeploy-actions-v1 MessageChannel bridge.
  • sdk.js packages the entire harness into a 3-line drop-in module for any Open Agentic Website
import { createPicoHarness } from "./runtime/sdk.js";

const manifestUrl = "./agent-manifest.json";
const pico = await createPicoHarness({ manifestUrl });
const res = await pico.ask("Audit a peer site and distill a SKILL.md");
console.log(res.text, res.receiptHash);

On the front end, we engineered the Signal Graphite design system (index.html, styles.css, app.js) with native light and dark themes, inset-canvas framing, Geist Pixel telemetry typography, Bayer ordered-dither dot-matrix charts that read CSS custom properties directly at render time, an interactive heat-glow spatial agent mesh, and a matching amber-accented companion peer site (demo-peer/index.html).

Challenges we ran into

1. Browser CORS Semantics Versus CLI Fetching on Subpath Peer URLs

Under MVP Profile 0.3, a peer reference such as example.com/network_name can represent either a site base or a parent base plus a named network. When probing the child path first, a 404 served without Access-Control-Allow-Origin returns a normal HTTP response in Node, yet throws an opaque TypeError in Chromium's fetch engine. Because our initial retry only checked !res.ok, browser audits aborted before falling back to the parent manifest. Refactoring auditPeerSite to catch thrown probes and fall back deterministically resolved live cross-origin auditing for peers such as Agent Atlas while keeping fail-closed rejection intact for malformed graphs such as Rayo.

2. Relative Module Resolution Inside Sandboxed Action Bridge Iframes

Inside bridge/action-bridge.html, resolving ./bridge-actions.js against location.href produced .../action-bridge.html/bridge-actions.js, triggering a silent 404 during cross-origin MessageChannel handshakes. Normalizing base resolution against the bridge directory (new URL(".", location.href)) restored full bidirectional invocation across origins.

3. Static Host Dot-Directory Filtering

GitHub Pages runs Jekyll by default and suppresses dot-directories, causing /.well-known/agent-card.json and /.well-known/nsdeploy.json to return 404 in production even though local tests passed. Adding .nojekyll and auditing live production headers caught and fixed the issue immediately.

4. Keeping Browser Privacy Ironclad Across Every Leak Surface

Preventing credential and sly_data leakage required defending multiple channels simultaneously (peer HTTP headers, delegated prompts, local memory writes, receipt payloads, and JSONL exports). Routing all persistence and telemetry through a single deep secret scrubber and verifying every invariant in automated tests eliminated silent drift.

Accomplishments that we're proud of

  • Full MVP Profile 0.3 Conformance Verified Both Automatically and Live In-Browser All 7 required interoperability checks run directly inside the live UI (Peer Web -> Run 7 checks) and are backed by 19/19 passing automated unit, security, and live HTTP/CORS tests (npm test and npm run validate).
  • Four Beyond-MVP Extensions Shipped Together Pico combines (1) a Hermes-inspired browser-local learning loop with BM25 recall and checkpoints, (2) a live SKILL.md to .network.json compiler, (3) a bidirectional nsdeploy-actions-v1 cross-origin Action Bridge with a live second-origin companion site, and (4) a 3-line community SDK (runtime/sdk.js).
  • Cryptographic Proof of Privacy and Execution Integrity Every single hop, policy decision, and firewall action produces a verifiable SHA-256 hash chain where even a 1-byte mutation breaks chain verification immediately.
  • Zero-Key Instant Evaluation With Seamless Upgrade to Mozilla Otari Judges and visitors can explore real multi-agent delegation, live cross-origin consent cards, memory recall, skill compilation, and receipt verification immediately with zero setup, then switch to Mozilla Otari or any BYOK router in two clicks.
  • Cohesive Product Craft in Light and Dark Modes Rather than stopping at a prototype console, we built a responsive, keyboard-accessible telemetry studio with live Bayer-dithered SVG visualizations, an interactive agent topology mesh, and zero flash-of-unstyled-theme on load.

What we learned

  • Declarative Data Graphs Plus Browser Sandboxes Are Surprisingly Powerful Moving execution into the visitor's browser flips the economics and trust model of agentic apps. Static hosting scales effortlessly, visitors keep custody of keys and memory, and peer composition requires no central registry.
  • Fail-Closed Validation Is Essential on the Open Web Auditing real live community peers demonstrated that broken internal references and missing CORS headers occur in the wild. Validating schemas and graph integrity before the first model call prevents wasted inference and opaque failures.
  • Runtime-Owned Trust Boundaries Beat Prompt-Only Safety Treating peer instructions as untrusted model input while enforcing consent cards, cycle guards, budget ceilings, sly_data allowlists, and irreversible-action confirmations in deterministic JavaScript makes safety testable with mathematical precision.

What's next for Pico - Self Improving Browser Agent

  • Strict Cross-Origin Redirect Re-Consent and Write Unknown-Outcome Semantics Adding explicit redirect-origin inspection so cross-origin redirects trigger fresh consent evaluation, alongside distinguishing interrupted write operations as unknown_outcome per the stricter RFC-2119 edges of MVP Profile 0.3.
  • WebGPU and WebLLM On-Device Inference Adapter Plugging local WebGPU models directly into runtime/llm-router.js so visitors can run the entire 5-agent learning loop offline with zero network inference calls.
  • Live Browser MCP Client & Authenticated OAuth Bridges Extending the existing MCP descriptor validator in hocon-parser.js into a consent-gated browser MCP client with endpoint-scoped credentials completely isolated from BYOK LLM keys.
  • Cryptographic Artifact Pinning & Community Skill Index Adding Subresource Integrity (SRI) pinning for imported peer networks and an open, decentralized index where static agentic websites can discover, verify, and remix signed SKILL.md bundles across the worldwide agentic web.

Built With

  • a2a
  • agentskills
  • bm25
  • cors
  • css3
  • es-modules
  • hermes-agent
  • hocon
  • html5
  • javascript
  • json
  • json-schema
  • localstorage
  • markdown
  • mcp
  • messagechannel
  • mozilla-otari
  • neuro-san
  • node.js
  • ollama
  • open-agentic-web
  • openrouter
  • svg
  • web-crypto-api
Share this project:

Updates

Submission history