Coding super-intelligence to find the most optimized Python code. Use it to optimize existing codebases or new Pull requests as a GitHub Action or a VS Code Extension.
Find a file
2025-02-11 08:15:54 -05:00
code_to_optimize another test function for init optim 2025-01-22 16:31:56 -08:00
codeflash minimum coverage threshold of 60 2025-02-10 19:28:03 -08:00
experiments Merge branch 'main' of github.com:codeflash-ai/codeflash into bootstrapped-benchmarking 2025-01-28 16:39:35 -08:00
pie_test_set ruff format 2024-10-12 20:58:44 -05:00
tests fix border test 2025-02-11 00:29:52 -05:00
mypy_allowlist.txt mypy fixes 2024-12-26 14:46:26 -08:00
pyproject.toml Update pyproject.toml 2025-02-11 00:32:31 -05:00
README.md Update README.md 2024-12-19 03:56:41 +05:30

Codeflash

Codeflash is an AI optimization tool that automatically improves the performance of your Python code while maintaining its correctness.

img.png

Features

  • Automatically optimizes your code using AI
  • Maintains code correctness through extensive testing
  • Opens a pull request for each optimization
  • Continuously optimizes your codebase through CI
  • Dynamically optimizes your real workflows through tracing

Installation

To install Codeflash, run:

pip install codeflash

Quick Start

  1. Configure Codeflash for your project:

    codeflash init
    
  2. Optimize a function:

    codeflash --file path/to/your/file.py --function function_name
    
  3. Optimize your entire codebase:

    codeflash --all
    

Getting the Best Results

To get the most out of Codeflash:

  1. Install the Github App and actions workflow
  2. Find optimizations on your whole codebase with codeflash --all
  3. Find and optimize bottlenecks with the Codeflash Tracer
  4. Review the PRs Codeflash opens

Learn More

License

Codeflash is licensed under the BSL-1.1 License. See the LICENSE file for details.