Sans
Sans reads any recipe from its URL, shows which of the 14 EU allergens it contains, and rewrites it without the ones you can't eat. The rule throughout: the model proposes, PHP decides. Agents with typed answers (a PHP class as response_format) extract the ingredients and match them to a reference of 2,000 foods, indexed in Meilisearch with the Store component and queried with a HybridQuery. The matcher's tool exposes its sources, so PHP only accepts an ingredient the search really returned, and every allergen verdict is a plain lookup in that reference. To adapt a recipe, an adapter agent proposes swaps and checks them with a tool that is itself the matcher agent; PHP refuses any swap that isn't safe. For "may contain" ingredients, an agent uses the Open Food Facts MCP server as its tool belt, and PHP reads the product counts through the same MCP connection. Sans is also an MCP server itself, built with the PHP MCP SDK. When an ingredient can't be identified, Sans says so and lets you declare its allergens.
Play the video on YouTube
1:30
2 comments
It solves a real problem, and it draws a line between where we need deterministic algorithms and where we need the creativity of AI.
Again, something with real-world impact, and an idea I hadn't seen before: a recipe book where you link recipes and the AI changes the ingredients to filter out everything you cannot eat. It really highlights how the code we write or generate can have real-world impact.