Reviewing itself
- Same training data, same habits
- Repeats the assumption that caused the bug
- Agrees with itself — confidently
- You get a rubber stamp, not a review
Open source · Self-hosted on your own Google Cloud
Your coding agent is confident. Confidently wrong, sometimes. Ask‑a‑Friend lets it phone a friend — a completely different model that reviews the work, finds what the first one missed, and reports back. All in one tool call.
if (token === process.env.API_SECRET)
ask_a_friend…
=== short-circuits on
the first wrong byte. An attacker can guess your secret one character at a time.
crypto.timingSafeEqual()
First things first
No jargon. Here's the whole idea in about thirty seconds.
Before USB, every device needed its own weird connector. MCP — the Model Context Protocol — does for AI what USB did for hardware. You build a capability once, and every MCP-compatible app can plug into it: Claude, ChatGPT, Cursor, Gemini CLI, and whatever ships next month.
"Review this before I merge it." Normal request, in whatever app you already use.
Your agent sees an ask_a_friend tool is available and decides to call it —
no prompting gymnastics required.
Our server scrubs your secrets, routes to a different model, and streams the answer back into your chat. You never leave the app.
That's it. MCP is just the plug shape. Ask-a-Friend is what you plug in.
The actual problem
Asking a model to check its own work is like proofreading your own essay at 2am. It re-reads what it meant to write.
API keys, tokens, private keys, emails, and /Users/you/… paths are
redacted before the request goes out, then restored in the reply.
You deploy it to your own Google Cloud project. There's no middleman service, no shared instance, and no one else's logs.
Identical questions hit a SHA-256 cache instead of the model, so repeat reviews are instant and free.
Live demo
This is a faithful simulation of the real pipeline — same stages, same order. It starts on its own; pick a different question any time.
You send
What happens
The friend says
The roster
Ask for one by name, or let it route automatically based on what you're asking.
opus-5-5
The thorough one
Deep reasoning for security audits and architecture critiques. Thinks hard, searches the live web, and writes up to 128K tokens of findings.
sonnet-5
The quick one
Same family, faster turnaround. Good when you want a sanity check on structure rather than a full forensic audit.
gemini-3.8-flash
The other perspective
An entirely different lineage, which is the whole point. Grounded in Google Search, and the automatic fallback if Claude is busy.
Two minutes
Deploy to your own Google Cloud project, then paste one config. Pick your app:
git clone https://github.com/mbettan/ask-a-friend-mcp.git
cd ask-a-friend-mcp
./deploy.sh <YOUR_GCP_PROJECT_ID>
The script enables the APIs, generates your API key, and prints your server URL.
Replace your-cloud-run-url.run.app with the URL the deploy script printed.
Next time your agent is about to ship something questionable, it'll ask a friend first.