{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"Codeflash is a CLI tool that uses LLMs to automatically generate, test, and benchmark Python code optimizations, then opens pull requests with the best performance improvements found.","skillfed_tags":["performance-optimization","ai-assisted","code-analysis"],"use_cases":["Optimize an entire existing Python codebase in one pass to find and merge performance improvements across all modules.","Automatically optimize new code in pull requests via GitHub Actions before it ships, ensuring performance without manual profiling.","Profile and optimize a single Python script or workflow end-to-end without manual benchmarking or code review.","Integrate performance optimization into CI/CD so that performance regressions are caught and fixed before merge.","Explore multiple optimization strategies for hot code paths and let the tool rank them by actual benchmark results."],"what_it_does":"Codeflash is a command-line client for an AI-powered code optimization service. It analyzes your Python code, generates multiple optimization candidates using LLMs, tests them for correctness, benchmarks them for performance, and opens pull requests with the best improvements. You configure it once with `codeflash init` (which asks for an API key and optional GitHub app setup), then run `codeflash --all` to optimize an entire codebase, `codeflash optimize myscript.py` for a single file, or set up GitHub Actions to optimize all future pull requests automatically.\n\nThe tool depends on a large set of runtime libraries for code analysis (libcst, jedi), testing (pytest and variants), profiling (line-profiler, memray), and communication with the Codeflash service (requests, posthog, sentry-sdk). It's designed for teams shipping Python code\u2014AI agents, computer vision, PyTorch, numerical, and backend workloads\u2014where performance matters and code review is already part of the workflow.","worth_installing":"Yes, with conditions. Install if you have an active Codeflash.ai account and API key, want LLM-assisted performance optimization integrated into your workflow, and are willing to review and merge AI-generated pull requests. The tool is actively maintained, has low install friction, and carries no known vulnerabilities. The main friction is the unclear license metadata\u2014verify the BSL-1.1 terms apply to your use case before relying on it in production. The 38 runtime dependencies are substantial but necessary for the feature set."},"id":"codeflash","links":{"html":"https://skillfed.io/packages/codeflash","md":"https://skillfed.io/packages/codeflash.md","pypi":"https://pypi.org/project/codeflash/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-30","license_spdx":null,"license_treatment":"unclear","name":"codeflash","python_support":"supports_current","summary":"Client for codeflash.ai - automatic code performance optimization, powered by AI"},"popularity":{"monthly_downloads":191944,"position":9872,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.20.6"}
