{"slug": "your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime", "title": "Your AI agent needs a brake pedal: stopping loops and runaway cost at runtime", "summary": "Vijay M, a student founder in Bengaluru, has released SteerPlane, an open-source runtime guard for AI agents that enforces cost, step and denied-action limits outside the model. The library wraps agent functions with a guard decorator (e.g. max_cost_usd=5, denied_actions=[\"delete_*\"]) and halts a run when it exceeds budget or attempts a blocked action, addressing failures such as a coding agent that edited 48,218 files in 103 seconds and a production database and backups deleted in 9 seconds.", "body_md": "AI agents fail in boring, expensive ways.\n\nThey repeat the same step all night. They run up an API bill. They delete something nobody told them to touch. The public incident reports from 2026 are already piling up: a coding agent that edited 48,218 files in 103 seconds, and a production database and its backups gone in 9 seconds.\n\nA prompt that says \"be careful\" does not fix this. The rule has to live in code, outside the model, where the agent cannot talk its way past it.\n\nSteerPlane runs next to the agent and enforces limits while it runs:\n\n``` python\nfrom steerplane import guard\n\n@guard(max_cost_usd=5, denied_actions=[\"delete_*\"])\ndef run_agent(task):\n    ...\n```\n\nIf the agent goes over budget or tries a denied action, the run stops. You can also set a step limit with max_steps.\n\nIt does not filter content or judge whether an answer is true. It limits what an agent can do and spend.\n\n```\npip install steerplane\n```\n\nRepo: [https://github.com/vijaym2k6/SteerPlane](https://github.com/vijaym2k6/SteerPlane)\n\nSite: [https://www.steerplane.com](https://www.steerplane.com)\n\nSteerPlane is open source. Patent Published.\n\nI'm Vijay M, a student founder in Bengaluru. I'd like to hear which failure has hurt you most: runaway cost, loops, or bad actions?\n\nThe safety layer for the AGI Era.", "url": "https://wpnews.pro/news/your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime", "canonical_source": "https://dev.to/vijaym2k6/your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime-4jc4", "published_at": "2026-10-12 17:37:19+00:00", "updated_at": "2026-10-12 17:50:15.578753+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools", "developer-tools"], "entities": ["SteerPlane", "Vijay M", "Bengaluru", "GitHub"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime", "markdown": "https://wpnews.pro/news/your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime.md", "text": "https://wpnews.pro/news/your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime.txt", "jsonld": "https://wpnews.pro/news/your-ai-agent-needs-a-brake-pedal-stopping-loops-and-runaway-cost-at-runtime.jsonld"}}