Sponsored by Deepsite.site

Refact.ai

Created By
smallcloudai9 months ago
Open-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
Content

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.

Recommend Clients
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
LutraLutra is the first MCP compatible client built for everyone
WindsurfThe new purpose-built IDE to harness magic
Cherry Studio๐Ÿ’ Cherry Studio is a desktop client that supports for multiple LLM providers.
BACHAI-TWITTER-API45Twitter็š„ไธ€ไบ›api mcp
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbotโ„ข
MCP PlaygroundCall MCP Server Tools Online
CursorThe AI Code Editor
Continueโฉ Create, share, and use custom AI code assistants with our open-source IDE extensions and hub of models, rules, prompts, docs, and other building blocks
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
HyperChatHyperChat is a Chat client that strives for openness, utilizing APIs from various LLMs to achieve the best Chat experience, as well as implementing productivity tools through the MCP protocol.
A Sleek AI Assistant & MCP Client5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
Cline โ€“ #1 on OpenRouterAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
ZedCode at the speed of thought โ€“ Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
y-cli ๐Ÿš€A Tiny Terminal Chat App for AI Models with MCP Client Support