Skip to content
Proyectos

Acerca de

EKOS is an AI-native platform that continuously reconstructs, compiles, stores and serves enterprise knowledge.

IA y aprendizaje automático

Cómo se miden estas cifras

What you can do

  • What breaks if I change the orders table? - Impact tracing across code, SQL, views, procedures and ETL jobs
  • Where is this table written, and by which job? - Data lineage through SQL, dbt, Pentaho and Talend
  • What does this stored procedure or legacy job actually do? - A step-by-step explanation, each step cited
  • Write SQL for "revenue per customer last quarter" - A SQL agent that knows the schema, joins and code values, and checks its query before answering

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
+3

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

EKOS

Turn your code, databases and docs into a knowledge graph your AI agent can query.
Every fact comes with the file and line it was read from. Runs on your machine. Open source.

English · 简体中文 · 日本語

Latest release MIT licence CI Quality gate GitHub stars PyPI

Quick start · Docs · Demo videos · Benchmarks · Full reference · Discussions

Animated diagram: EKOS reads code, docs and the database into a knowledge ledger; after human sign-off it generates the pipelines that move an ERP in PostgreSQL through bronze, silver and gold into Superset
EKOS reads the code, docs and database of an unknown ERP, people sign off the scope and meaning, and EKOS Lakehouse generates the pipelines: PostgreSQL to Iceberg, dbt, DuckDB marts and Superset.

An AI agent that works on a real system spends most of its tokens rediscovering it: it greps the code, re-reads the schema and guesses how the parts connect, again in every session. EKOS does that work once. It reads the sources, compiles them into one graph of tables, functions, jobs, documents and the links between them, and serves that graph to the agent over MCP.

  • Compiled, not guessed. Parsers and deterministic passes build the graph. No model call is needed to compile, so the same sources always give the same result.
  • Every fact cites its source. An answer points to the file and line, the SQL statement or the commit it came from. Where two sources disagree, EKOS reports the conflict and does not pick a side.
  • More than code. One graph covers application code, SQL schemas and stored procedures, live database catalogs, ETL jobs (dbt, Pentaho, Talend), documents and Git history.
  • Local and read-only. A single Rust binary. Your sources stay on your machine, the agent gets read-only access, and secrets are redacted before anything is stored.

EKOS web console: the graph of an accounting system with one table selected and the SQL statements it was read from listed beside it
LedgerSMB compiled from its repository: 12,058 objects. The selected table shows the statements it was read from, with file and line.
More screenshots, a worked text-to-SQL example and the benchmark detail: ekos.dev/semantic-layer

Quick start

1. Install (Linux, macOS):

curl -fsSL https://raw.githubusercontent.com/alexeyban/EKOS/main/install.sh | sh

Windows:

powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/alexeyban/EKOS/main/install.ps1 | iex"

This opens a setup page in your browser. It asks for a project directory and registers EKOS with Claude Code, Claude Desktop or VS Code for you. Native installers (.msi, .pkg, .deb, .rpm) are on the releases page; other ways to install are in the installation guide.

2. Compile a repository (the setup page does this for the first project; this is the same from a terminal):

cd /path/to/your/repo
ekos init --detect
ekos build && ekos recover && ekos resolve && ekos compile && ekos commit

3. Ask. In your agent, or from the terminal:

ekos ask "what does this system do?"
ekos query find "payment" --mode hybrid
ekos ekl "FIND Object WHERE kind = 'Table'"

To connect an agent by hand:

claude mcp add ekos -- ekos mcp serve --workspace /path/to/your/repo

From Python. The same compiled graph, read in-process (guide, examples):

import ekos                                  # pip install ekos

kb = ekos.open("/path/to/your/repo")         # read-only, in your process, no server
hit = kb.search("orders")[0]
print(kb.get(hit.id).evidence)               # the file and line each fact was read from
print(kb.impact(hit.id, hops=3))             # what a change to it would reach

What you can ask

Question What answers it
What breaks if I change the orders table? Impact tracing across code, SQL, views, procedures and ETL jobs
Where is this table written, and by which job? Data lineage through SQL, dbt, Pentaho and Talend
What does this stored procedure or legacy job actually do? A step-by-step explanation, each step cited
Write SQL for "revenue per customer last quarter" A SQL agent that knows the schema, joins and code values, and checks its query before answering
Do the docs still match the code and the data? A list of conflicts, with each side's claim and where it was stated
What changed since last week? A diff of the knowledge itself, not of text files

What the model holds

