frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Ktx – Open-source executable context layer for data agents

https://github.com/Kaelio/ktx
2•lucamrtl•50m ago
Hi HN, we’re open-sourcing ktx. It’s an executable context layer that makes agents reliable on your data stack.

We built it after going through the experience of building production-grade data agents for dozens of companies. If you’ve also tried building them, or simply tried using Claude Code or Codex on your data warehouse, you’ll know that accuracy is the #1 issue. Agents are great at generating valid SQL, but it’s not always correct SQL.

To cite a few examples of “agents gone wrong”: - Stale column + hidden business rule: when preparing a board report, a finance analyst asks Claude Code for “ARR by customer segment”, it derives ARR from multiple tables (subscriptions, plans, accounts), then groups by accounts.industry. But CC doesn’t know that this industry column was deprecated a few months prior, or that past board reports excluded paused subscriptions from the ARR calculation - Join fanout: a data analyst at a retailer uses their company’s internal agent to prep a product revenue deck for a QBR. The agent joins orders to order_items, then sums orders.total_amount_cents grouped by order_items.product_id. The SQL runs fine, but each order’s revenue is repeated once per line item, which most people will miss if most orders only have 1 item - Missing attribution logic: a marketing analyst asks Codex “Which campaigns drove the most revenue?” Codex joins marketing_touches to users to orders and groups by utm_campaign. But since each order can have multiple touches before purchase, the same order can be credited to first touch, last touch, every touch, or every campaign the user clicked before buying. If the agent chooses the method that doesn’t match the team’s attribution logic, they’ll make suboptimal decisions

To solve this at first we gave the agent more context through skills + a wiki-style knowledge base. That gives it some useful extra context but still relies on it writing the SQL without incorrect assumptions.

The next solution we explored was implementing a classic semantic layer. That solves the executable part, but they’re such a pain to build and maintain since they were made for legacy BI tools. Plus as a standalone tool, they lack all the useful context from unstructured data sources like internal docs.

So we built ktx and split it into 2 parts: 1. Business context goes in Markdown wiki pages that are auto-ingested and auto-populated 2. Queryable definitions go into YAML files that define tables, row grain, joins, measures, dimensions, filters, and filter groups

That way, when an agent needs a metric, it asks ktx for a measure, dimensions, filters, and filter groups instead of writing the whole query itself. ktx’s planner chooses the join path, uses grain and relationship metadata, catches issues like join fanout and chasm joins, and compiles the warehouse SQL, while utilizing the extra unstructured knowledge it has access to.

ktx is Apache 2.0. It can ingest from most warehouses (BigQuery, Snowflake, Postgres & others), modeling tools (dbt, MetricFlow, LookML), BI tools (Looker, Metabase), doc tools like Notion, and corrections from user interactions.

Install manually: npm install -g @kaelio/ktx ktx setup

Or give this prompt to your agent: Run npx skills add Kaelio/ktx --skill ktx and use ktx skill to install and configure ktx

We’d especially like feedback from people who’ve tried using Claude Code, Codex, or building custom agents on analytics warehouses. Where did they fail? And what did you try to make the answers more reliable?

Turn Hacker News into a personalized brief

https://briefin.com/hackernews/
1•DSemba•1m ago•0 comments

Zig creator seeks 'uncompromising perfection' before blessing 1.0

https://www.theregister.com/software/2026/05/28/zig-creator-seeks-uncompromising-perfection-befor...
1•jjgreen•2m ago•0 comments

DIY F1 Racing Steering Wheel Controller Using a Raspberry Pi

https://www.instructables.com/DIY-F1-Racing-Steering-Wheel-Controller-Using-a-Ra/
1•newsoftheday•4m ago•0 comments

From Spec-Driven Development to Compilable Specs

https://pipelex.com/blog/from-spec-driven-development-to-compilable-specs
1•RobinHonnart•5m ago•0 comments

A 176-Package NPM Campaign Built to Beat Your Internal Dependencies

https://www.sonatype.com/blog/inside-a-176-package-npm-campaign-built-to-beat-your-internal-depen...
2•speckx•8m ago•0 comments

VS Code extension that generates SOX/FINRA/PCI-DSS-aware code documentation

