Skip to main content

Agentic Metadata Extractor — AI-powered CLI to infer and manage database metadata

Project description

AMX in action

Cryptic columns, reviewed comments.

AMX walks your database, reads your codebase and docs, then drafts a COMMENT for every table, view, and column — with confidence scores and a human review before anything lands in the live database.

Documentation · Quickstart · Changelog · Issues


AMX is in early development — expect breaking changes between releases. Stay current with pip install --upgrade amx-cli.

Three independent sub-agents — Profile (schema, stats, sample values), RAG (ingested docs), and Code (references mined from your repos) — gather evidence in parallel. An orchestrator merges and ranks them, you accept / edit / skip each suggestion, and AMX writes the approved text back as native COMMENT statements on the engine.

Five minutes from pip install to your first reviewed comment. Ten database engines, seven LLM providers.

Install

pip install amx-cli

The PyPI distribution is amx-cli; the import package is amx (import amx). Requires Python 3.10+. See the installation guide for prerequisites, source builds, and where AMX writes config / history / logs.

Quick start

amx                       # open the interactive session (the AMX REPL)
/setup                    # one-time wizard: DB profile + LLM profile
/connect                  # sanity-check the active connection
/run sales.orders         # generate suggestions, review, accept
/apply                    # write approved descriptions back to the database

/run without an argument opens a scope picker (Database / Schema / Asset). /run-apply short-circuits review-and-apply when you already trust the model. If anything misbehaves, amx doctor runs from any shell — even when AMX itself can't start — and prints actionable hints next to each ✗.

The full guided walkthrough is at the 5-minute quickstart and first-run walkthrough.

AMX CLI

A typical session — running /run, inspecting ranked suggestions inline, accepting or editing each one before it lands in the database.

AMX REPL — interactive session showing /run output with ranked suggestions, confidence scores, and review prompts

AMX Studio (/studio) — same workflow on a local web UI

From inside the REPL, /studio boots AMX Studio, a token-protected web UI on 127.0.0.1, and opens your browser. Same review-and-apply workflow as the REPL — runs, results, the pending queue, the /ask chat, and full DB / LLM / Docs / Code profile management — but on a denser surface. Browse any database / schema / table to inline-edit comments or hit per-asset Generate to draft just one comment through the same human-in-the-loop queue. The SPA bundle ships inside amx-cli; no Node toolchain or extra install needed.

AMX Studio Catalog landing page — sidebar with Catalog selected, four quick-action cards (Browse, New run, Ask, Audit), and a Recent activity feed

Full walkthrough at /studio.

How it works

AMX flow — Profile, RAG, and Code agents feed evidence to an orchestrator that ranks suggestions; you review accept/edit/skip and AMX writes the approved text back as COMMENT ON COLUMN native DDL

Each agent runs independently, surfaces its own evidence, and assigns its own confidence. The orchestrator picks the narrower, defensible description and ranks up to N alternatives. You never apply anything you didn't approve.

A column, before and after

A typical column in orders, the kind every analytics codebase has:

orders.shipped_dt   DATE   NULL   -- (no comment)

What AMX produces, after you approve:

COMMENT ON COLUMN orders.shipped_dt IS
  'Date the carrier scanned the package at origin. Distinct from
   order_dt (when the customer placed the order) and delivered_dt
   (when the carrier recorded proof of delivery).';

confidence: high · logprob: 0.91
sources: code (3 refs) · docs · db profile

Every approval is recorded in local run history — re-evaluate later with /history review to see how the same column scores under a different model, prompt detail, or evidence mix.

Supported database backends

PostgreSQL · Snowflake · Databricks (Unity Catalog) · BigQuery · MySQL / MariaDB · Oracle · SQL Server · Redshift · ClickHouse · DuckDB

Per-backend setup, connection details, and the capability matrix live in the Backends section.

Supported LLM providers

OpenAI · Anthropic · Google Gemini · DeepSeek · OpenRouter · Ollama · vLLM / LM Studio · any OpenAI-compatible endpoint

Provider-specific guides (including OpenAI / Anthropic Batch mode and local-model setups) live in the LLM providers section.

Next up

  • dbt integration — Connect dbt projects so the AMX code agent extracts table and column metadata from the transformation layer.
  • MCP integration for docs and repo — Expose the AMX repo and docs over the Model Context Protocol so LLM clients can query them as live context.
  • CDC integration — Detect schema changes in upstream sources and keep AMX metadata in sync.

See the full roadmap for details.

Documentation

Full user, operator, and contributor docs live at amxcli.com — concepts, the slash-command map, configuration, data sources, collaboration, troubleshooting, and the Python API for headless use. Release notes are in CHANGELOG.md and on the GitHub Releases page.

Recent: Studio Lineage & Variations, Confidence Scoring, and explicit cache controls — see the changelog.

Recent: Studio Lineage & Variations, Confidence Scoring, and explicit cache controls — see the changelog.

Contributing & support

License

Apache-2.0 — see LICENSE.


This project is developed with the help of multiple AI coding agents.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amx_cli-0.18.0.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amx_cli-0.18.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file amx_cli-0.18.0.tar.gz.

File metadata

  • Download URL: amx_cli-0.18.0.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for amx_cli-0.18.0.tar.gz
Algorithm Hash digest
SHA256 c81d81484ed796b52dcce6629df987c90405a780846718e8f555a8856f821d58
MD5 26bb6518a1319b26a5e425b219da42cd
BLAKE2b-256 583a516e8e6de357123d65852d7f6ce69242e97e3970897ca0e2d838eb155b44

See more details on using hashes here.

Provenance

The following attestation bundles were made for amx_cli-0.18.0.tar.gz:

Publisher: release.yml on omeryasirkucuk/amx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amx_cli-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: amx_cli-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for amx_cli-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 728de5e9c5ba3bee28422a7a924d21ec647239113cfe5b538b3a84023b0f5eea
MD5 c3dc7051a568edd07bdbdd93a885148e
BLAKE2b-256 0ca8958a8d7f083c069e4e95e6c13858e6ebd24b70d0c34112f938501d1fbeea

See more details on using hashes here.

Provenance

The following attestation bundles were made for amx_cli-0.18.0-py3-none-any.whl:

Publisher: release.yml on omeryasirkucuk/amx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page