Skip to main content

Gradient-Aware Development Environment - Allocate AI compute dynamically based on code difficulty

Project description

GADE - Gradient-Aware Development Environment

Python 3.11+ PyPI License: MIT

Allocate AI compute dynamically based on code difficulty.

GADE measures difficulty across your codebase and focuses 80% of tokens on the 20% hardest regions.

Quick Start

pip install gade

# Analyze a repository (works on all systems)
python -m gade analyze ./my-project --top 20

# View heatmap
python -m gade heatmap ./my-project

Windows Users: If gade command doesn't work, use python -m gade instead. This is the recommended universal approach.

Cloud API

Use the hosted API — no setup required:

curl -X POST "https://web-production-8b5ca.up.railway.app/analyze" \
  -H "Content-Type: application/json" \
  -d '{"repo_path": "./my-project", "top_k": 10}'

📖 API Docs: web-production-8b5ca.up.railway.app/docs

Features

  • 5 Difficulty Signals: Edit churn, complexity, errors, uncertainty, gradient
  • 80/20 Allocation: Smart token distribution by difficulty
  • Multi-LLM Support: OpenAI, Anthropic, Google, Ollama, Azure, Bedrock
  • Agentic AI Ready: MCP server, OpenAI tools, LangChain integration
  • REST API: Hosted cloud API or self-host

Installation

pip install gade

Python SDK

from gade import analyze

result = analyze("./my-project")
for node in result.get_top_k(10):
    print(f"{node.node_name}: {node.difficulty_score:.2f}")

CLI Commands

Command Description
python -m gade analyze <path> Rank code by difficulty
python -m gade heatmap <path> Terminal visualization
python -m gade refactor <path> AI-assisted refactoring

Difficulty Tiers

Score Tier AI Strategy
< 0.2 compress Summarize
0.2-0.5 standard Single-pass
0.5-0.8 deep Multi-step + tools
≥ 0.8 debate Multi-pass synthesis

License

MIT

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

gade-0.2.0.tar.gz (374.5 kB view details)

Uploaded Source

Built Distribution

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

gade-0.2.0-py3-none-any.whl (60.6 kB view details)

Uploaded Python 3

File details

Details for the file gade-0.2.0.tar.gz.

File metadata

  • Download URL: gade-0.2.0.tar.gz
  • Upload date:
  • Size: 374.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for gade-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7e03473a8aae1ab0d9f2b566cf26eb6d86d658c167ffec4357e577efcd04ee94
MD5 d9cf196fed2e361584bd1a0cf452ecd0
BLAKE2b-256 ec1fd6b6ba86e28a68b63c18ad3deec4b1fb57bf0ca6b634b8768e2e7244ba36

See more details on using hashes here.

File details

Details for the file gade-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gade-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 60.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for gade-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd9e43c6cb1e853613d4b5f51ae928b3c4324c2f48cd996cc4bb01012b5e3038
MD5 e946d206320f8046204cab2c52e25c76
BLAKE2b-256 31ace73263cfde9afc935f3ead643fc7b9fe3a6499de6392e8ed83b588e1d501

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