https://marketplace.visualstudio.com/items?itemName=compliance-documenter.compliance-documenter-h...
1•compliancedoc•9m ago•0 comments

The Godmother of Silicon Valley

https://computerhistory.org/events/godmother-of-silicon-valley/
1•rbanffy•9m ago•0 comments

A two-qubit system that generates true randomness for secure data encryption

https://www.scientificamerican.com/article/a-quantum-computing-systems-perfect-randomness-could-k...
1•chc2889•9m ago•0 comments

Zaxy 0.4.0 (Coordinate)

https://docs.zaxy.io/
1•syndicalt•12m ago•0 comments

Zendesk forced a customer from 2016 to pay 4X more, they rebuilt it in 48 hours

https://tradecore.com/resources/blog/we-replaced-zendesk-in-48-hours
2•Liriel•13m ago•0 comments

To Read a Book, to Collect a Book

https://sosuke.com/to-read-a-book-to-collect-a-book/
2•sosuke•13m ago•0 comments

Trick or spice? How the 'nutmeg' came to dominate the soccer world

https://text.npr.org/2026/05/28/nx-s1-5831957/nutmeg-world-cup-soccer-spice
1•mzs•15m ago•0 comments

Omissive Bias: Benchmarking LLM Answers to Ethical Decision-Making

https://arxiv.org/abs/2605.24319
1•pseudolus•15m ago•0 comments

Why MotherDuck refuses to fork DuckDB

https://thenewstack.io/motherduck-duckdb-mcp-collaboration/
2•Brajeshwar•16m ago•0 comments

LFM2.5-8B-A1B: An Even Better On-Device Mixture-of-Experts

https://www.liquid.ai/blog/lfm2-5-8b-a1b
2•pember•16m ago•0 comments

Git checkouts slow or timing out from EU

https://github.com/orgs/community/discussions/196638
2•furkansahin•19m ago•0 comments

Ask HN: Why would people in town be upset about a datacenter being installed?

2•jppope•19m ago•5 comments

WordPress at 23

https://wordpress.org/news/2026/05/wp23/
2•tolerance•20m ago•1 comments

3D Printed Building Completed 3 Months Faster Than Conventional Construction

https://cobod.com/europes-largest-3d-printed-apartment-building-completed-three-months-faster-tha...
1•geox•21m ago•0 comments

W3C Leadership Transition

https://www.w3.org/press-releases/2026/w3c-leadership-transition/
1•robin_reala•22m ago•0 comments

Why $/token is the wrong metric for Enterprise AI (agentic) applications

https://canyoncode.ai/blog/beyond-per-token
2•ravikiran9gopal•23m ago•0 comments

The Geometry of Superior Performance

https://nickmark.substack.com/p/the-geometry-of-superior-performance
1•bookofjoe•23m ago•0 comments

SMVE: Multi-Vector Retrieval That Just Works

https://www.topk.io/blog/20260311-smve-multi-vector-retrieval
1•gk1•23m ago•0 comments

Adam Keys Is Thinking

https://therealadam.com/2026/05/25/fits-on-a-floppy-great.html
1•surprisetalk•25m ago•0 comments

Containment Is Not Oversight

https://www.cognitivefusion.systems/insights/glasswing-003
1•JohnsonSLC•26m ago•0 comments

Playlist Folders are now available on Spotify mobile app

https://community.spotify.com/t5/Community-Blog/Playlist-Folders-are-Now-Available-on-Mobile-Here...
2•soheilpro•27m ago•0 comments

Spec Driven Development Isn't Waterfall

https://brooker.co.za/blog/2026/04/09/waterfall-vs-spec.html
3•ruptwelve•28m ago•1 comments

What types of exceptions should you catch?

https://www.pythonmorsels.com/what-types-of-exceptions-should-you-catch/
1•lukasgelbmann•30m ago•0 comments

The people who want AI to replace humanity

https://www.vox.com/future-perfect/489976/ai-successionism-transhumanism-posthumanism
4•mrdependable•30m ago•0 comments

Reading Observability Tools? That's a Robot's Job

https://www.lastweekinaws.com/blog/reading-observability-tools-thats-a-robots-job/
2•lukeasrodgers•30m ago•0 comments