Skip to main content

Agentic Code Optimization & Deep Evaluation for Superior Coding Agent Experience. Built by Superagentic AI.

Project description

PyPI version CI codecov Docs Python 3.12+ License: Apache 2.0 Code style: ruff

CodeOptiX Logo

CodeOptiX

Agentic Code Optimization & Deep Evaluation for Superior Coding Agent Experience

CodeOptiX is the universal code optimization engine that improves coding agent experience with deep evaluations and optimization. When AI coding agents dazzle with impressive code but leave you wondering about quality, maintainability, security, and reliability, CodeOptiX ensures proper behavior through evaluations, reflection, and self-improvement. Powered by GEPA optimization and Bloom scenario generation.

Brought to you by Superagentic AI
Advancing AI agent optimization and autonomous systems

📚 Documentation


What is CodeOptiX?

CodeOptiX is the universal code optimization engine that improves coding agent experience with deep evaluations and optimization.

When AI coding agents dazzle with impressive code but leave you wondering about quality, maintainability, security, and reliability, CodeOptiX ensures proper behavior through evaluations, reflection, and self-improvement. Powered by GEPA optimization and Bloom scenario generation.

Built by Superagentic AI - Advancing the future of AI agent optimization and autonomous systems.

🚀 Key Capabilities

  • 🔍 Deep Behavioral Evaluation - Comprehensive testing against security, reliability, and quality behaviors
  • 🧬 GEPA Optimization Engine - Genetic-Pareto Evolution for automatic agent improvement
  • 🌸 Bloom-Style Scenario Generation - Intelligent test case creation for thorough evaluation
  • 🎯 Multi-Agent Support - Works with Claude Code, Codex, Gemini CLI, and custom agents
  • 🔧 Multi-Provider LLM Support - OpenAI, Anthropic, Google, and Ollama (local models included!)
  • ⚡ CI/CD Integration - Automated quality gates and GitHub Actions support

📋 Open Source Limitations

The open source version provides core evaluation capabilities. Advanced features like agent evolution and optimization have limited support. For full optimization capabilities tailored to your needs, please get in touch.


Quick Start

Installation

# Using uv (recommended)
uv pip install codeoptix

# Using pip
pip install codeoptix

Your First Evaluation

Option 1: Using Ollama (No API Key Required)

# Make sure Ollama is running
ollama serve

# Run evaluation with local model
codeoptix eval \
  --agent basic \
  --behaviors insecure-code \
  --llm-provider ollama

Option 2: Using Cloud Providers

# Set API key
export OPENAI_API_KEY="your-key-here"

# Run evaluation
codeoptix eval \
  --agent claude-code \
  --behaviors insecure-code \
  --llm-provider openai

Built-in Behaviors

Behavior Description
insecure-code Detects security vulnerabilities (SQL injection, XSS, hardcoded secrets)
vacuous-tests Identifies low-quality tests (missing assertions, trivial tests)
plan-drift Detects requirements misalignment and plan deviations
# Run multiple behaviors
codeoptix eval --behaviors insecure-code,vacuous-tests,plan-drift

Usage Modes

CLI Evaluation

codeoptix eval \
  --agent claude-code \
  --behaviors insecure-code \
  --llm-provider openai

CI/CD Integration

codeoptix ci \
  --agent codex \
  --behaviors insecure-code \
  --fail-on-failure

Python API

from codeoptix.adapters.factory import create_adapter
from codeoptix.evaluation import EvaluationEngine
from codeoptix.utils.llm import create_llm_client, LLMProvider

# Create adapter and evaluation engine
adapter = create_adapter("claude-code", config)
llm_client = create_llm_client(LLMProvider.OPENAI)
engine = EvaluationEngine(adapter, llm_client)

# Evaluate behaviors
results = engine.evaluate_behaviors(
    behavior_names=["insecure-code", "vacuous-tests"]
)

Development

Setup

# Clone the repository
git clone https://github.com/SuperagenticAI/codeoptix.git
cd codeoptix

# Install with uv (recommended)
uv sync --dev --extra docs

# Or with pip
pip install -e ".[dev,docs]"

Running Tests

# Run all tests
uv run pytest

# Run with coverage
uv run pytest --cov=codeoptix --cov-report=html

Code Quality

# Format code
uv run ruff format .

# Lint code
uv run ruff check .

# Install pre-commit hooks
uv run pre-commit install

Contributing

Contributions are welcome! Please see our Contributing Guide.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests and linting (uv run pytest && uv run ruff check .)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Support


🤖 About Superagentic AI

CodeOptiX is proudly built by Superagentic AI

Advancing AI agent optimization and autonomous systems for the future of software development.

🌟 Our Mission

We're building the next generation of AI tools that enhance developer productivity and code quality through intelligent agent optimization.

🚀 Explore More

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

codeoptix-0.1.3.tar.gz (152.2 kB view details)

Uploaded Source

Built Distribution

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

codeoptix-0.1.3-py3-none-any.whl (219.8 kB view details)

Uploaded Python 3

File details

Details for the file codeoptix-0.1.3.tar.gz.

File metadata

  • Download URL: codeoptix-0.1.3.tar.gz
  • Upload date:
  • Size: 152.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for codeoptix-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d81cba3944b9d8e6cb13aeaa0d4b0ee267e25ded768e962561899873613efa48
MD5 4fdfbba704c656e22ee42479ec8b54f9
BLAKE2b-256 e8047e7254f92744b169bf1893a459b917267e5ec639c19181763f4acd7d0e78

See more details on using hashes here.

File details

Details for the file codeoptix-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: codeoptix-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 219.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for codeoptix-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26e84cca4b1b1d491b761c64bd4e2630a1bcdc6e0bebe83fea7b471e3540cd74
MD5 3c2bb3f5980ad32e313a187836a2b24b
BLAKE2b-256 fadd6e2b1f36180470a88e2520f9b05fdfb5fdecbd01b5ba66ffa36daab165ac

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