Who it is forAn engineer investigating a complaint about a wrong or slow AI answer and needing to know which model produced it.
The problemWithout a central record, it is hard to tell which model, provider, or fallback produced a specific answer.
The outcomeThe engineer gets the routing explanation for one request ID, including the provider that actually answered.
What you need first
- Docker with Docker Compose, curl, and jq, or Go and Make for the native build
- At least one provider API key such as OPENAI_API_KEY or ANTHROPIC_API_KEY in .env
- A host with ports 8080 and 3000 free, or a changed GATEWAY_PORT
Steps
- Copy the
request_idfrom thesynapassblock of the response that needs review. - Run
curl -s $GATEWAY/admin/v1/requests/<request_id>/explain -H "Authorization: Bearer $SYNAPASS_ADMIN_KEY". (inferred, check the README) - Check the policy verdict, cache decision, and routing reason in the explain output.
- Compare
providerwithrequested_modelandrouted_modelin the original response to confirm what answered.
Prompt for your agent
In the ShadowSafin/Synapass repo, call GET /admin/v1/requests/<request_id>/explain with the admin key and summarize the routing reason and the answering provider. Verify that the summary names the same provider as the synapass.provider field in the original response.
Caveat. The explain endpoint is described in the README, but its exact response fields are not shown there, so check the output format against the documentation before you build automation on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ShadowSafin/Synapass and "Trace which provider and policy handled a bad AI answer"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer