xorq-labs/xorq

X-engine expression system for data and ML pipelines.

What it solves

Xorq addresses the problem of agents and humans repeatedly re-deriving data pipelines from source files, wasting time and money, and risking inconsistent results. It provides a system where a pipeline is defined once, given a unique hash, and stored in a ledger with its lineage, so that a reviewed entry can be selected instead of recomputed. This dramatically improves accuracy and reduces turns and cost for agent tasks, as shown in DABStep benchmarks.

How it works

Xorq is three things: an intermediate representation (IR) for cross-engine, composable, cacheable, declarative execution; a ledger that makes pipelines durable artifacts with hashes and lineage; and a CLI to govern execution. Pipelines are expressions that compile to many engines (DuckDB, DataFusion, pandas, Snowflake, etc.) and can cache at any node. A build creates a directory named by the hash, containing a manifest, project wheel, and pinned requirements. Adding it to the ledger stores it under an alias; running executes it in its pinned environment. Arbitrary compute integrates through UDXFs, Python functions exchanging Arrow tables over Flight. The ledger is a git repo on the filesystem, with entries as zipped builds, metadata as YAML, so agents can clone and discover entries with file operations.

Who it's for

Xorq is designed for AI agents that need to perform data analysis pipelines reliably and cost-effectively, and for data engineers and scientists who want to manage and reuse pipeline definitions. The CLI offers a headless mode for agents and a TUI (xorq catalog tui) for humans. The README highlights use cases in insurance pricing and data analysis over payment transaction data.

Highlights

  • A single pipeline expression runs on many engines (DuckDB, DataFusion, SQLite, pandas, Snowflake, Databricks, BigQuery, Trino, Postgres, PyIceberg, GizmoSQL).
  • Every pipeline is a durable artifact: named by a hash of its definition, with human-interpretable lineage.
  • Caching at any node materializes results; rebase and pin create new entries without editing old ones.
  • UDXFs allow arbitrary Python compute to enter the deterministic system.
  • On DABStep, a ledger of 33 named expressions took Haiku from 50% to 84% accuracy, above the Sonnet baseline, and cut turns and cost dramatically.

Related

  • Project
  • Project
  • Project
  • Dispatch
  • Project