Ace Adaptive Code Evolution banner
jmanhype jmanhype

Ace Adaptive Code Evolution

AI community

Description

ACE (Adaptive Code Evolution) is an AI-powered system for code analysis and optimization.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

ACE: Adaptive Code Evolution

Elixir application that uses LLMs to analyze code, identify optimization opportunities, generate improved implementations, and apply them. Includes a Phoenix web dashboard.

What It Does

  1. Analyzes source files to find optimization opportunities (performance, maintainability, security, reliability)
  2. Sends code to an LLM (Groq, OpenAI, or Anthropic) to generate optimized versions
  3. Evaluates optimizations via compilation, tests, and benchmarks
  4. Applies successful optimizations to the codebase

Stack

Component Technology
Language Elixir 1.14+
Web Phoenix 1.7, LiveView 0.20, LiveDashboard
Database PostgreSQL (Ecto)
LLM providers Groq (default), OpenAI, Anthropic -- via Finch HTTP
GraphQL Absinthe
Frontend esbuild, Tailwind
CLI escript

Supported Languages

Language Support Level
Elixir Primary
JavaScript Partial
Python Partial
Ruby Partial
Go Partial

Project Structure

lib/
  ace/
    core/         # Analysis, Opportunity, Optimization, Evaluation, Experiment
    analysis/     # Analysis service
    optimization/ # Optimization service
    evaluation/   # Evaluation service
    infrastructure/ai/  # LLM provider abstraction (Groq, etc.)
    telemetry.ex  # Function tracing
    cli.ex        # Escript CLI entry point
assets/           # JS (esbuild), node_modules
config/           # Environment configs

Setup

git clone https://github.com/jmanhype/ace-adaptive-code-evolution.git
cd ace-adaptive-code-evolution
mix deps.get
mix ecto.setup

# Set at least one LLM API key:
export GROQ_API_KEY=your_key
# Or: OPENAI_API_KEY, ANTHROPIC_API_KEY

CLI Usage

mix escript.build  # Builds the 'ace' CLI

ace init                              # Initialize config
ace analyze lib/my_module.ex          # Analyze a file
ace analyze-project --dir ./project   # Analyze a