# Synapse — The Quality Gate

- **Event:** [Built with Opus 4.7: a Claude Code hackathon](https://cerebralvalley.ai/e/built-with-4-7-hackathon)
- **When:** Apr 21 at 12:00 PM – Apr 27 at 2:00 AM (EDT)
- **Where:** Online
- **Team:** [Ken Burbary](https://cerebralvalley.ai/u/pqs)
- **GitHub:** https://github.com/OnChainAIIntel/synapse-demo
- **Demo video:** https://youtu.be/sbeiYIjw-uo
- **Gallery:** https://cerebralvalley.ai/e/built-with-4-7-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/built-with-4-7-hackathon/hackathon/gallery/46

Synapse is an AI quality gate that measures and optimizes prompt inputs before they reach a model, and prevents bad inputs from being executed.

Built on Anthropic's Opus 4.7 Managed Agents API, Synapse uses a custom tool (PQS, the Prompt Quality Score) to grade every input across eight dimensions: clarity, specificity, context, constraints, output format, role definition, examples, and chain-of-thought structure. When a prompt grades D or F, the agent refuses to answer it and rewrites it instead, then re-scores the rewrite to verify the lift.

The same gate runs in two surfaces. The human-facing demo at synapse.promptqualityscore.com lets anyone paste a prompt and watch Opus 4.7 grade, refuse, rewrite, and re-grade in real time. The agentic-economy surface at /marketplace shows two autonomous agents transacting on-chain via x402 USDC on Base mainnet, with the same quality gate running between them.

AI input quality is the missing measurement layer in the AI economy. Conservatively, ten billion dollars in compute is burned annually on inputs that were never going to work. Synapse is the gate that reclaims it.

---

Markdown version of https://cerebralvalley.ai/e/built-with-4-7-hackathon/hackathon/gallery/46. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
