frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Self-hosted AI agent observability (OTel, Grafana, bash hooks)

https://github.com/shepard-system/shepard-obs-stack
1•digitalshepard•2h ago

Comments

digitalshepard•2h ago
Hey HN. I built this because I had a $47 Tuesday.

One Claude Code session, eight hours, no visibility into what was happening. By the time I checked the billing page the next morning, the damage was done.

The problem: AI coding CLIs (Claude Code, Codex, Gemini CLI) don't ship with observability. You get a chat interface and a monthly bill. No metrics, no traces, no alerts.

The solution: shell hooks (bash + curl + jq) that emit native OTLP to a standard OTel Collector → Prometheus + Loki + Tempo → Grafana. Six containers, docker-compose up, eight dashboards auto-provisioned.

What it tracks: - Cost in real-time (USD, not just tokens) - Tool calls per agent (which tools, how often, error rates) - Session timelines reconstructed as Tempo traces (the Claude parser is 265 lines of pure jq) - 15 alert rules — HighSessionCost fires at $10/hr, SensitiveFileAccess fires when an agent touches your .env

The hooks are ~30 lines of bash each. No SDK, no Python wrapper, no runtime dependency beyond curl and jq. Each hook receives JSON from the CLI, builds an OTLP payload, and fires it at localhost:4318. The & disown at the end is the entire performance strategy.

Codex doesn't emit native metrics, only logs — so there are 15 Loki recording rules that extract structured fields and remote-write to Prometheus. The Codex dashboard queries PromQL as if metrics were native.

Elastic-2.0 licensed (free to use, can't offer as hosted service).

Longer write-up with architecture details: https://digitalshepard.ai/articles/the-eye-part2/

Show HN: Pianoterm – Run shell commands from your Piano. A Linux CLI tool

https://github.com/vustagc/pianoterm
1•vustagc•1m ago•0 comments

Why are Agents better at searching with grep than embeddings?

1•CShorten•4m ago•0 comments

Agents will pay like locals, not tourists

https://a16zcrypto.substack.com/p/agents-arent-tourists
1•gmays•5m ago•0 comments

Show HN: DevToolKit – Free, Client-Side Dev Tools (Chmod, Cron, Docker Compose)

https://dev-tools.devtoolsite.workers.dev/
1•THatch26•6m ago•0 comments

Show HN: Llmdoc – annotate codebase with LLM summaries only re-scan what changed

https://github.com/tristanMatthias/llmdoc
1•tristanMatthias•6m ago•0 comments

No Code by Hand

https://ashwch.com/no-code-by-hand-agentic-platform-acceleration.html
1•ashwch•6m ago•1 comments

Learning What Will Happen Next: Predictive Coding in Hyperspace

https://blog.brojo.ai/learning-what-will-happen-next-predictive-coding-in-hyperspace/
1•bojo•6m ago•0 comments

Autogenerate Docs from GitHub

https://www.mintlify.com/blog/auto-generate-docs-from-repos
1•denssumesh•7m ago•0 comments

Teaching Al to Understand What Words Mean

https://sublius.substack.com/p/teaching-ai-to-understand-what-words-d58
1•spacebacon•8m ago•0 comments

Show HN: Goodthinking – PM skills for Claude Code

https://www.extremeclarity.ai/goodthinking
1•faizanbhat•8m ago•0 comments

Google Gemini Agent for multi-step tasks

https://gemini.google/overview/agent/
1•sheepscreek•11m ago•0 comments

Asking the raw Gemini 3.1 Pro API what kind of human it would choose to be

1•PerlBlueDot•13m ago•0 comments

Show HN: A One-Page Field Guide to Questioning

https://stefankober.github.io/essays/questioning-a-field-guide/questioning-guide/
1•kbrkbr•13m ago•0 comments

When Video Games Were Brown

https://www.youtube.com/watch?v=TTjGDkDI49I
1•CharlesW•14m ago•0 comments

Saturday Night Live criticised for 'hurtful' Tourette's sketch

https://www.bbc.co.uk/news/articles/c05v0ln6nq3o
1•mellosouls•15m ago•0 comments

Show HN: OnCallMate – AI agent for autonomous Docker incident RCA

https://github.com/ismailperim/oncallmate
1•ismailperim•15m ago•0 comments

The Pentagon's Favorite Tech Guy Is This Hawaiian Shirt-Wearing Founder

https://www.nytimes.com/2026/03/02/technology/pentagon-anduril-palmer-luckey.html
2•saikatsg•17m ago•0 comments

Fentanyl-Rewired: A 2-Azaspiro[3.3]heptane Core Preserves μ-Opioid Function

https://pubs.acs.org/doi/10.1021/acsmedchemlett.5c00672
1•PaulHoule•18m ago•0 comments

Directus Hits 500 Contributors

https://500-contributors-thingee.vercel.app/
1•haynesben•20m ago•0 comments

State of WASI support for CPython: March 2026

https://snarky.ca/state-of-wasi-support-for-cpython-march-2026/
1•ingve•20m ago•0 comments

Era of Polycrisis

https://en.wikipedia.org/wiki/Era_of_Polycrisis
2•maxwell•20m ago•0 comments

British Columbia to end time changes, adopt year-round daylight time

https://www.cbc.ca/news/canada/british-columbia/b-c-adopting-year-round-daylight-time-9.7111657
13•ireflect•20m ago•3 comments

America's Ranks of Immigrant Truckers Find a Roadblock: English Tests

https://www.wsj.com/business/logistics/americas-ranks-of-immigrant-truckers-find-a-roadblock-engl...
3•petethomas•21m ago•2 comments

Dabao Evaluation Board Risks and Challenges

https://www.crowdsupply.com/baochip/dabao#risks-challenges
1•Confiks•21m ago•0 comments

We Interviewed Our OpenClaw Agent Using a Voice Avatar

https://twitter.com/ptservlor/status/2028518999747915953
1•arbayi•22m ago•1 comments

Show HN: Exquisite.Monster – Telephone Pictionary with strangers and friends

https://exquisite.monster/
1•Swayworn•22m ago•0 comments

32 TB Gone

https://twitter.com/1v100000/status/2028319935626371137
4•worik•23m ago•2 comments

Maps and charts of Iran crisis: The global chokepoint in the Strait of Hormuz

https://www.reuters.com/graphics/IRAN-CRISIS/MAPS/znpnmelervl/
2•giuliomagnifico•24m ago•0 comments

Show HN: CrowPay – add x402 in a few lines, let AI agents pay per request

https://www.crowpay.ai/
1•ssistilli•24m ago•0 comments

Free IP Geolocation Database

https://ip66.dev/
2•todsacerdoti•28m ago•0 comments