Hacker News

Latest

Converge (YC S23) Is Hiring a Founding Platform Engineer (NYC, Onsite)

2026-03-12 @ 17:01:46Points: 1

Show HN: OneCLI – Vault for AI Agents in Rust

2026-03-12 @ 16:41:06Points: 43Comments: 15

OneCLI is an open-source gateway that sits between your AI agents and the services they call. You store your real credentials once in OneCLI's encrypted vault, and give your agents placeholder keys. When an agent makes an HTTP call through the proxy, OneCLI matches the request by host/path, verifies the agent should have access, swaps the placeholder for the real credential, and forwards the request. The agent never touches the actual secret. It just uses CLI or MCP tools as normal.

Try it in one line: docker run --pull always -p 10254:10254 -p 10255:10255 -v onecli-data:/app/data ghcr.io/onecli/onecli

The proxy is written in Rust, the dashboard is Next.js, and secrets are AES-256-GCM encrypted at rest. Everything runs in a single Docker container with an embedded Postgres (PGlite), no external dependencies. Works with any agent framework (OpenClaw, NanoClaw, IronClaw, or anything that can set an HTTPS_PROXY).

We started with what felt most urgent: agents shouldn't be holding raw credentials. The next layer is access policies and audit, defining what each agent can call, logging everything, and requiring human approval before sensitive actions go through.

It's Apache-2.0 licensed. We'd love feedback on the approach, and we're especially curious how people are handling agent auth today.

GitHub: https://github.com/onecli/onecli Site: https://onecli.sh

Claude now creates interactive charts, diagrams and visualizations

2026-03-12 @ 15:59:00Points: 74Comments: 41

The Met Releases High-Def 3D Scans of 140 Famous Art Objects

2026-03-12 @ 15:43:39Points: 93Comments: 21

Atlassian CEO: AI doesn't replace people here, but we're firing them anyway

2026-03-12 @ 15:36:53Points: 99Comments: 33

Italian prosecutors seek trial for Amazon, 4 execs in alleged $1.4B tax evasion

2026-03-12 @ 15:34:41Points: 117Comments: 21

Colon cancer now leading cause of cancer deaths under 50 in US

2026-03-12 @ 15:33:34Points: 119Comments: 138

Asia rolls out 4-day weeks, WFH to solve fuel crisis caused by Iran war

2026-03-12 @ 15:30:37Points: 218Comments: 119

ATMs didn't kill bank Teller jobs, but the iPhone did

2026-03-12 @ 14:48:57Points: 141Comments: 179

Suburban school district uses license plate readers to verify student residency

2026-03-12 @ 14:41:12Points: 151Comments: 178

Kotlin creator's new language: a formal way to talk to LLMs instead of English

2026-03-12 @ 14:22:43Points: 176Comments: 147

Malus – Clean Room as a Service

2026-03-12 @ 13:42:04Points: 548Comments: 199

Show HN: We analyzed 1,573 Claude Code sessions to see how AI agents work

2026-03-12 @ 13:41:12Points: 104Comments: 64

So we built an analytics layer for it. After connecting our own sessions, we ended up with a dataset of 1,573 real Claude Code sessions, 15M+ tokens, 270K+ interactions.

Some things we found that surprised us: - Skills were only being used in 4% of our sessions - 26% of sessions are abandoned, most within the first 60 seconds - Session success rate varies significantly by task type (documentation scores highest, refactoring lowest) - Error cascade patterns appear in the first 2 minutes and predict abandonment with reasonable accuracy - There is no meaningful benchmark for 'good' agentic session performance, we are building one.

The tool is free to use and fully open source, happy to answer questions about the data or how we built it.

Long Overlooked as Crucial to Life, Fungi Start to Get Their Due

2026-03-12 @ 13:16:11Points: 24Comments: 0

US banks' exposure to private credit hits $300B (2025)

2026-03-12 @ 12:43:26Points: 179Comments: 101

Emacs internals: Tagged pointers vs. C++ std:variant and LLVM (Part 3)

