Fork of keboola/agnes-the-ai-analyst (via manana2520 GitHub fork). Develop here, push to GitHub fork to open upstream PRs.
Find a file
2026-04-09 07:18:17 +02:00
.github/workflows ci: add CI test suite + deploy pipeline 2026-04-08 18:24:05 +02:00
app feat: add 50 MB upload size limit to session and artifact endpoints 2026-04-09 07:14:16 +02:00
cli chore: clean repo for public release — fix references, remove drafts 2026-04-08 19:27:25 +02:00
config chore: update .env.template to match actual code 2026-04-09 07:13:01 +02:00
connectors Remove dead Flask Blueprint from Jira connector 2026-04-09 07:13:20 +02:00
dev_docs chore: clean repo for public release — fix references, remove drafts 2026-04-08 19:27:25 +02:00
docs fix: remove dead PRAGMA enable_wal code 2026-04-09 06:59:57 +02:00
examples/notifications Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00
infra chore: clean repo for public release — fix references, remove drafts 2026-04-08 19:27:25 +02:00
scripts refactor: final cleanup — delete legacy auth, clean deps, fix hash, migrate to uv 2026-03-31 19:18:30 +02:00
services feat: Docker services (ws-gateway, corporate-memory, session-collector) + scheduler auto-auth 2026-04-08 07:04:26 +02:00
src feat: add graceful shutdown handler 2026-04-09 07:03:45 +02:00
tests fix: web UI smoke tests — reset DuckDB singleton, get token via API 2026-04-09 07:18:17 +02:00
.dockerignore feat: add Docker, CLI tool, scheduler, and agent skills 2026-03-27 15:30:03 +01:00
.gitignore chore: add auth/ to gitignore (legacy dir, not tracked) 2026-04-08 12:12:37 +02:00
ARCHITECTURE.md Update docs for modular architecture (auth/, services/, scripts/) 2026-03-09 13:11:40 +01:00
CLAUDE.md feat: generic _remote_attach contract for remote DuckDB extension views 2026-04-08 18:10:12 +02:00
docker-compose.override.yml chore: Docker prod config (Python 3.13, no reload), fix utcnow deprecation, update docs 2026-04-08 12:10:47 +02:00
docker-compose.test.yml feat: add SEED_ADMIN_EMAIL for Docker test environments 2026-03-31 09:48:12 +02:00
docker-compose.yml feat: replace Docker healthcheck with curl 2026-04-09 07:03:12 +02:00
Dockerfile feat: replace Docker healthcheck with curl 2026-04-09 07:03:12 +02:00
LICENSE OSS cleanup: remove internal references, harden deployment, add config env interpolation 2026-03-09 07:59:57 +01:00
llms.txt Restructure docs for OSS readability 2026-03-09 10:42:45 +01:00
Makefile Fix sync_schedule validation to accept multi-time daily format 2026-03-17 13:21:14 +01:00
pyproject.toml security: fix auth (argon2, cookie, JWT), CORS, session middleware, pyproject.toml 2026-04-08 12:08:52 +02:00
pytest.ini feat: add pytest timeout and strict markers 2026-04-09 07:03:44 +02:00
README.md chore: clean repo for public release — fix references, remove drafts 2026-04-08 19:27:25 +02:00
requirements-dev.txt Move faker to dev dependencies 2026-04-09 07:13:20 +02:00
requirements.txt Move faker to dev dependencies 2026-04-09 07:13:20 +02:00

AI Data Analyst

A data distribution platform for AI analytical systems. It pulls data from configured sources, converts it to Parquet format, and distributes it to analysts who query it locally using Claude Code and DuckDB.

How It Works

flowchart TB
    subgraph Sources["Data Sources"]
        A[(Keboola)]
        B[(CSV Files)]
        C[(BigQuery / Snowflake)]
        style C stroke-dasharray: 5 5
    end

    subgraph Broker["Data Broker Server"]
        D[Source Adapter]
        E[Parquet Converter]
        D --> E
    end

    subgraph Analyst["Analyst Machine"]
        F[Parquet Files]
        G[(DuckDB)]
        H((Claude Code))
        F --> G
        G --> H
    end

    A --> D
    B --> D
    C -.->|planned| D
    E -->|rsync over SSH| F
  1. The server fetches data from a configured source using the appropriate adapter.
  2. Raw data is converted to typed, columnar Parquet files.
  3. Analysts sync Parquet files to their machines over SSH (rsync).
  4. Claude Code queries the local DuckDB database and returns results with insights.

