Codeflash speeds up your code by figuring out the best way to rewrite it while verifying that the behavior is unchanged, and verifying real speed gains through performance benchmarking. It supports Python, JavaScript, TypeScript, and Java. The optimizations Codeflash finds are generally better algorithms, opportunities to remove wasteful compute, better logic, utilizing caching and utilization of more efficient library methods. Codeflash does not modify the system architecture of your code, but it tries to find the most efficient implementation of your current architecture.Documentation Index
Fetch the complete documentation index at: https://docs.codeflash.ai/llms.txt
Use this file to discover all available pages before exploring further.
Get Started
Pick your language to install and configure Codeflash:Python
Install via pip, uv, or poetry. Configure in
pyproject.toml.JavaScript / TypeScript
Install via npm, yarn, pnpm, or bun. Configure in
package.json. Supports Jest, Vitest, and Mocha.Java
Install via uv. Supports Maven and Gradle. JUnit 5, JUnit 4, and TestNG.
How to use Codeflash
These commands work for Python, JS/TS, and Java projects:Optimize a Function
Optimize Entire Codebase
Trace & Optimize Workflows
Auto-Optimize Pull Requests
Configuration Reference
Python Config
pyproject.toml referenceJS / TS Config
package.json reference — includes monorepo, scattered tests, manual setupJava Config
pom.xml / gradle.properties reference