Gradient-Aware Development Environment - Allocate AI compute dynamically based on code difficulty
Project description
GADE - Gradient-Aware Development Environment
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
gade analyze ./my-project --top 20
# View heatmap
gade heatmap ./my-project
# Start API server
gade serve --port 8000
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: FastAPI endpoints at
/analyze,/score,/regions
Installation
# Core
pip install gade
# With all integrations
pip install gade[all]
# Specific features
pip install gade[llm] # LLM support
pip install gade[api] # REST API
pip install gade[mcp] # Claude Desktop
pip install gade[langchain] # LangChain tools
Python SDK
from gade import analyze, get_difficulty
result = analyze("./my-project")
for node in result.get_top_k(10):
print(f"{node.name}: {node.difficulty_score:.2f}")
CLI Commands
| Command | Description |
|---|---|
gade analyze <path> |
Rank code by difficulty |
gade heatmap <path> |
Terminal visualization |
gade refactor <path> |
AI-assisted refactoring |
gade serve |
Start REST API |
gade serve-mcp |
Start MCP server |
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.1.0.tar.gz
(45.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gade-0.1.0-py3-none-any.whl
(52.1 kB
view details)
File details
Details for the file gade-0.1.0.tar.gz.
File metadata
- Download URL: gade-0.1.0.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d82ea19426e9e87d6ea0189a3f6eeeb479d746d44eb93f1a85d4928a54d96a4
|
|
| MD5 |
0b295e70a19310b21151ac1f482e76b5
|
|
| BLAKE2b-256 |
3c4c478a5fe9da13b7028d97b899cfb8b795fee8d2b38ef56f76b718aa2dfdf2
|
File details
Details for the file gade-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gade-0.1.0-py3-none-any.whl
- Upload date:
- Size: 52.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77ea246f5724ac4220da917d5f53cbcf1537769a4af90f914be9e7667a3483cf
|
|
| MD5 |
3ba0af78e732bda5a3cc1e9cf97b3a45
|
|
| BLAKE2b-256 |
6f6c1901c336b7d700f3f911480b5fc122fa311dc61b351adaed4e6bd9ce6ecb
|