Continuous optimization for AI agents through intelligent observability and automated code evolution.
curl -fsSL https://raw.githubusercontent.com/madhurprash/adaptive/main/install.sh | bashAfter installation, restart your terminal or run:
source ~/.bashrc # or ~/.zshrcadaptive runThat's it! On first run, you'll be prompted to:
- Authenticate with Google (opens browser)
- Configure your settings
- Start optimizing your agents
$ adaptive run
╔══════════════════════════════════════════════════════════════════╗
║ WELCOME TO ADAPTIVE ║
╚══════════════════════════════════════════════════════════════════╝
Adaptive helps optimize your AI agents through intelligent
observability and automated code evolution.
╔══════════════════════════════════════════════════════════════════╗
║ ✅ AUTHENTICATION SUCCESSFUL ║
╚══════════════════════════════════════════════════════════════════╝
Logged in as: John Doe (john@example.com)
You can now use Adaptive!
✅ You're all set! Continuing to Adaptive...
After authentication, configure Adaptive:
# Set your model
adaptive config set model us.anthropic.claude-sonnet-4-20250514-v1:0
# Set observability platform
adaptive config set platform langsmith
# Store API keys
adaptive config set-key langsmith
adaptive config set-key aws# Run Adaptive
adaptive run
# Run with debug logging
adaptive run --debug
# View configuration
adaptive config show
# Check auth status
adaptive auth status- Multi-Platform: LangSmith, Langfuse, MLflow
- AI-Powered: Identifies patterns and optimization opportunities
- Automated: Evolves prompts and code based on real data
- Interactive: Chat about your agent's behavior
- Safe: Human-in-the-loop approval for all changes
- Flexible: Use any Amazon Bedrock model
- Python 3.12+
- AWS Account (for Bedrock models)
- Observability Platform (LangSmith, Langfuse, or MLflow)
Set up AWS credentials:
aws configureSet up your observability platform:
LangSmith:
export LANGSMITH_API_KEY=lsv2_pt_...
export LANGSMITH_PROJECT=my-projectLangfuse:
export LANGFUSE_PUBLIC_KEY=pk-lf-...
export LANGFUSE_SECRET_KEY=sk-lf-...adaptive auth login # Log in with Google
adaptive auth logout # Log out
adaptive auth status # Show auth statusadaptive config show # View config
adaptive config set KEY VALUE # Set config
adaptive config set-key PLATFORM # Store API key
adaptive config list-keys # List API keys
adaptive config delete-key PLATFORM # Delete API keyadaptive run # Run agent
adaptive run --debug # Debug mode
adaptive version # Show versionTo enable Google authentication, you need to set up OAuth credentials:
- Go to Google Cloud Console
- Create a new project
- Enable Google+ API
- Create OAuth 2.0 credentials (Desktop app)
- Update
src/adaptive/auth.py:GOOGLE_CLIENT_ID = "your-client-id.apps.googleusercontent.com" GOOGLE_CLIENT_SECRET = "your-client-secret"
- Auth:
~/.adaptive/auth.json(created on first login) - Config:
~/.adaptive/config.json(API keys, settings)
Both files are automatically secured with user-only permissions.
adaptive auth logout
adaptive auth loginrm ~/.adaptive/config.json
adaptive config set model us.anthropic.claude-sonnet-4-20250514-v1:0which adaptive
adaptive versionContributions welcome! Please submit pull requests to: https://github.com/madhurprash/adaptive
MIT License