by smallcloudai
AI Agent that handles engineering tasks end-to-end: integrates with developers’ tools, plans, executes, and iterates until it achieves a successful result.
# Add to your Claude Code skills
git clone https://github.com/smallcloudai/refactLast scanned: 4/21/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-04-21T06:03:27.264Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}No comments yet. Be the first to share your thoughts!
Refact runs a local Rust engine (refact-lsp) from your IDE and connects only to the model providers, local runtimes, and integrations you configure. It brings together chat, codebase search, autonomous agents, browser automation, and tool integrations while keeping project state, indexes, trajectories, and task data on your machine.
Refact Cloud has been retired. Read the announcement: Refact Cloud is shutting down.
No bundled inference endpoint or Refact-issued API key is required for local/BYOK usage.
refact-lsp is the local HTTP/LSP engine behind the IDE experience. It serves the chat UI, tracks open workspaces, exposes model capability and tool APIs, manages shutdown and background tasks, and keeps project state in local Refact directories.
The engine runs persistent chat threads with command queues, SSE streaming, pause/confirmation states, retries, regeneration, message editing, and trajectory storage. Modes such as Ask, Explore, Debug, Review, Plan, Agent, and task workflows decide which tools and context sources are available.
Refact builds local context from project files, selected code, open editors, git state, AST indexes, and vector search. The agent can inspect project trees, read files, search text, find symbols, query semantic indexes, and prepare compact context for the chosen model.
Agent tools can create and update files, apply patches, move or remove files, run shell commands, execute configured command-line tools, manage long-running services, fetch web pages, search the web, and delegate focused work to subagents.
The built-in Chrome runtime can open pages, click and fill controls, wait for page changes, capture screenshots, inspect DOM/accessibility state, run JavaScript, and read console logs. This makes UI debugging and browser-based validation part of the same agent workflow.
Refact connects to GitHub, GitLab, Bitbucket, PostgreSQL, MySQL, PDB, one-off command tools, services, and MCP servers. MCP lazy discovery keeps large external tool catalogs available without flooding every model request with every schema.
The engine can preview and restore workspace checkpoints, inspect git changes, generate commit messages from diffs, run code review flows, and keep edits visible as patches before they are accepted.
Save reusable project knowledge, search previous trajectories, manage task boards, spawn task agents, activate skills, install commands/subagents, and resume previous work. These features make longer agent workflows repeatable instead of one-off chat sessions.
Refact discovers and enables models from configured providers and local runtimes. Current provider families include Anthropic, OpenAI, OpenAI Responses, OpenAI Codex, OpenRouter, Groq, DeepSeek, Doubao, xAI, Gemini, Qwen, Kimi, Zhipu, MiniMax, GitHub Copilot, Claude Code, custom OpenAI-compatible endpoints, Ollama, LM Studio, and vLLM.
Model availability, pricing, quotas, and data policies are controlled by the provider or runtime you choose. Refact adds local capability metadata so the UI and engine can select appropriate models for chat, reasoning, agent work, and embeddings.
📜 Read more about supported models
refact-lsp engine.| Area | Path | Purpose |
| --- | --- | --- |
| Agent Engine | refact-agent/engine/ | Rust refact-lsp HTTP/LSP engine, providers, tools, indexes, integrations |
| Agent GUI | refact-agent/gui/ | React/Vite chat UI package used by IDE webviews and standalone development |
| VS Code extension | plugins/vscode/ | VS Code host integration |
| JetBrains plugin | plugins/intellij/ | JetBrains host integration |
| Docs site | docs/ | Astro/Starlight documentation site |
# Engine
(cd refact-agent/engine && cargo check && cargo test --lib)
# GUI
(cd refact-agent/gui && npm ci && npm run types && npm run lint && npm run test)
# VS Code plugin (after building/packing refact-agent/gui)
(cd plugins/vscode && npm ci && npm install ../../refact-agent/gui/refact-chat-js-*.tgz --no-save && npm run compile && npm run lint)
# JetBrains plugin
(cd plugins/intellij && ./gradlew check)
# Docs
(cd docs && npm ci && npm run build)
See the dedicated READMEs in each subproject for full development workflows.
Contributions are welcome. Please open an issue or discussion for larger changes, and run the relevant engine, GUI, or docs checks before submitting a pull request.
Refact is distributed under the BSD-3-Clause license. See the repository license for details.