- Refact.ai
Refact.ai
Refact - Open Sourced AI Software Development Agent
Refact Agent is a free, open-source AI Agent that handles engineering tasks end-to-end. It deeply understands your codebases and integrates with your tools, databases, and browsers to automate complex, multi-step tasks.
๐ Seamless Integration with Your Workflow
Refact Agent works effortlessly with the tools and databases you already use:
- ๐ Version Control: GitHub, GitLab
- ๐๏ธ Databases: PostgreSQL, MySQL
- ๐ ๏ธ Debugging: Pdb
- ๐ณ Containerization: Docker
โก Why Choose Refact Agent?
- โ Deploy On-Premise: Maintain 100% control over your codebase.
- ๐ง Access State-of-the-Art Models: Supports Claude 3.7 Sonnet, GPT-4o, o3-mini, and more.
- ๐ Bring Your Own Key (BYOK): Use your own API keys for external LLMs.
- ๐ฌ Integrated IDE Chat: Stay in your workflow, no need to switch between tools!
- โก Free, Unlimited, Context-Aware Auto-Completion: Code faster with smart AI suggestions.
- ๐ ๏ธ Supports 25+ Programming Languages: Python, JavaScript, Java, Rust, TypeScript, PHP, C++, C#, Go, and many more!
๐ View Full List of Supported Models
๐ข Using AI for work? Letโs bring it to your company!
Fill out this form โ Our AI Agent will be tailored to your companyโs data, learning from feedback, and helping organize knowledge for better collaboration with your team.
๐ Table of Contents
- ๐ Core Features and Functionality
- ๐ค Which Tasks Can Refact Help You With?
- โ๏ธ QuickStart
- ๐ณ Running Refact Self-Hosted in a Docker Container
- ๐ Getting Started with Plugins
- ๐ Documentation
- ๐ฅ Contribution
- ๐ Join the Community
๐ Core Features and Functionality
โ Unlimited accurate auto-completion with context awareness โ Powered by Qwen2.5-Coder-1.5B, utilizing Retrieval-Augmented Generation (RAG).
โ Integrated in-IDE Chat โ AI deeply understands your code and provides relevant, intelligent answers.
โ Integrated with Tools โ Works with GitHub, GitLab, PostgreSQL, MySQL, Pdb, Docker, and shell commands.
โ State-of-the-Art Models โ Supports Claude 3.7 Sonnet, GPT-4o, o3-mini, and more.
โ Bring Your Own Key (BYOK) โ Use your own API keys for external LLMs.
๐ค Which Tasks Can Refact Help You With?
-
๐ Generate code from natural language prompts (even with typos).
-
๐ Refactor code for better quality and readability.
-
๐ Explain code to quickly understand unfamiliar code.
-
๐ Debug code to detect and fix errors faster.
-
๐งช Generate unit tests for reliable code.
-
๐ Code Review with AI-assisted suggestions.
-
๐ Create Documentation to keep knowledge up to date.
-
๐ท Generate Docstrings for structured documentation.
โ๏ธ QuickStart
You can install the Refact repository without Docker:
pip install .
For GPU with CUDA capability >= 8.0 and flash-attention v2 support:
FLASH_ATTENTION_FORCE_BUILD=TRUE MAX_JOBS=4 INSTALL_OPTIONAL=TRUE pip install .
๐ณ Running Refact Self-Hosted in a Docker Container
The easiest way to run the self-hosted server is using a pre-built Docker image.
See CONTRIBUTING.md for installation without a Docker container.
๐ Getting Started with Plugins
- Download Refact for VS Code or JetBrains.
- Set up a custom inference URL:
http://127.0.0.1:8008 - Configure the plugin settings:
- JetBrains: Settings > Tools > Refact.ai > Advanced > Inference URL
- VSCode: Extensions > Refact.ai Assistant > Settings > Address URL
๐ Documentation
For detailed guidance and best practices, check out our documentation.
๐ฅ Contribution
Want to contribute to our project? We're always open to new ideas and features!
- Check out GitHub Issues โ See what we're working on or suggest your own ideas.
- Read our Contributing Guide โ Check out
Contributing.mdto get started.
Your contributions help shape the future of Refact Agent! ๐
๐ Join the Community
We're all about open-source and empowering developers with AI tools. Our vision is to build the future of programming. Join us and be part of the journey!
๐ข Join our Discord server โ A community-run space for discussion, questions, and feedback.
Made with โค๏ธ by developers who automate the boring, so you can focus on building the future.