Inspiration
Repair cafés solve a real problem — throwaway appliances and the people who would rather fix them — but most of the waste happens before anyone picks up a screwdriver. A volunteer session is two hours long. An item with the wrong part, an unrealistic time estimate or a fault nobody at the bench should touch consumes a slot that another household needed. Meanwhile the visitor carries a broken thing across town on a Saturday morning to find out it cannot be fixed here.
The useful decision is not “chat with an appliance”. It is: what is this, is it safe for this bench, what will it take, do we have the part, and when should this person come in? That is a small, safety-bounded multi-agent problem, and it is a good fit for a website that other agentic sites can call.
We also wanted the opposite of a demo that looks agentic but hides a fragile prompt. The safety rule — never book a microwave, a gas hob or a swollen battery — should live in published data and be enforced by the runtime and the site actions, not by asking a model nicely.
What it does
Benchlight is a working volunteer repair café website with a portable agent network published alongside it.
A visitor describes a fault in plain words. The site:
- Matches a published guide and shows the safety class (
safe,caution,stop), not just a guess. - Refuses stop-class work. A sparking microwave becomes a referral to a qualified technician plus the council recycling route. No slot can be booked for it, even through a direct tool call.
- Plans the bench session from guide data and the visitor's stated skill level: minutes, tools, steps and the exact parts to pull.
- Checks the shelf with real stock and shelf letters, and flags out-of-stock lines.
- Books a real slot with capacity, then builds a printable ticket with the parts, checks and steps — the same ticket the assistant describes.
- Asks the Parts Co-op for a donor part when the shelf is empty. The co-op
is a second published agent site with its own manifest and network. It runs
in the visitor's browser after a consent dialog, and it receives only
appliance_model,part_numbersandregion. Names, contact details, postcodes and notes are withheld and scrubbed from free text. - Works with no key. A guided planner drives the same network and the same site actions; every number comes from a tool result. A visitor can optionally add any OpenAI-compatible router, model and key in Settings, and the graph is unchanged.
The page also validates and displays the manifest, resolved network, budgets, action list and peer policy in the browser before any model call.
How we built it
- A small original runtime (
runtime/agentic-runtime.js, no dependencies) that loads and validates the manifest and resolved network, runs the agent graph with JavaScript, validates JSON Schema arguments, confirms writes, enforces finite budgets, loads peer networks under consent, and filters private fields by an explicit allow-list. - A deterministic site backend (
bench/engine.js) for guide matching, safety classes, skill-adjusted minutes, shelf checks, booking capacity and tickets. The agent can only see the site through nine named actions, and the page's own buttons call the same actions. - A published HOCON/JSON network of five agents (
bench_concierge,fault_triage,bench_planner,shelf_keeper,bench_scribe), with a build check that fails if the published resolved JSON drifts from the authored source. - A second agent site, the Parts Co-op, with its own manifest, network and donor list, reachable through a declared peer link and per-origin consent.
- Vanilla HTML/CSS/ES modules, deployable to GitHub Pages, with keyboard labels, reduced-motion support and print styles.
- 42 Node tests plus a headless-Chromium capture script that drives the real page for the screenshots and the silent demo video.
Challenges
- Safety has to survive the model. We made the stop-class decision a lookup in published guide data, returned by a read tool, and re-checked in the booking action. A model that hallucinates a slot for a microwave still cannot write one.
- One source of truth for the page and the chat. Both call registered site actions; the ticket and the chat answer are built from the same booking and guide records.
- Consent that is meaningful, not decorative. The peer record names the origin, the fields that may pass and the fields that are withheld; approval is per session; the outbound arguments are filtered and free text is scrubbed.
- A keyless mode that is not a canned script. The guided planner selects a tool pipeline from the visitor's words and composes the answer from real tool results, so the demo is useful before anyone supplies a key.
- Honest UX around a long chat and a sticky panel. A sticky assistant card covered the settings and spec panels on desktop; the capture pass caught it and we put the card back in normal flow.
Accomplishments
- A complete, coherent product: triage, safety referral, schedule, booking, printable ticket, assistant, optional BYOK settings, peer consent and an in-page conformance panel.
- A working multi-origin peer path with explicit private-field filtering and a covering test.
- A runtime that rejects cycles, duplicate agents, executable definitions, unknown schema keywords and malformed artifacts before any model call.
- A keyless path that is deterministic and grounded, and a BYOK path that changes only the inference provider.
- Everything statically deployable, tested and reproducible without paid services or accounts.
What we learned
- The interesting part of an agentic website is the product boundary, not the model call: which actions exist, which are writes, what must be confirmed, what may cross an origin, and what a bad answer is allowed to do.
- Data-only networks are a good fit for civic services because the safety policy can be published and audited alongside the agents.
- A deterministic fallback makes an agentic site demonstrable, testable and useful with no key — and makes the model's contribution easier to judge.
- Consent dialogs need to say what is withheld, not only what is sent.
What's next
- Swap the sample café data for a real group's guides and shelf, with a small publishing workflow and a build check (the format is already data-only).
- Add a volunteer-side view: aggregate demand, part shortages and referral follow-up, still browser-local by default.
- Let the co-op publish signed donor lists and support a federated set of partner sites, not one link.
- Add an MCP facade and a CORS-enabled public endpoint so non-browser agents can call the same actions.
- Accessibility and translation passes with an actual repair café.
Built With
- agent-network
- byok
- cors
- css
- es-modules
- github
- headless-chromium
- hocon
- html
- javascript
- json-schema
- node.js
- open-agentic-web
- openai-compatible-apis