Starter app for gating AI tool calls before they reach real executors.
Live demo: https://aeg-intent-gate-starter.pages.dev
It shows:
- OpenAI-style function calls
- browser approval queue
email.sendrequires approvalrefund.createrequires approvaluser.deleteis blocked- approved commands route to a fake executor
npm install
npm startOpen:
http://localhost:3344
This starter includes a Cloudflare Pages Functions entrypoint in functions/[[path]].js.
Use these settings when connecting the GitHub repo to Cloudflare Pages:
- Framework preset:
None - Build command:
npm ci - Build output directory:
public - Root directory:
/
Preview locally with Wrangler:
npm run pages:devDeploy manually:
npm run pages:deployDo not send raw model tool calls directly to application code. Gate them first, then let executors accept only approved command objects.