Refraction is an AI-powered code generation platform built for software developers. It enables developers to paste a block of code, select their programming language or framework, and instantly generate output across a wide range of tasks — from writing unit tests and inline documentation to refactoring, bug detection, and code conversion.
The platform supports 56 programming languages including Python, JavaScript, TypeScript, Go, Rust, Java, C#, Swift, Kotlin, PHP, Ruby, and many more. Developers can generate SQL queries, create CI/CD pipeline configurations, produce regular expressions, add type annotations, separate hardcoded literals, and generate Mermaid diagrams directly from natural language descriptions.
Refraction also offers a suite of IDE and editor extensions, enabling seamless integration into existing developer workflows. Extensions are available for VS Code, Sublime Text, JetBrains, Visual Studio, and a GitHub Autoreview integration, as well as a terminal CLI tool. The platform is used by developers at companies including Google, Amazon, Uber, Cisco, Canva, Replit, and others.
- Generate unit tests automatically from existing source code for any supported framework
- Detect bugs in code and receive AI-suggested fixes to improve reliability
- Refactor code to use more modern, efficient, and maintainable practices
- Convert code from one programming language to another with AI assistance
- Create inline documentation and comments to make codebases easier to understand
- Generate SQL queries by describing the desired database operation in plain language
- Create CI/CD pipeline configurations tailored to specific workflow requirements
- Generate regular expressions by describing the desired matching pattern in plain text
- Add type annotations to untyped code to improve readability and tooling support
- Explain the purpose and logic of unfamiliar code blocks in plain language
- Generate Mermaid diagrams from natural language descriptions of desired diagrams
- Convert CSS styles from one framework to another automatically

