Skip to Main Content

prefixgate is a real-time safety gate for AI agent tool calls. Agents now delete files, move money and call APIs faster than anyone can review them, and most guardrails only check a call after it is fully written. prefixgate reads an agent's tool call token by token as Llama 3.2 3B Instruct (Meta open weights, running on CPU) streams it, and for every prefix decides allow, deny or escalate. Its thresholds are calibrated with Learn-then-Test, which gives a statistical bound on how often a bad call slips through. Nothing is ever executed: risky calls are held for a human before they run. Real results (24 generated agent tasks, CPU only): 14 of 16 risky calls were held for a human, 6 of 8 safe calls were allowed straight through, and 6 of 24 calls were decided before the call finished streaming. Two risky calls still got through, and we report that honestly in REPORT.md. The repo includes a live dashboard (make demo), a recorded-runs replay on a Hugging Face Space (https://huggingface.co/spaces/sroda/prefixgate), tests, CI and a full report.

Team

Sebastianroda

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview