Feed aggregator

Show HN: SafeAgent – exactly-once execution guard for AI agent side effects

Hacker News - Fri, 03/13/2026 - 11:12pm

LLM agents retry tool calls constantly.

Retries can happen because of: - model loops - HTTP timeouts - queue retries - orchestration restarts

If the tool triggers something irreversible you can end up with duplicate side effects:

retry → duplicate payment retry → duplicate email retry → duplicate ticket retry → duplicate trade

SafeAgent is a small Python guard that sits between the agent decision and the side effect.

Pattern:

agent decision → deterministic request_id generated → execution guard checks durable receipt → side effect executes once → future retries return cached receipt

The project started while experimenting with settlement logic for peer-to-peer tournament payouts where duplicate payouts would be catastrophic.

Repo:

https://github.com/azender1/SafeAgent

There are a few small demos in the repo:

- OpenAI-style tool example - LangChain wrapper - CrewAI example - a tournament settlement demo showing retry-safe payouts

Curious how other people building agent systems are handling this today.

Are most teams just rolling their own idempotency layer?

Comments URL: https://news.ycombinator.com/item?id=47372944

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Vibe-budget – CLI to estimate LLM costs before you start vibe coding

Hacker News - Fri, 03/13/2026 - 11:09pm

I built vibe-budget because I kept burning tokens without knowing the cost upfront. You describe your project in plain English (or Spanish), and it detects the tasks involved, estimates token usage, and compares real-time prices across 85+ models via OpenRouter.

Example: vibe-budget plan ecommerce with stripe oauth and supabase

It detects 4 tasks, estimates ~497k tokens, and shows you the cheapest, best quality-price, and premium model options side by side.

It also has a scan command — point it at an existing codebase and it estimates how many tokens it would cost to refactor or extend it with AI.

No API key required. Prices are fetched live from OpenRouter with a 1-hour cache fallback.

npm install -g vibe-budget

Docs: https://gaboexe0.github.io/vibe-budget/ Repo: https://github.com/gaboexe0/vibe-budget

Comments URL: https://news.ycombinator.com/item?id=47372921

Points: 1

# Comments: 0

Categories: Hacker News

Optimizing Content for Agents

Hacker News - Fri, 03/13/2026 - 10:27pm
Categories: Hacker News

Snail Mail Sign-Ups

Hacker News - Fri, 03/13/2026 - 10:18pm
Categories: Hacker News

Today's NYT Mini Crossword Answers for Saturday, March 14

CNET Feed - Fri, 03/13/2026 - 10:14pm
Here are the answers for The New York Times Mini Crossword for March 14.
Categories: CNET

Pages