Aegis DQ is an open-source, audit-grade agentic data quality framework with portable industry rule packs. Point it at your policy documents and data warehouse, and it generates data quality rules, validates data, performs LLM root cause analysis (RCA) on every failure, and provides SQL remediation suggestions. Run it from the CLI, Airflow, GitHub Actions, or conversationally through Hermes.
According to official materials, an example of real-world results: 12 AML policy documents → 55 rules generated → 11 BSA/OFAC violations detected → all fully diagnosed → total LLM cost $0.01.
[Key Capabilities]
- 31 rule types: completeness, uniqueness, validity, referential integrity, statistical, ML anomaly detection.
- 6 data warehouse adapters: DuckDB, Postgres/Redshift, BigQuery, Databricks, AWS Athena, Snowflake.
- Pluggable LLMs: Anthropic Claude, OpenAI, Ollama (local), AWS Bedrock.
- Agentic pipeline: plan → parallel_validation → LLM diagnose → RCA → SQL remediate → report.
- Hermes + MCP: run the full pipeline conversationally; listed on Glama.ai.
[Execution Pipeline] Each aegis run passes data through a LangGraph pipeline:
- plan — parse and validate rules, build the execution graph.
- parallel_table — fan out concurrently by table: execute all rules, classify failures by severity, diagnose with LLM, and trace root causes.
- reconcile — compare results against expected thresholds.
- remediate — LLM proposes targeted SQL fixes for each diagnosed failure.
- report — output structured JSON and optionally send Slack notifications.
[Usage] GitHub Actions quick start:
- Add a data quality gate to any workflow in less than 2 minutes.
- When any rule fails, the step automatically fails the job, preventing corrupted data from reaching production.
- Set fail-on-failure: 'false' to report only without blocking.
- Supports offline mode (no API key required).
- Outputs can be used in downstream steps.
Hermes Integration — Conversational Data Quality:
- Aegis DQ integrates with Hermes via MCP. Point Hermes at your context and data warehouse, and it handles the rest.
- Setup (2 steps): add it to ~/.hermes/config.yaml; define a pipeline manifest once.
- Hermes calls load_pipeline → run_validation → returns a structured report. No flags, no need to re-explain context on every run.
- Full setup guide: aegis-dq.dev/integrations/hermes; MCP listing: glama.ai/mcp/servers/aegis-dq/aegis-dq.
5-Minute Quick Start:
- Step 1 — Install.
- Step 2 — Seed a demo database.
- Step 3 — Generate rules from your schema (no need to write them by hand). The LLM introspects your schema and automatically generates not_null, accepted_values, between, and custom_sql rules. Generated rules are marked status: draft and must be reviewed before being promoted to active.
- Run without an API key (pass/fail only, no LLM diagnosis).
Generating Rules with an LLM:
- No need to write rules by hand; let Aegis introspect table schemas and generate draft rule files.
- Add the --kb document parameter, i.e. any plain text or markdown file describing business logic, and the LLM will generate both business validation rules and structural rules.
- KB files can contain any data knowledge the team knows; the LLM will automatically turn it into accepted_values, sql_expression, between, and foreign_key rules. Generated rules are marked status: draft, and after review are promoted to active and committed.
- ProAll options for aegis generate.
[Data Warehouse Adapters and Run Flags]
- Providers can be switched in the CLI.
- Provides the aegis run flag.
[Applicable Scenarios] Suitable for data teams that need to perform data quality validation, automated rule generation, failed root cause diagnosis, and SQL fix recommendations in data warehouses, especially for scenarios that require audit-level, reproducible, and can be integrated into CI/CD (GitHub Actions) or orchestration tools (Airflow), as well as users who prefer conversational operations (Hermes + MCP).
[Limitations and Missing Information]
- Official materials do not provide detailed pricing, license type, platform compatibility details, performance metrics, or complete documentation links.
- Some features (such as installation commands and configuration code) exist in the original materials as code blocks but are not fully shown; for specific content, refer to the official repository.
- Issue tracking: github.com/aegis-dq/aegis-dq/issues; contribution guidelines are in CONTRIBUTING.md; some content may not be available yet.