Knowledge engine for AI agents. Compile any data source into a queryable SQLite cell with embeddings, graph intelligence, and full-text search.
Project description
flex
Vector and hybrid retrieval for structured data. Flex compiles any data source into a SQLite database with embeddings, knowledge graphs, and structured views. Installing flex registers an MCP endpoint with a single tool — the AI agent reads the schema and writes SQL against the database.
curl -sSL https://getflex.dev/install.sh | bash
what's inside
- flexvec — SQL vector retrieval kernel. suppress, diversify, decay, trajectory — composable operations on the score array before selection. paper.
- MCP server — a single read-only tool (
flex_search). The agent discovers the schema at runtime and writes SQL. - worker — a background service that detects new data and embeds it within seconds.
- modules — data source adapters.
claude_codeships built-in.
claude code
The claude_code module indexes your entire Claude Code session history — file lineage, decision archaeology, weekly digests. One install command.
curl -sSL https://getflex.dev/install.sh | bash -s -- claude-code
The installer scans existing sessions, embeds everything, starts a background worker, and registers the MCP server.
"Use flex: what's the history of worker.py?"
"Use flex: what did we build this week?"
"Use flex: how did we create the curl install script?"
how it works
data source
│
[compile] parse → chunks + metadata + embeddings
│
▼
SQLite database
│
[manage] knowledge graph, fingerprints, project attribution
│
[MCP server] read-only SQL surface
│
▼
AI agent writes SQL
Each database is a single .db file with the same schema — chunks, edges, enrichments, and views. The database describes itself; the agent discovers what's available at query time.
local-first
ls ~/.flex/cells/
claude_code.db 284M
sqlite3 claude_code.db "SELECT COUNT(*) FROM sessions"
4547
Everything runs in-process. No external services, no cloud dependency.
curl -sSL https://getflex.dev/install.sh | bash
MIT · Python 3.12 · SQLite · getflex.dev · paper · x
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getflex-0.20.0-py3-none-any.whl.
File metadata
- Download URL: getflex-0.20.0-py3-none-any.whl
- Upload date:
- Size: 622.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
477ad072a61355b7da8b082ba38c71b0fe6794c41594c802324dd107ab1ee76a
|
|
| MD5 |
b9cf69fa83b80fc60d34c74749a600cb
|
|
| BLAKE2b-256 |
922fb5fc19de911d30224abfae25855edf887049a1e15d033983b2994f29d889
|
Provenance
The following attestation bundles were made for getflex-0.20.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on damiandelmas/flex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getflex-0.20.0-py3-none-any.whl -
Subject digest:
477ad072a61355b7da8b082ba38c71b0fe6794c41594c802324dd107ab1ee76a - Sigstore transparency entry: 1407996919
- Sigstore integration time:
-
Permalink:
damiandelmas/flex@f011cfa07fe22bde8b316cedcdeaf0abd2ff36b8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/damiandelmas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@f011cfa07fe22bde8b316cedcdeaf0abd2ff36b8 -
Trigger Event:
workflow_dispatch
-
Statement type: