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
2024-11-23 17:24:15 -08:00
code_to_optimize Running end-to-end. 2024-11-23 17:24:15 -08:00
codeflash Running end-to-end. 2024-11-23 17:24:15 -08:00
experiments Busy work moving a file. 2024-11-12 11:00:10 -08:00
pie_test_set ruff format 2024-10-12 20:58:44 -05:00
tests Update parse_test_output.py 2024-11-20 18:09:34 -04:00
mypy_allowlist.txt Revert "aiservice is good, cli/codeflash has pyproject.toml in cli." 2024-11-12 17:35:13 -08:00
pyproject.toml Merge branch 'main' of github.com:codeflash-ai/codeflash into couverture 2024-11-22 13:47:30 -08:00
README.md release/v0.6.19 2024-08-22 15:33:08 -07:00

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.