Development

Setup

# Install dependencies
./scripts/dev_setup.sh && source .venv/bin/activate

# Start PostgreSQL + Qdrant
docker compose up -d

# Start server
./scripts/start_server.sh

Validation

Run both scripts after any code change:

# Auto-fix formatting and lint issues
./scripts/run_validate.sh

# Quick check (no auto-fix)
./scripts/validate.sh

Testing

# Run all V2 API tests
TESTING=true pytest tests/v2/

# Run a single test file
TESTING=true python -m unittest tests.test_agent_info_crud

# With coverage
TESTING=true pytest --cov

Key testing rules:

Database Migrations

# Run a migration
python db/migrations/run_migration.py <migration_file.sql>

# Verify migrations
python db/migrations/verify_migration.py

Dependency Management

# Edit pyproject.toml, then generate requirements.txt
./scripts/generate_requirements.sh