News for hackers. Stuff that matters.

amavashev

Re:Your Website Is Not for You on Friday May 01, 2026 @09:45AM (#47974752)
True website is not for you and in the age for AI is not even for people. Its for AI agents reading your website and deciding what to do with it: recommend it, skip it, integrate with it, etc.
The no proxy approach makes sense for LLMs calls. The gap is non LLM calls.

Often times damage is done by non LLM calls -- tool calls like sending email, add records, files, placing order, etc. Budget enforcement at the LLM layer wont work for those.

built an open protocol + reference implementation, handles both any tool calls, LLM calls, or any other call: https://runcycles.io, open sourced under Apache 2.0

Re:Be intentional about how AI changes your codebase on Friday March 20, 2026 @08:21AM (#47453561)
Agree, you need to your own code review, although as AI gets better, this problem will most likely be solved.
Re: on Friday March 20, 2026 @08:19AM (#47453532)
The core argument here is that autonomous agents will need a economic envelope enforced before execution not after.

This means agents must follow this flow: reserve, use, commit or release.

Interesting how others are handling runaway agents, loops, etc, especially under concurrency.

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

https://runcycles.io/

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,...

( Read More... | 2 comments | on HN )
I'm the author. A few design decisions worth explaining:

The model downgrade is the most useful feature for daily use — when budget drops below a threshold, the plugin silently swaps claude-opus to claude-sonnet, gpt-4o to gpt-4o-mini. The agent keeps running, just cheaper. Only at full exhaustion does it stop.

The prompt hint (before_prompt_build hook) tells the model its remaining budget in the system prompt. Models self-regulate when they know the constraint exists — fewer unnecessary tool calls, shorter responses.

The underlying Cycles protocol handles idempotency under retries so concurrent tool calls don't double-spend against the same budget.

Happy to answer questions about the plugin or the protocol.

Show HN: OpenClaw plugin – hard budget limits for agent tool calls

https://github.com/runcycles/cycles-openclaw-budget-guard

OpenClaw agents can loop, pick expensive models, and burn budget before anyone notices. This plugin stops that.Install: openclaw plugins install @runcycles/openclaw-budget-guard Add one config block with your tenant and optional model fallbacks (e.g. claude-opus → claude-sonnet when budget is low). The plugin handles the rest: balance checks before model selection, reservations before...

( Read More... | 1 comment | on HN )

Show HN: RunCycles – pre-execution budget enforcement for autonomous agents

https://github.com/runcycles/cycles-runaway-demo

I built this after reading too many incident reports of agent loops spending $200 in 4 minutes because a quality threshold was never met.The pattern is always the same: an agent retries, fans out, or loops. Each iteration passes individual rate-limit checks. Observability fires an alert after the money is gone. Provider caps are per-provider, not cross-provider. None of these stop the spend...

( Read More... | no comments | on HN )
Per-key isolation + model locking is a solid baseline — especially for multi-tool stacks where one shared key hides everything.

One thing we’ve noticed though: spend caps stop damage, but they don’t prevent pathological behavior. By the time the cap trips, the agent has already drifted.

We’ve been experimenting with pre-authorization per action (reserve → commit style) rather than just per-key ceilings. It lets you detect anomalous patterns before the burn accumulates — especially in looping or tool-chaining scenarios.

Curious — have you seen most overruns come from loops, retries, or just high-token completions?

Drift correlating more with constraint tension than raw step count matches what we’ve observed.

Your external gate instinct is right, but the gate has to be structurally external, not just logically external. If the agent can reason about the gate, it can learn to route around it.

We’ve been experimenting with pre-authorization before high-impact actions (rather than post-hoc validation) - I've drafted Cycles Protocol v0 spec to deal with this problem.

What’s interesting is that anomalous reservation patterns often show up before output quality visibly degrades — which makes drift detectable earlier.

Still early work, but happy to compare notes if that’s useful.