refact

Open Sourced AI Software Development Agent that handles engineering tasks end-to-end.

Visit Server
Added on 3/28/2025

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

โœ… Unlimited accurate auto-completion with context awareness โ€“ Powered by Qwen2.5-Coder-1.5B, utilizing Retrieval-Augmented Generation (RAG).

auto-completion

โœ… 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.

integrations

โœ… 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.

BYOK

๐Ÿค– 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

  1. Download Refact for VS Code or JetBrains.
  2. Set up a custom inference URL:
    http://127.0.0.1:8008
    
  3. 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.md to 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.