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.1.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.1-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gade-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0a6913d65a1d3571642a52d7ed316cf46ecf117bb060438c50313552dc746b61
MD5 7b0ac71c27b7dd874e94b245e7a86408
BLAKE2b-256 b04e09693ac86f97f160c9512fdbfa2e3b58318aac7eb3f1e968e68b51f29a8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gade-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 60.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92b1b7d2503cb3a5c9860a1522f7a57d32549b17760c064384fd3865c18cba34
MD5 c08ac68f48a3df991e7fe311c8b8c588
BLAKE2b-256 24f18f71930a885d9de3229df0c7240166173bc7a3f8bf75b217999a3eda18c6

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