Stuck on a complex bug, security concern, or architecture review? Let your autonomous agent phone a specialized friend. Secure auto-routing, native PII scrubbing, and cost-limit safety loops — built directly for the Agent Platform.
auth_helper.py. Triggering peer audit:admin_token = "jwt_secret_xyz" → [REDACTED_TOKEN_0]{
"verdict": "needs_changes",
"findings": [
"L42: 🔴 bug: user null after .find(). Guard before .email.",
"L88: 🟡 risk: no retry on 429. Wrap withBackoff(3).",
"L120: 🔵 nit: extract validate/normalize/persist."
]
}Letting agents query external LLMs directly leads to runaway token bills, leaked credentials, and duplicate execution cycles. Ask a Friend inserts a secure telemetry, caching, and scrubbing layer right at the transit gate.
Calling raw endpoints from within dynamic agent prompts without filters or budgets:
A dedicated security proxy that manages queries, scrubs PII, and validates cost caps:
Deploy in standard Node-based Model Context Protocol (MCP) environments, or run the Python CLI directly inside terminal routines. Hooks seamlessly into both local workflows and cloud Agent Platforms.
A lightweight interceptor scrubs authorization headers, emails, tokens, and credentials out-of-band pre-transit, mapping them to a local secure lookup table for seamless rehydration.
An embedded SQLite database tracks rolling cost metrics over 5-hour sliding windows — hitting the brakes on runaway loops before bills spike.
Generates SHA-256 hashes from prompts, contexts, and target models to bypass duplicate network transit with near-zero latency.
Resolves the strongest models dynamically: code_review maps to claude-garden, while structural tests map to efficient gemini-pro.
Visualize session queries, inspect cached responses, monitor budget caps, and audit out-of-band PII logs in a single glassmorphic Run Explorer.
From input capture and config resolution, to PII scrubbing, out-of-band routing, and structured presentation.
Fired by /ask-friend, auto-routines, or standard tool invocation.
Interceptor isolates the payload and strips DB strings and auth keys.
Resolves the task type and dispatches to the strongest model.
Responses are mapped back to local tables to re-inject safe identifiers.
The budget DB logs token weights and commits cache entries.
Deploy via the npm-based MCP server, or execute locally with the Python runtime CLI.
Expose the Ask a Friend skill via the Model Context Protocol. Start the STDIO listener:
Add to your Cline / Cursor MCP config:
Execute directly, passing payloads via stdin:
Or feed queries via environment variables:
Set client parameters in ~/.config/ask-a-friend/config.json: