What if you could dramatically improve your application's performance by rewriting only its slowest functions in Rust, without migrating the entire codebase or even knowing Rust yourself? Fast Anything is a free, open-source developer tool that combines performance profiling, AI coding agents, automated testing, and Rust optimization. In the demonstrated Python example, execution time dropped from 4.91 seconds to just 42 milliseconds, representing an approximately 116x speedup. How Does Fast Anything Work? Instead of rewriting an entire application in Rust, Fast Anything identifies performance bottlenecks and delegates their optimization to an AI coding agent such as Claude Code or OpenAI Codex. The workflow automatically: - Profiles the application and identifies slow functions - Records real function calls and their results - Asks an AI coding agent to implement an optimized Rust alternative - Replays recorded calls to verify functional equivalence - Benchmarks the original and optimized implementations - Activates the replacement only when validation and performance checks pass Supported Programming Languages Fast Anything supports applications written in: - Python - TypeScript - Go - PHP - Ruby - Java - C# Developers can retain their existing codebase while selectively replacing computational bottlenecks with Rust implementations. Getting Started Install Fast Anything: npm i -g @el4cteo/fast-anything Check your environment and Rust installation: fast-anything doctor Run your application through Fast Anything: fast-anything go --agent claude -- python -m app Replace the command after -- with your application's normal launch command. Automated Verification and Hidden Tests One of the most interesting features of Fast Anything is its validation strategy. Every fifth recorded function call is withheld from the AI coding agent, reducing the risk of generating an implementation that simply overfits the visible test cases. The optimized implementation is activated only if it produces matching results across the recorded calls and demonstrates improved performance. Instant Rollback If you need to return to the original implementation, launch your application with the following environment variable: FAST_ANYTHING_DISABLE=1 This provides a straightforward fallback without requiring a complete codebase migration. Why Rewrite Only the Slowest Code? In many applications, a relatively small percentage of the code accounts for a disproportionate amount of execution time. Targeting these bottlenecks can be considerably more practical than rewriting an entire application in a different programming language. Potential applications include: - Python performance optimization - Data processing pipelines - Computational workloads - Backend services - Scientific computing - Legacy application modernization - AI and machine learning infrastructure - High-performance software development AI Coding Beyond Code Generation Fast Anything demonstrates a particularly interesting direction for AI-assisted software engineering. The agent is not simply asked to write faster code. It operates within a structured workflow that combines profiling, implementation, behavioral verification, benchmarking, and rollback. This is a practical example of harness engineering, where specialized tools and validation mechanisms make AI coding agents more useful and reliable. The reported 116x speedup comes from a specific demonstration and should not be interpreted as a guaranteed improvement for every application. Recorded test cases also cannot establish complete behavioral equivalence, so additional review remains important for production-critical software. Get Fast Anything on GitHub: https://github.com/EL4CTEO/fast-anything Perhaps we don't need to rewrite everything in Rust after all. Just the parts that actually need it. Would you trust an AI coding agent to automatically optimize the slowest functions in your application? Share your thoughts in the comments. Subscribe for more Rust optimization tools, AI coding agents, Python performance techniques, Claude Code and Codex workflows, open-source developer tools, and software engineering experiments. #Rust #Python #FastAnything #AICoding #ClaudeCode #Codex #PerformanceOptimization #OpenSource #SoftwareEngineering