Proxy
The AI that answers for me.
01
Overview
The AI assistant on this portfolio. It answers questions about my projects, skills and career using only my own notes, through the chat widget on the site and a public API, with layered protection, a capped cost and a red-team test suite behind it.
02
Achievements
- 01
Layered protection for a public AI endpoint
View full case studyCombined Tor blocking, Cloudflare Turnstile, per-IP rate limits, a shared daily budget and an owner-only authenticator pass, so a request that should not reach a model never does.
- 02
Evaluation and quality gates
View full case studyLimited replies to my own notes and checked them with an evaluation suite that runs the real assistant against realistic questions and adversarial, multi-turn attacks, covering the route taken, the widget shown, required and forbidden wording, answer length, prompt injection, false claims and leaks of its own instructions or tool calls, plus automated tests, so every prompt or routing change is measured before it ships.
- 03
Privacy before the provider
View full case studyRedacted personal data such as emails and phone numbers from every visitor message before it reaches an AI provider or the question history, and told visitors in the widget how long questions are kept, so privacy is enforced in the request path instead of promised in a policy.
- 04
Designed to fail safely
View full case studyGave every failure a defined outcome: keyword rules take over if the router model fails, a fixed sentence replaces an empty model reply, canned answers handle abuse and private-life questions without any model call, and the widget shows a clear state when a limit is hit.
- 05
Two-stage routing
View full case studyUsed a small router model (Jev) to send only the part of the notes a question needs, about 1,000 tokens for a typical question instead of the whole knowledge base.
- 06
Cost and latency you can measure
View full case studyKept a typical answer at about $0.0001 with a computed ceiling of about $7 a month at the 300-requests-a-day cap, added a cost calculator to check any limit before changing it, logged per-stage timings on every request, and measured the effect of the model's reasoning-effort setting.
- 07
Operable in production
View full case studyAdded question history in D1, email alerts through Cloudflare Email Routing, a version endpoint, release-please releases, a deploy smoke test, and rollback and backup runbooks.
03
Architecture
Interactive: pick an option and tap a step to explore
How a question is answered
The question passes the checks, the router picks the part of the notes it needs (a small model, with keyword rules as the fallback), and the main model writes a short answer from only that context. Project cards or a contact card are added when they help.
04
Timeline
- CodingSpace India
- Augment
- Proxy
- Active
- 2026 – Present
- Where
- Side project
- How it started
- From scratch
05
The stack
06