🔥 本项收录自 GitHub 日榜 · 全球 第 13 名(33 stars today),榜单来源:rebang.today
English · 简体中文
Two ways to work · Quick start · SOPs · Features · Local · FAQ · Docs
https://github.com/user-attachments/assets/8af401d9-1aae-427c-b4bc-455c12d17beb80-second product tour (1080p, with sound).
**LoopForge** is a self-hosted workspace where your team ships software with coding agents. Describe what you need to **Main Bot** in chat: it opens a Docker sandbox, checks out your repositories, delegates to project roles, and opens the PR. When a way of working proves itself, save it as an **SOP** (a standard workflow of agents, scripts and human gates) so the next requirement is delivered the same way, with review and approval built in. Coding-agent CLIs do the work: CodeBuddy, Codex, Claude Code, OpenCode, Cursor CLI, Antigravity, Kimi Code, Pi, DeepSeek Harness and ZCode. LoopForge adds the roles, sandboxes, checkpoints and history around them, all on your own infrastructure under the MIT license. ## Two ways to work | | **Chat with Main Bot** | **Run an SOP** | | --- | --- | --- | | Best for | Exploring, quick fixes, iterating with the agent | Repeatable delivery with fixed stages and sign-off | | How it runs | Main Bot opens a [conversation workspace](https://github.com/Tencent/LoopForge/blob/main/docs/conversation-workspaces.md) (a Docker sandbox with your repos) on demand and calls project roles as subagents | The engine runs Agent, Script, Human-gate and sub-SOP nodes in order, in their own sandbox | | You stay in control by | Queuing or steering messages mid-reply, and pausing, resuming or taking over a running SOP from chat | Approving at human gates, sending work back to a chosen step, retrying or rerunning from any node | | Delivers | A PR/MR, or a direct merge into a shared branch (`mode=direct`) | Documents, code or a PR, plus per-node artifacts and logs | Both paths track the same **requirements**, so every change, whether made in chat or by an SOP, links back to what was asked for and counts toward delivery and cost reports.
The chat home. Type a request, @ a role, skill, requirement, SOP or repository, and pick the executor, model and permission mode per conversation.
More setup details: executors, GitHub, sandboxes, access model
- **Executors.** Pick one of ten CLIs beside the home composer, then a model. Every SOP role can choose its executor independently (built-in roles default to CodeBuddy). Requirement clarification, AI notification summaries, Bot replies and run evals currently use CodeBuddy, so their model pickers list CodeBuddy models only and the server refuses a model of another CLI instead of switching it to CodeBuddy; scheduled assistant tasks run on the CLI the task selects. | Executor | Credentials | Installation | | --- | --- | --- | | **CodeBuddy** | Personal key, or a shared key an administrator configures for chat and SOP runs | In the Docker image | | **Codex** | Personal key; a connected execution machine can use its local login | In the Docker image | | **Claude Code** | Personal key; a connected execution machine can use its local login | Installed from npm on first use, then cached | | **OpenCode · Kimi Code · Pi** | Personal key only | Installed from npm on first use, then cached | | **DeepSeek Harness** | Personal key only | In the Docker image | | **Cursor CLI · Antigravity** | Personal key only | Provider installer on first chat use; not installed into SOP sandboxes | | **ZCode** | Personal key only | Not bundled; install it on the service or execution machine PATH | The seven agent CLIs after Claude Code keep their model and MCP configuration in a private home directory per run, so they always use the responsible user's own key and Base URL from personal settings, even on a connected execution machine. When rolling them out to a team, each member configures their own credentials. First-use installs need npm or provider access; [native deployments](https://github.com/Tencent/LoopForge/blob/main/docs/deployment.md#workers-and-runners) need the CLI for the executor you choose. - **GitHub is optional.** All built-in generic SOPs run without a repository: product SOPs deliver documents, and new frontend/backend projects deliver source files in the task workspace. Bug fixes still need source code and reproduction details. Connect a repository when you work on existing code or want PRs. - **Delivering to a repository.** Choose **Connect GitHub** in personal settings, approve the device code on GitHub and pick your repository (the LoopForge OAuth App is built in; no PAT required, manual PAT entry still works). Set executor credentials (or bind a local execution machine), then either run a project SOP or ask Main Bot to change the code and submit a PR/MR. - **Sandboxes.** In the default Compose installation, SOP runs and conversation workspaces both use Docker sandbox containers started through the host Docker socket. Default sandboxes reuse the installed runtime image, so nothing extra is built after installation; custom Dockerfiles still build their own images. Docker socket access grants control of the host daemon, so this setup is for trusted teams, not untrusted multi-tenant isolation. See [deployment boundaries](https://github.com/Tencent/LoopForge/blob/main/docs/deployment.md#accounts). Re-running the installer keeps your data. - **Accounts and access.** New installations listen on all interfaces (existing bind settings are kept) and are designed for a trusted team: signed-in users can read project data across the instance, and teammates can sign up from the login page (`AGENTFLOW_ALLOW_SIGNUP=false` in `.env` turns that off). Read the [account and access model](https://github.com/Tencent/LoopForge/blob/main/docs/deployment.md#accounts) before exposing it beyond your team. - **Remote access, HTTPS, separate workers.** See [Deployment](https://github.com/Tencent/LoopForge/blob/main/docs/deployment.md). - **Hacking on LoopForge itself?** `bash scripts/dev.sh` runs it natively (Go 1.26.11+).
The SOP designer with the built-in bug-fix SOP. Each step picks a role; failed checks can send the work back to an earlier step.
| Node | What it does | | --- | --- | | **Agent** | A role (prompt, executor, model, rules, Skills and MCP tools) that designs, implements, reviews or tests. | | **Script** | A deterministic shell step: build, test, lint, generate a report. No AI where AI is not needed. | | **Human gate** | Pauses the run until someone checks the artifacts and approves, or sends the work back to a step. | | **Sub-SOP** | Runs another SOP as a sub-workflow. | | **Preview build** | Builds a static site and archives it for review. | Each node declares its artifacts and dependencies, and the engine starts each step once its dependencies complete. Start from a built-in SOP, adapt its roles, rules and environment to your project, and publish versions as it evolves.
A run waiting at a human gate: approve and continue, add context and rerun the step, or send the work back upstream.
**A delivery we actually ran:** four CodeBuddy roles planned a Python fix, implemented it, reviewed it independently and summarized the delivery. Three real tests passed; the run waited for human approval, then verified the accepted code had not changed. The [reusable acceptance case](https://github.com/Tencent/LoopForge/blob/main/e2e/api/45-delivery-model.test.mjs) checks the files and results. See the [validation record](https://github.com/Tencent/LoopForge/blob/main/docs/validation.md) for scope and known gaps. ## Features | Area | What you get | | --- | --- | | **Chat workbench** | Main Bot with per-conversation executor, model and permission mode. `@` references for roles, skills, requirements, SOPs and repositories. Messages queue while a reply runs; *Steer* interrupts and sends now. Generated files open in a side panel with preview, source and download. | | **Conversation workspaces** | On-demand Docker sandboxes with the project's repositories checked out, project roles as native subagents, and direct control of a running SOP workspace: pause, resume or take over. | | **SOP designer** | Visual canvas with Agent, Script, Human gate, Sub-SOP and Preview nodes, rework-on-failure edges, validation, version history and publishing. Built-in backend, frontend, bug-fix and product SOPs. | | **Roles** | Reusable definitions: prompt, executor, model, rules, Skills, MCP tools, artifacts and gates, shared across SOP nodes and chat subagents. | | **Requirement → delivery** | Requirements tracked end to end, whether shipped by an SOP or straight from chat, with PR/MR status tracking, merge detection and direct-branch merges. | | **Runs & approvals** | Live node status, tool traces, worker logs, per-node artifact snapshots and workspace previews. A single **Needs review** inbox for every gate waiting on you. | | **AI scheduled tasks** | Recurring agent tasks with full workspace, SOP and MCP access; a shared market of versioned, parameterized task templates; automatic SOP dispatch for new requirements. | | **Insights & cost** | Engineering metrics, business-domain reports with static HTML/SVG export, and token/cost accounting for SOPs and conversations at public list prices. | | **Execution environments** | Platform workers, Docker sandboxes, or a connected local execution machine using your own tools and repositories. | | **Team-ready** | Password accounts, projects and members, light/dark/system themes, an OpenAPI-described HTTP and MCP API. Management pages are in English and Chinese; the chat workbench is Chinese for now. |
Built-in SOPs are read-only blueprints; copy one into your project to run and edit it.
## LoopForge Local Don't want to run a server? **LoopForge Local** brings the built-in delivery workflows straight into the coding assistant you already use: ```bash # Run inside your target project, e.g. for Claude Code npx -y loopforge-cli@latest install claude ``` Then run `/start-devflow "
## Contributing
Issues and PRs are welcome: share a use case, report a bug, or improve workflows, integrations and the platform experience. Start with the [contributing guide](https://github.com/Tencent/LoopForge/blob/main/CONTRIBUTING.md). Security issues go through the [security policy](https://github.com/Tencent/LoopForge/blob/main/SECURITY.md).
If LoopForge is useful to you, a star helps others find it.