Skip to main content

Quality metrics for AI-assisted development — measure and improve your Claude Code sessions

Project description

DQI — Delegation Quality Index

Measure and improve AI agent delegation quality. CLI tool + MCP server for Claude Code.

Installation

pip install dqi
# or with MCP server support:
pip install "dqi[mcp]"

MCP Server Setup

Add to your .claude.json or .mcp.json:

{
  "dqi": {
    "command": "uvx",
    "args": ["dqi-mcp"]
  }
}

Available Tools

Tool Description
dqi_score DQI score summary: average, trend, component breakdown, tier distribution
dqi_cost Cost analysis: total spend, average per run, daily trend, waste estimate
dqi_patterns Repeated task pattern detection with classification and recommendations
dqi_warnings Underperforming workspace/task_type combos with actionable suggestions
dqi_templates Task type inference and delegation template recommendations
dqi_incidents Quality incidents: regressions, anomalies, severity tracking
dqi_slo SLO compliance: quality, availability, and cost targets

Deployment

The DQI dashboard deploys as a split-stack: Railway (API) + Vercel (frontend).

API (Railway)

  1. Connect the repo to Railway
  2. Set environment variables:
    • DQI_JWT_SECRET — stable random secret for JWT signing
    • DQI_DIR — data directory path (e.g. /data/.dqi)
    • CORS_ORIGINS — comma-separated allowed origins (e.g. https://dqi.dev,https://www.dqi.dev)
  3. Railway will auto-detect the Dockerfile and railway.json

Frontend (Vercel)

  1. Set the root directory to src/dqi/dashboard/frontend
  2. Set environment variable:
    • VITE_API_URL — Railway API URL (e.g. https://api.dqi.dev)
  3. The vercel.json rewrites /api/* requests to the Railway backend

Local Development

# Copy and fill in env vars
cp env.example .env

# API (from repo root)
uv run uvicorn dqi.dashboard.app:create_app --factory --port 8090

# Frontend (from src/dqi/dashboard/frontend/)
npm install && npm run dev

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

qualito-0.1.0.tar.gz (108.1 kB view details)

Uploaded Source

Built Distribution

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

qualito-0.1.0-py3-none-any.whl (87.0 kB view details)

Uploaded Python 3

File details

Details for the file qualito-0.1.0.tar.gz.

File metadata

  • Download URL: qualito-0.1.0.tar.gz
  • Upload date:
  • Size: 108.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qualito-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24f947d17f769fe4ca48e0c4846497ff14b28e3c1245166da15538d258b745e5
MD5 be43316ceb6bb31f65e73bd3f98e29b6
BLAKE2b-256 b0ea04ec367f069ecd17c838d44d728aa3cfebbb0b78523925f47da072841d25

See more details on using hashes here.

File details

Details for the file qualito-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qualito-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 87.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qualito-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4838f6df83b87a3eee0ac989d2b3b8a69f774dde6c91ea902a81efeaa56b2dcf
MD5 7998fe9ef1cb7110ff4a60fbcbb810db
BLAKE2b-256 53fb3fd6bbfbd15146eff782f1edac69614646c7d6c3a10887314613755a3ed7

See more details on using hashes here.

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