Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for Sage Garden

Inspiration

Advice apps hallucinate quotes; philosophy sites are static walls of text. We wanted the opposite: a wisdom guide where every quote is checked character-for-character against its source before it may be cited, and where the whole thing is not a SaaS but a published, portable agent network that any conforming browser can load — the actual promise of the open agentic web. The garden pairs Chinese classics (Zhuangzi, Wang Yangming, Zeng Guofan) with world thought (the Stoics, Socrates, Kahneman, Frankl) because the best answers to modern struggles often come from two traditions converging.

What it does

  • Ask: bring a real struggle (comparison, procrastination, a hard decision). The Sage Guide front agent orchestrates a Sage Retriever (bilingual keyword-evidence search over 36 curated sage entries) and a Sage Verifier (fetches full entries, checks every quote exactly). The guide may only cite what the verifier returns, and answers with exact quotes, era/tradition sources, and one practical action per sage.
  • The Garden: a three.js constellation where every star is a sage on a river-of-time layout; click a star or card for the quote, core idea, a "try this today" action and an interactive self-check quiz. Bilingual UI data (English + Chinese source).
  • Open agentic surface: publishes an agent manifest, a resolved data-only Neuro SAN network JSON, a links file, and a SHA-384-verified coded-tool bundle. Other agentic websites can load this network into their own browser runtime, or call four read-only site actions (find_sages, get_sage_card, sage_of_the_day, list_traditions) through the review-gated action bridge.
  • BYOK: visitors plug in any OpenAI-compatible router (OpenAI, Mozilla Otari, Google AI Studio, OpenRouter, Ollama). The key stays in origin-scoped browser storage and goes only to the chosen router — never to the site or any peer.

How we built it

  • Conformance first: implemented against the Worldwide Agentic Web MVP Profile 0.3 spec and vendored the official nsDeploy browser runtime (Cognizant AI Lab, Apache-2.0) so a normal tab is the entire agent container — no server, no registry.
  • Grounded tools as sandboxed code: the four knowledge tools are a self-contained JS bundle executed in an isolated Web Worker with no network access, verified against an SRI digest declared in the manifest, served under the required fail-closed CSP.
  • Deterministic bilingual retrieval: keyword-evidence scoring (Chinese bigrams + English tokens) over topic, one-liner, core idea, quote and tradition fields; every candidate ships its matched evidence.
  • Verification gate as an agent: quote-checking is not a prompt hope but a separate agent whose tool output is the only citable material.
  • Static hosting: Netlify with custom headers for artifact CORS and the sandbox CSP. A conformance self-check runs the official nsDeploy kernel validator; a Playwright end-to-end test boots the runtime in real Edge, executes a sandboxed tool, and confirms SRI fail-closed rejection.
  • One documented runtime patch (Apache-2.0 §4(b), noted in NOTICE): the LLM runtime preserves provider extension fields (e.g. Gemini's thought_signature) on streamed tool calls, so multi-turn tool calling works with Gemini 3.x models. Verified live: a full three-agent turn on the deployed site with a Gemini flash-lite model (129 execution events, real-LLM badge).

Challenges we ran into

  • The coded-tool sandbox fails closed without an exact CSP on the worker file — GitHub Pages cannot set headers, so hosting choice became a conformance decision (Netlify custom headers).
  • Keeping the tool bundle truly self-contained (no imports) while sharing retrieval logic with host-side actions: one source file, inlined into the bundle at build time.
  • Making "grounded" real: separating retrieval, verification and composition into three agents so the guide structurally cannot quote unverified material.

Accomplishments we're proud of

  • A complete product, not a proof of concept: 3D garden, 36 bilingual cards, quizzes, daily sage, tradition filters, and a working agent chat — all static.
  • 24/24 conformance checks against the official kernel; sandboxed tool execution and SRI tamper-rejection verified in a real browser.
  • Wisdom that travels: any conforming runtime on any origin can load the sage_garden network and run it with the visitor's own router.

What's next

  • Peer federation: link the garden to other agentic sites (e.g., a journaling node) so a visitor's reflection flows across sites with consent.
  • More sages and source texts, community-curated under CC-BY.
  • An A2A Agent Card export for broader discovery.

Built With

Share this project:

Updates

Submission history