Skip to content

CodeOptiX

Agentic Code Optimization & Deep Evaluation for Superior Coding Agent Experience

Built by Superagentic AI, Powered by GEPA and Bloom


๐Ÿ” 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.

๐Ÿš€ 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

Ollama Support - No API Key Required!

CodeOptiX supports Ollama for evaluations - use local models without API keys:

  • โœ… Working Ollama integration - Generates code and provides proper security evaluations
  • โœ… No API key needed - Perfect for open-source users
  • โœ… Privacy-friendly - All processing happens locally
  • โœ… Free to use - No cloud costs
  • โš ๏ธ Limited evolution support - Use cloud providers for codeoptix evolve

See Ollama Integration for setup and limitations.

Cloud providers (OpenAI, Anthropic, Google) still require API keys. See Installation for setup.

๐Ÿ“‹ 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 (30 Seconds)

# 1. Install
pip install codeoptix

# 2. Option A: Use Ollama (No API key!)
ollama serve
codeoptix eval \
  --agent basic \
  --behaviors insecure-code \
  --llm-provider ollama

# 2. Option B: Use cloud provider (requires API key)
export OPENAI_API_KEY="your-key-here"
codeoptix eval \
  --agent basic \
  --behaviors insecure-code \
  --llm-provider openai

That's it! You've just run your first quality check.


โœจ Key Features

๐Ÿค– Agent-Agnostic

Works with any coding agent:

  • Claude Code
  • Codex (GPT-5.2)
  • Gemini CLI
  • ACP-compatible agents
  • Custom agents

๐ŸŽฏ Behavior-Agnostic

Modular behavior specifications:

  • insecure-code - Security vulnerabilities
  • vacuous-tests - Test quality
  • plan-drift - Requirements alignment
  • Custom behaviors

๐Ÿ”„ Self-Improving

Evolves agent prompts using GEPA (Genetic-Pareto):

  • Automatic optimization
  • Iterative improvement
  • Performance tracking
  • Reflective mutation

๐Ÿ“Š Deep Evaluations

Comprehensive behavioral analysis:

  • Multi-modal evaluation (static analysis, LLM, tests)
  • Bloom-style scenario generation
  • Root cause analysis
  • Actionable insights

๐Ÿ”Œ Multiple Usage Modes

Use CodeOptiX how you want:

  • Local Check - Run when ready to test
  • CI/CD Mode - Automated quality gates
  • ACP Integration - Editor quality bridge
  • Standalone API - Programmatic access

๐Ÿ“ˆ Reproducible

All evaluations are versioned:

  • Results tracking
  • Reflection reports
  • Evolution history
  • Artifact management

๐Ÿ‘ฅ Who Uses CodeOptiX?

๐Ÿ‘จโ€๐Ÿ’ป Solo Developers

Pain Point: "I generated code with Claude Code/Codex/Gemini. Should I ship it?"

Solution:

  • Quick quality checks after feature completion
  • Security scanning
  • Test quality validation
  • Multi-LLM critique

Usage:

codeoptix eval --agent claude-code --behaviors insecure-code

๐Ÿ‘ฅ Engineering Teams

Pain Point: "We need consistent quality gates for AI-generated code"

Solution:

  • Automated CI/CD quality gates
  • PR-level quality enforcement
  • Team-wide standards
  • Behavioral optimization at scale

Usage:

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

๐Ÿ”’ Security & Testing Teams

Pain Point: "We need automated security and behavior validation"

Solution:

  • Automated security scanning
  • Behavior testing and validation
  • Agent optimization
  • Evaluation metrics and reporting

Usage:

codeoptix ci \
  --agent claude-code \
  --behaviors insecure-code,vacuous-tests \
  --config .codeoptix/config.yaml

๐Ÿ—๏ธ How It Works

CodeOptiX follows a simple Observe โ†’ Evaluate โ†’ Reflect โ†’ Evolve workflow:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Observe   โ”‚ --> โ”‚  Evaluate   โ”‚ --> โ”‚  Reflect    โ”‚ --> โ”‚   Evolve    โ”‚
โ”‚             โ”‚     โ”‚             โ”‚     โ”‚             โ”‚     โ”‚             โ”‚
โ”‚ Capture     โ”‚     โ”‚ Measure     โ”‚     โ”‚ Generate    โ”‚     โ”‚ Optimize    โ”‚
โ”‚ agent       โ”‚     โ”‚ against     โ”‚     โ”‚ insights    โ”‚     โ”‚ prompts     โ”‚
โ”‚ behavior    โ”‚     โ”‚ behaviors   โ”‚     โ”‚ on failures โ”‚     โ”‚ with GEPA   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

1. Observe

Capture agent behavior (code, tests, traces) from any coding agent.

2. Evaluate

Measure behavior against configurable specifications (security, test quality, plan alignment).

3. Reflect

Generate actionable insights on failures with root cause analysis.

4. Evolve

Optimize agent prompts using GEPA (Genetic-Pareto) for continuous improvement.


๐Ÿš€ Usage Modes

Mode 1: Local Check (Primary)

When: You're ready to test your code after completing a feature/task

# Single behavior (recommended for getting started)
codeoptix eval \
  --agent claude-code \
  --behaviors insecure-code \
  --llm-provider openai

