How to ship a public AI agent safely: session limits, per-session tokens, least privilege
rseroter · x · 2026-11-24
Google DevRel engineer Daniela Petruzalek published a guide on shipping public-facing AI agents without breaking the budget, opening with the viral McDonald's chatbot hoax (fake, but the underlying risk is real).
Core recommendations:
- Constrain turns and token usage per session so free tiers aren't used as free compute
- Apply least privilege to tools and data access
- Additional engineering practices to limit abuse
Part 6 of her Go + Gemini agents series, aimed at developers deploying agents to the open internet.
More from coding & agent
- Dev: Antigravity isn't as bad as people say, but misses Codex/Claude Code's usage indicator — mariofilhoml · 2026-11-24
- Replit Acquires Resonate Team to Bolster Durable Agentic Infrastructure With Verifiable Lean/TLA+ Specs — amasad · 2026-11-24
- Local Qwen agent autopsy: tool misuse accounts for 8.4% of turns in Agent Lens tracking — CoreWeaveDevs · 2026-11-24
- Google resets Antigravity quotas for all users as Carbon rolls out to Pro tier — sundarpichai · 2026-11-24
- Following the Agent: reconstructing multi-surface AI agent journeys across 2M+ events — alifcoder · 2026-11-24
- Matt Pocock teases cookout, a Slack-like tool where AI agents join threads — mattpocockuk · 2026-11-24