Before an agent writes a query or changes a table it has to know six things. A schema dump answers one of them.

Question In EKOS Read from
What does it mean? Concepts and code meanings, each a hypothesis until a person confirms it Comments, constraints, seed rows, filters in views, procedures and ETL steps, glossaries
Where is it? Tables and columns DDL, migration scripts, live catalogs, ORM models
What is connected? Relationships Declared foreign keys; keys found in the data stay candidates until accepted
How is it calculated? Metrics and transformations Views, stored procedures, dbt, Pentaho, Talend, imported Apache Ossie models
Where does it come from? Evidence and lineage The file and line, statement or commit behind every object
Can I rely on it? Review status, conflicts, sign-off People's decisions; an answer built on a disputed fact is marked disputed

The model exports to Apache Ossie and LinkML and reads Ossie models others wrote. The full tour, with screenshots: ekos.dev/semantic-layer.

How it works

Sources (code, databases, docs, binaries) are compiled into evidence-backed knowledge, which an AI agent queries over MCP

  1. Observe. Connectors read each source as it is: files, Git history, database catalogs, documents. Nothing is summarised or rewritten on the way in.
  2. Compile. Deterministic passes parse the sources, match the same thing seen in two places, and build one model of objects, relationships and events. Each one keeps its evidence.
  3. Store. The result goes into an append-only ledger. Nothing is edited in place, so you can see what was known at any earlier time.
  4. Serve. Agents read the ledger through a read-only MCP server. People use the CLI or the web console.

People decide what only people should decide. Confirming a business definition, settling a conflict or approving a migration is a CLI or console action; an agent cannot do it over MCP.

Measured results

Test Result
BIRD Mini-Dev text-to-SQL, 302 hold-out questions, same model (Claude Haiku 5.5) 53.3% on the raw schema → 76.2% with EKOS knowledge and checks
BIRD dev text-to-SQL, all 1,534 questions, one answer per question, no fine-tuning 66.2% with Claude Haiku 5.5, for $3.20; 74.3% with Claude Sonnet 5.5 on a 300-question sample
BIRD-CRITIC flash: fix the SQL a user reports as broken, 200 PostgreSQL tasks, scored by BIRD's own test cases, same model (Claude Haiku 5.5) 47.5% with BIRD's baseline prompt → 54.0% with EKOS's sandbox agent, for $0.36
Token use on a 2,022-file repository (plausible/analytics), against grep-based search 67–93% fewer tokens per question
Cold compile of that repository 34 seconds
A 903-table Oracle ERP (iDempiere), analysed end to end (video) 0 model calls to compile

Each link holds the method, the commands and the raw output, including the cases where EKOS lost.

What it reads

Source Coverage
Code Rust, Python (with PySpark), JavaScript/TypeScript, Java, Elixir, Perl
SQL files PostgreSQL, Oracle, MySQL, SQL Server, Snowflake, Databricks, ClickHouse, Trino, SQLite; views, triggers, PL/pgSQL and PL/SQL routines
Live databases Oracle, PostgreSQL and ClickHouse catalogs, read-only
ETL and modelling dbt, Pentaho Kettle, Talend
Documents Markdown, PDF, DOCX, HTML, spreadsheets, slides, Confluence
History Git commits, GitHub issues and pull requests

How it compares

Grep and file reads Vector RAG Code-graph tools EKOS
Built once, reused in every session no yes yes yes
Same input gives the same result yes depends on the model mostly yes
Each fact cites file and line by hand chunk only partly yes
Covers databases, ETL jobs and documents in the same graph no text only mostly code yes
Reports where sources disagree no no no yes

Beyond the agent

  • Web console: projects, a graph view, review and sign-off, chat with a project, teams and roles. Deployment guide.
  • Review workflow: a person signs off the source model before anything is built on it. Operator workflow.
  • EKOS Lakehouse: generates a PostgreSQL or Oracle to Apache Iceberg pipeline from the compiled knowledge, and translates Pentaho and Talend jobs to dbt. ekos-lakehouse.
  • EKOS Migrate: PostgreSQL to ClickHouse, with every table validated against its source.
  • Exports: generated documentation, dbt models, LinkML and Apache Ossie semantic models.

All of it, command by command, is in the full reference and at ekos.dev/docs.

Project

EKOS is built in public. Every capability starts as a written design (RFCs), and the devlogs record what shipped and what was learned. CHANGELOG.md lists each release.

If EKOS is useful to you, a star helps other people find it.

Licence

MIT. See LICENSE.

Explorar proyectos relacionados

Cargando…