Skip to content

WebUI for Fine-Tuning and Self-hosting of Open-Source Large Language Models for Coding

Notifications You must be signed in to change notification settings

smallcloudai/refact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refact.ai logo

Refact - Open Sourced AI Software Development Agent

Stargazers Join our Discord community Check out the documentation

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.