Agentify Kit
Make a static small-business website an open agentic website in an afternoon. One folder, no build step, no server, no dependencies. MIT licensed.
Why
Most small businesses run on a static site with a contact form. Visitors' AI agents can't price a job, see free slots or place a request there, and the owner can't afford a hosted agent backend. Agentify Kit keeps the business rules in the site's own code, publishes the agents as public data (MVP Profile 0.3), and runs them in the visitor's browser on a free demo model or the visitor's own key.
Three files and one script tag
agent-manifest.json: your networks, router, peer policy and the actions agents may use.<network>.network.json: your agents in the Neuro SAN data model (and the same data as.hocon).site-actions.js: your operations, each with a JSON Schema and an effect.
<script type="module">
import { mountAgentify } from "./agentify/agentify.js";
mountAgentify({ manifest: "./agent-manifest.json", network: "my_bakery" });
</script>
Declare what your site can do
// site-actions.js
export async function registerActions(registry) {
registry.register({
name: "quote_cake",
effect: "read", // read | write | irreversible
availability: "bridge", // also share this read with partner sites
description: "Price a celebration cake by size and flavour.",
inputSchema: { type: "object", required: ["size"], additionalProperties: false,
properties: { size: { type: "string", enum: ["6in", "8in", "10in"] } } },
execute: ({ size }) => ({ ok: true, total: { "6in": 38, "8in": 52, "10in": 70 }[size] }),
});
}
The runtime, not the model, owns safety: it validates arguments against the schema, shows the visitor the destination and arguments before any write, binds a request id and argument digest to the receipt, reports timeouts after a write as unknown and never retries them, and can verify() the business outcome after a write.
What the runtime enforces
- Validation before any model call: malformed networks, duplicate or missing agent references, wrong front agent, unresolved HOCON, unsupported coded tools.
- Agent loop with streaming, tool calls, delegation, error propagation and bounded history.
- Peer loading by URL (
https://site/base/network→agent-manifest.json→ exact name → definition), with a consent card per contact naming the origin and request. - Private context (
sly_data) is never in prompts and is deny-by-default across sites; only fields anallowrule names pass. - The visitor's key goes only to their router; peers inherit the caller's router and can't change it.
- Limits on composition depth, agent invocations, remote calls, concurrency, steps and wall time; cycles stop with a visible error.
- Optional read-only cross-site action bridge (
agentify-bridge/v1) using origin-checkedpostMessage. - MCP client (Streamable HTTP) with consent before discovery and each call.
Demo mode for every site
Give mountAgentify a playbooks object to script a deterministic demo model per agent. It calls the same tools through the same runtime, so judges, customers and CI can try your agents with no key. Visitors switch to their own OpenAI-compatible router (OpenRouter, Mozilla Otari, OpenAI, Groq or a local Ollama) under Model.
Starter generator
Fill this in to get starter files for your own site.
agent-manifest.json
network.json
Validate them with node tools/validate.mjs path/to/agent-manifest.json before you publish, then check the live site with the Inspector.