# Multiple behaviors
codeoptix eval \
  --agent codex \
  --behaviors insecure-code,vacuous-tests,plan-drift \
  --config examples/configs/basic.yaml

Features:

  • โœ… Regression testing
  • โœ… Code quality evaluation
  • โœ… Multi-LLM critique (optional different model judge)
  • โœ… Security scanning
  • โœ… Optimization suggestions

Mode 2: CI/CD Integration (Primary)

When: Teams want automated quality gates

# CI/CD optimized command
codeoptix ci \
  --agent codex \
  --behaviors insecure-code \
  --fail-on-failure \
  --output-format summary

Features:

  • โœ… GitHub Actions integration
  • โœ… Proper exit codes for automation
  • โœ… Summary and JSON output formats
  • โœ… Fail-fast behavior
  • โœ… PR comments (coming soon)

Mode 3: ACP Integration (Quality Bridge)

When: Users want quality checks integrated into editor workflow

# Register CodeOptiX as ACP agent
codeoptix acp register

# Use as quality bridge
codeoptix acp bridge --agent-name claude-code --auto-eval

# Multi-agent judge
codeoptix acp judge \
  --generate-agent claude-code \
  --judge-agent grok \
  --prompt "Write secure code"

Features:

  • โœ… Quality bridge for editors (Zed, JetBrains, Neovim, VS Code)
  • โœ… Multi-agent judge (generate with one, judge with another)
  • โœ… Intelligent agent orchestration
  • โœ… Real-time quality feedback
  • โœ… Automatic code extraction

๐Ÿ“‹ Built-in Behaviors

CodeOptiX includes three built-in behavior specifications:

๐Ÿ”’ insecure-code

Detects security vulnerabilities:

  • Hardcoded secrets
  • SQL injection risks
  • XSS vulnerabilities
  • Insecure authentication
  • And more...

Usage:

codeoptix eval --behaviors insecure-code

๐Ÿงช vacuous-tests

Identifies low-quality tests:

  • Missing assertions
  • Trivial tests
  • Test coverage issues
  • Meaningless test cases

Usage:

codeoptix eval --behaviors vacuous-tests

๐Ÿ“ plan-drift

Detects requirements misalignment:

  • Plan deviations
  • Missing features
  • Extra features
  • Requirements drift

Usage:

codeoptix eval --behaviors plan-drift --context plan.json

๐Ÿ’ก Example Use Cases

Security Auditing

Ensure your agent never writes insecure code:

codeoptix eval \
  --agent claude-code \
  --behaviors insecure-code \
  --fail-on-failure

Test Quality Validation

Verify your agent generates meaningful tests:

codeoptix eval \
  --agent codex \
  --behaviors vacuous-tests \
  --config examples/configs/single-behavior-vacuous-tests.yaml

Requirements Alignment

Check that your agent follows requirements:

codeoptix eval \
  --agent gemini-cli \
  --behaviors plan-drift \
  --context requirements.json

CI/CD Quality Gates

Automated quality checks in your pipeline:

codeoptix ci \
  --agent codex \
  --behaviors insecure-code,vacuous-tests \
  --fail-on-failure \
  --output-format summary

๐Ÿ“ฆ Installation

Using pip

pip install codeoptix
uv pip install codeoptix

From Source

git clone https://github.com/SuperagenticAI/codeoptix.git
cd codeoptix
pip install -e .

๐Ÿ“š Documentation

Getting Started

Core Concepts

Guides

Advanced


๐ŸŽ“ Example Configurations

We provide ready-to-use configuration files:

  • examples/configs/single-behavior-insecure-code.yaml - Security checks only
  • examples/configs/single-behavior-vacuous-tests.yaml - Test quality only
  • examples/configs/single-behavior-plan-drift.yaml - Requirements alignment only
  • examples/configs/ci-cd.yaml - Optimized for CI/CD pipelines
  • examples/configs/basic.yaml - Minimal configuration

See examples/configs/ directory in the repository for configuration examples.


๐Ÿ† Why CodeOptiX?

๐ŸŽฏ Agentic Code Optimizer

CodeOptiX acts as your Agentic Code Optimizer - automatically evaluating, testing, and optimizing code generated by any coding agent using GEPA and Bloom.

๐Ÿ”„ When You're Ready

Run CodeOptiX when you're ready to test - after completing a feature or task. No need to integrate into every step.

๐Ÿค Works with Any Agent

Don't lock yourself into one agent. CodeOptiX works with Claude Code, Codex, Gemini CLI, and any ACP-compatible agent.

๐Ÿ“ˆ Continuous Improvement

Evolve your agent prompts automatically using GEPA (Genetic-Pareto) for better results over time.


๐Ÿš€ Get Started Now


๐Ÿ“ž Support & Community


๐Ÿ“„ License

Apache License 2.0. See LICENSE for details.


๐Ÿค– About Superagentic AI

CodeOptiX is proudly built by Superagentic AI - Advancing the future of AI agent optimization and autonomous systems.

Our Mission

We're pioneering intelligent agent optimization technologies to enhance developer productivity and code quality. CodeOptiX represents our commitment to building tools that make AI coding assistants more reliable, efficient, and trustworthy.

Explore More