2026-03-12 @ 12:41:29Points: 48Comments: 17

Big Data on the Cheapest MacBook

2026-03-12 @ 11:41:14Points: 247Comments: 222

Dolphin Progress Release 2603

2026-03-12 @ 09:23:01Points: 230Comments: 38

Avoiding Trigonometry (2013)

2026-03-12 @ 09:06:57Points: 180Comments: 48

3D-Knitting: The Ultimate Guide

2026-03-12 @ 08:27:16Points: 195Comments: 71

Reliable Software in the LLM Era

2026-03-12 @ 08:19:46Points: 83Comments: 27

SBCL: A Sanely-Bootstrappable Common Lisp (2008) [pdf]

2026-03-12 @ 06:55:56Points: 105Comments: 69

Returning to Rails in 2026

2026-03-12 @ 06:06:46Points: 315Comments: 192

Don't post generated/AI-edited comments. HN is for conversation between humans

2026-03-11 @ 19:29:29Points: 4053Comments: 1535

SHOW HN: A usage circuit breaker for Cloudflare Workers

2026-03-10 @ 13:09:00Points: 26Comments: 8

The problem: Workers Paid Plan has hard monthly limits (10M requests, 1M KV writes, 1M queue ops, etc.). There's no built-in "pause when you hit the limit", CF just starts billing overages. KV writes cost $5/M over the cap, so a retry loop bug can get expensive fast.

AWS has Budget Alerts, but those are passive notifications, by the time you read the email, the damage is done. I wanted active, application-level self-protection.

So I built a circuit breaker that faces inward, instead of protecting against downstream failures (the Hystrix pattern), it monitors my own resource consumption and gracefully degrades before hitting the ceiling.

Key design decisions:

- Per-resource thresholds: Workers Requests ($0.30/M overage) only warns at 80%. KV Writes ($5/M overage) can trip the breaker at 90%. Not all resources are equally dangerous, so some are configured as warn-only (trip=null).

- Hysteresis: Trips at 90%, recovers at 85%. The 5% gap prevents oscillation, without it the system flaps between tripped and recovered every check cycle.

- Fail-safe on monitoring failure: If the CF usage API is down, maintain last known state rather than assuming "everything is fine." A monitoring outage shouldn't mask a usage spike.

- Alert dedup: Per-resource, per-month. Without it you'd get ~8,600 identical emails for the rest of the month once a resource hits 80%.

Implementation: every 5 minutes, queries CF's GraphQL API (requests, CPU, KV, queues) + Observability Telemetry API (logs/traces) in parallel, evaluates 8 resource dimensions, caches state to KV. Between checks it's a single KV read — essentially free.

When tripped, all scheduled tasks are skipped. The cron trigger still fires (you can't stop that), but the first thing it does is check the breaker and bail out if tripped.

It's been running in production for two weeks. Caught a KV reads spike at 82% early in the month, got one warning email, investigated, fixed the root cause, never hit the trip threshold.

The pattern should apply to any metered serverless platform (Lambda, Vercel, Supabase) or any API with budget ceilings (OpenAI, Twilio). The core idea: treat your own resource budget as a health signal, just like you'd treat a downstream service's error rate.

Happy to share code details if there's interest.

Full writeup with implementation code and tests: https://yingjiezhao.com/en/articles/Usage-Circuit-Breaker-for-Cloudflare-Workers

The Cost of Indirection in Rust

2026-03-09 @ 17:28:34Points: 45Comments: 9

Datahäxan

2026-03-09 @ 15:48:02Points: 118Comments: 9

High fidelity font synthesis for CJK languages

2026-03-09 @ 12:29:00Points: 42Comments: 4

Printf-Tac-Toe

2026-03-08 @ 12:01:07Points: 106Comments: 11

Tested: How Many Times Can a DVD±RW Be Rewritten? Methodology and Results

2026-03-08 @ 11:44:56Points: 229Comments: 78

Archives

2026

2025

2024

2023

2022