Settings

Theme

Show HN: Cycles – hard limits on agent actions before execution

runcycles.io

1 points by amavashev a month ago · 2 comments · 1 min read

Reader

Rate limits control velocity. They say nothing about what an agent is allowed to do next. An agent can pass every rate-limit check and still delete 400 records, send 200 emails, or place orders before anyone notices. The damage isn't always in the bill — it's in the consequence.

Cycles is an open protocol for pre-execution enforcement. The core mechanism: reserve exposure before the action runs, commit actual usage after, release the remainder if it fails. Every reservation is idempotent so retries don't double-count.

Atomic operations mean concurrent agents can't both see "enough budget" and both proceed. It's not a rate limiter. It's not an observability tool. It's a runtime authority that answers one question before every instrumented action: is this still allowed to proceed?

Three clients: Python (PyPI), TypeScript (npm), Spring Boot (Maven Central). Self-hostable server, Apache 2.0.

Integrations: OpenClaw, LangChain, Vercel, FastAPI

The demo shows the failure mode in 60 seconds — same agent, same bug, two outcomes: without Cycles it burns $6, with Cycles it stops at $1.

Happy to answer questions about the protocol design, the idempotency semantics, or the concurrency model.

amavashevOP a month ago

Demo (no API key needed): https://github.com/runcycles/cycles-runaway-demo

amavashevOP a month ago

technical breakdown: https://dev.to/amavashev/i-burned-153-in-30-minutes-with-an-...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection