Cap spending on AI agents so runaway loops can't rack up surprise bills.
Run a no-risk demo to see what Myles would block before turning on enforcement.
Detect when parallel agent sessions all retry the same doomed request.
Log AI agent request patterns to understand where money is being wasted.
| elamolame31/myles | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Zero dependencies and includes a demo mode that requires no API key.
Myles is a local proxy designed to protect developers from runaway AI agent costs. When autonomous agents get stuck in loops, retrying failed tool calls endlessly or running impossible lookups across many parallel sessions, the bills can reach thousands of dollars in hours. Myles sits between your agent and the AI provider, watching requests in real time and blocking the ones that would waste money. The project installs with a single pip command and requires no changes to your existing agent code. You start it with a demo command that needs no API key, then point your agent at a local address. By default Myles runs in observe mode, logging what it sees and reporting what it would have blocked, without actually interfering. Once you trust the detection, you enable enforcement with a budget cap and it starts refusing costly runaway calls before they reach the provider, meaning blocked requests cost zero dollars. Myles catches three specific problems. It detects runaway loops using semantic novelty detection, flagging calls that stop carrying new information even when the agent rephrases the same failing request or spreads it across tools. It meters real dollar costs from actual token usage and enforces a hard cap. It also catches fan-out, where the same doomed intent appears across many concurrent sessions, containing it fleet-wide rather than per process. The detector measures information novelty per step and uses IDF weighting to learn your boilerplate so common operations are ignored while the real intent is evaluated. The project is at version 0.1, an early MVP seeking feedback. Enforcement has been validated end to end. Honest limitations are noted: cross-run detection uses a coarse intent key that can be sensitive on short intents, and streaming is buffered rather than true pass-through. The project uses only the Python standard library with zero dependencies, requires Python 3.9 or later, and is released under Apache-2.0.
Myles is a local proxy that watches your AI agent's requests and blocks ones stuck in wasteful loops, preventing surprise bills from runaway agent behavior.
Mainly Python. The stack also includes Python, Python stdlib.
Use freely for any purpose, including commercial use, with no restrictions beyond keeping the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.