Features

  • Pluggable data sources -- connector interface supporting Keboola out of the box, CSV import, and extensible to BigQuery, Snowflake, and others.
  • Pluggable authentication -- auto-discovered auth providers (Google OAuth, email/password, desktop JWT, or custom).
  • Automatic Parquet conversion -- source data is converted to typed, partitioned Parquet files for efficient local querying.
  • SSH-based distribution -- analysts sync data securely via rsync; no cloud credentials leave the server.
  • Claude Code as analyst interface -- natural language queries against DuckDB, powered by Claude.
  • Claude Code as installer -- the CLAUDE.md file guides Claude Code through automated project setup for new analysts.
  • Self-service webapp -- web UI for user onboarding, SSH key management, sync settings, and data catalog browsing.
  • Corporate Memory -- shared knowledge base that aggregates analyst insights and distributes approved rules back to the team.
  • Configurable per-instance -- a single config/instance.yaml controls branding, authentication, data source, user mapping, and more.
  • Access control -- role-based permissions with standard analyst, privileged analyst, and admin tiers.

Quick Start

See docs/QUICKSTART.md for full setup instructions.

The short version:

# 1. Clone the repository
git clone https://github.com/keboola/agnes-the-ai-analyst.git
cd agnes-the-ai-analyst

# 2. Copy and edit configuration
cp config/instance.yaml.example config/instance.yaml
cp config/data_description.md.example config/data_description.md
# Edit both files for your environment

# 3. Deploy the server
# See docs/DEPLOYMENT.md for detailed server setup

# 4. Analysts connect via the webapp and sync data
bash server/scripts/sync_data.sh

Project Structure

ai-data-analyst/
├── config/                        # Instance configuration
│   ├── instance.yaml.example      # Main config template (copy to instance.yaml)
│   └── data_description.md.example  # Data schema template
│
├── src/                           # Core data sync engine (vendor-neutral)
│   ├── data_sync.py              # Orchestrates data pull + DataSource ABC
│   ├── parquet_manager.py        # CSV to Parquet conversion
│   ├── config.py                 # Configuration loader
│   └── profiler.py               # Data profiling for catalog
│
├── connectors/                    # Data source connectors (pluggable)
│   ├── keboola/                   # Keboola Storage connector
│   │   ├── adapter.py            # KeboolaDataSource (implements DataSource)
│   │   └── client.py             # Low-level Keboola API client
│   └── jira/                      # Jira webhook connector
│
├── auth/                          # Authentication providers (pluggable)
│   ├── google/                    # Google OAuth provider
│   ├── password/                  # Email/password provider
│   └── desktop/                   # Desktop JWT provider (API-only)
│
├── services/                      # Standalone services (own systemd units)
│   ├── telegram_bot/              # Telegram notification bot
│   ├── ws_gateway/                # WebSocket notification gateway
│   ├── corporate_memory/          # AI knowledge aggregation
│   └── session_collector/         # Claude Code session collector
│
├── webapp/                        # Flask web application
│   └── ...                        # User onboarding, settings, catalog
│
├── server/                        # Deployment infrastructure only
│   ├── deploy.sh                  # Deployment script (auto-discovers services)
│   └── ...                        # Sudoers, nginx, setup scripts
│
├── scripts/                       # Helper scripts
│   ├── sync_data.sh              # Sync data from server
│   ├── setup_views.sh            # Initialize DuckDB views
│   └── dev_run.py                # Dev server with auth bypass
│
├── docs/                          # User-facing documentation
├── dev_docs/                      # Developer and operator documentation
├── tests/                         # Test suite
├── requirements.txt               # Python dependencies
├── CLAUDE.md                      # Instructions for Claude Code
└── README.md                      # This file

Supported Data Sources

Adapter Status Description
Keboola Storage Available Pulls tables via the Keboola Storage API
CSV Planned Imports local or mounted CSV files
BigQuery Planned Google BigQuery adapter
Snowflake Planned Snowflake adapter

Adding a new data source means creating a connector module in connectors/ that implements the DataSource interface from src/data_sync.py, and setting data_source.type in config/instance.yaml. See connectors/keboola/ for a reference implementation.

Using with Claude Code

Once data is synced, open Claude Code in the project directory and ask questions in natural language:

What are the top 10 customers by revenue this quarter?
Show me the trend in support ticket volume over the last 6 months.

Claude Code will connect to the local DuckDB database, write and execute SQL, and return results with analysis.

Documentation

License

This project is licensed under the MIT License.


Questions or issues? Open a GitHub issue.