fix: remove remaining CodeBuddy-only gates from platform workflows (#1588)
fix: honor the selected executor throughout platform workflows
test: verify executor setup guidance in space conversations
fix: direct shared model refusals to personal executors
fix(runtime): keep the workspace storage policy for isolated gate commands
fix(evolution): point refused shared models at personal executors
Evolution policy saves and optimizations that pick a model outside the shared CodeBuddy list now return the same guidance as chat, so the UI offers executor setup instead of a CodeBuddy key.
Co-Authored-By: Claude Code noreply@anthropic.com
fix(evolution): use a personal executor for an unavailable inherited model
fix(evolution): fall back to default executor for inherited LOOP role models
A LOOP role’s pinned model is only a preference for SOP optimization. When the policy owner lacks that CLI’s credential, optimization now falls back to the owner’s default executor (or the shared CodeBuddy key’s default model) instead of refusing; an explicitly chosen model stays strict. The auto-block reason reports the concrete credential error instead of a generic one.
Co-Authored-By: Claude Code noreply@anthropic.com
Co-authored-by: roberttwang roberttwang@tencent.com Co-authored-by: roberttwang u_dc6754cd1ee5@users.noreply.local Co-authored-by: Claude Code noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
English · 简体中文
Two ways to work · Quick start · LOOPs · Features · Local (Legacy) · FAQ · Docs
https://github.com/user-attachments/assets/8af401d9-1aae-427c-b4bc-455c12d17beb
80-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 a LOOP (a reusable delivery 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
mode=direct)Both paths track the same requirements, so every change, whether made in chat or by a LOOP, links back to what was asked for and counts toward delivery and cost reports.
The chat home. Type a request,
@a role, skill, requirement, LOOP or repository, and pick the executor, model and permission mode per conversation.Why LoopForge
Ask a coding agent to “fix this bug” and the result depends on that run. It might skip the plan, forget the tests, review its own code, or stop halfway without anyone noticing. That’s fine for a demo, but it isn’t how a team ships.
Quick start
Install Git and clone the repository first. The installer checks Docker, Compose, Python 3 and curl and offers to install missing components. Python/curl installation supports apt, dnf and yum on Linux; the Compose plugin supports x86_64/arm64 and verifies the official release SHA-256. macOS needs a working Python 3 and Docker Desktop; Homebrew can install missing components. Ordinary Linux users are supported through Docker group access or sudo. Set
LOOPFORGE_YES=1to accept installation prompts. Package and image downloads require internet access../start.shpulls the GHCR release image pinned incompose.yamlwithout building locally (bash scripts/install.shdoes the same). It creates the MySQL and platform services, generates configuration and session secrets, and installs the built-in sandboxes, starter LOOPs and welcome project. Host Go and Node.js installations are not required. Configure model API keys and GitHub authorization after startup. Use./start.sh logs,stop,restartorpullto manage it, and./start.sh devto build the checkout from source.If downloads from
ghcr.iostall,./start.shand./start.sh pulltimeghcr.ioagainst the Nanjing University mirror ghcr.nju.edu.cn. Nanjing is used only when its manifest digest matches the digest just read from ghcr.io; the script pulls that digest and tags it back to the name pinned incompose.yaml, which trusts that host because the result is tagged with the official name. A missing official digest, a mismatch, or a failed mirror pull stays onghcr.io.MIRROR=ghcr.ioforces the upstream registry andMIRROR=ghcr.nju.edu.cnforces Nanjing; the choice is not written to.env. The GitHub Release records the digest;docker image inspect --format '{{index .RepoDigests 0}}' ghcr.io/tencent/loopforge:<pin>should show the same digest after@.compose.yamlstays unchanged. A Dockerregistry-mirrorsentry such ashttps://docker.nju.edu.cnonly accelerates Docker Hub and is not a value forMIRROR.Open the address printed by the installer and create your account; the first one becomes the administrator. The service listens on
0.0.0.0:8090by default. On a cloud host, the installer reads the public IP from the provider’s metadata service and prints it; allow the port in your security group, or put an HTTPS reverse proxy in front. Restrict access to your own IP until the administrator account exists. The home page’s quick-access guide walks you through adding a model key, connecting a repository and choosing a LOOP.For GitLab, Gitea, Gogs and other Git hosts, set up Git SSH to check out and push branches with a personal key. PR/MR and Issue automation requires a hosting API token or a separately configured MCP.
Try it without an API key
New accounts join the LoopForge demo project, which includes a LOOP made only of a script and a human gate:
What you need for real work
More setup details: executors, GitHub, sandboxes, access model
Executors. Choose a CLI and model for chat, requirement clarification, Bot replies, notification reports, run evaluation, or static preview. Each LOOP role can select its own CLI, and built-in delivery templates inherit the responsible user’s executor. Scheduled prompts use the CLI selected on the schedule. The platform can run without a CodeBuddy installation or key once its workflows use other CLIs. Deployment and upgrade
The seven agent CLIs after Claude Code keep their model and MCP configuration in a private home directory per run. Antigravity can reuse the execution machine owner’s account login in conversation workspaces and native or Docker LOOP sandboxes. Its official CLI refreshes the credential copy, and the Runner saves the refreshed login back to its original local store. Gemini API keys use separate API billing. The other agent CLIs use the responsible user’s own key and Base URL from personal settings, including on a connected execution machine. First-use installs need npm or provider access; native deployments need the CLI for the executor you choose.
WeCom notifications. The image built from this Dockerfile includes
wecom-cli; published images gain it with the next release. Native installations need to install it separately; see Deployment.GitHub is optional. All built-in generic LOOPs run without a repository: product LOOPs 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 LOOP or ask Main Bot to change the code and submit a PR/MR.
Sandboxes. In the default Compose installation, LOOP 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. 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=falsein.envturns that off). Read the account and access model before exposing it beyond your team.Remote access, HTTPS, separate workers. See Deployment.
Hacking on LoopForge itself?
bash scripts/dev.shruns it natively (Go 1.26.11+).How LOOPs work
A LOOP is the workflow a delivery follows. Agents, scripts and people take part in the same run:
The LOOP designer with a project copy of the built-in bug-fix LOOP. Each step picks a role; failed checks can send the work back to an earlier step.
Each node declares its artifacts and dependencies, and the engine starts each step once its dependencies complete. Start from a built-in LOOP, 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 checks the files and results. See the validation record for scope and known gaps.
Features
@references for roles, skills, requirements, LOOPs 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.Built-in LOOPs are read-only blueprints; copy one into your project to run and edit it.
LoopForge Local
To use platform projects and LOOPs from a coding assistant, connect CodeBuddy to your LoopForge instance over MCP. Local continues to run its built-in workflows inside the coding assistant without a LoopForge server.
artifacts/{task_slug}/+ optional local dashboardFAQ
Do I need an API key to try it? No. The demo LOOP uses only a script and a human gate. Chat and agent steps need a key for the executor you pick. Model usage is not included; you bring your own credentials.
Do I need GitHub? No. Chat, documents and new projects run in the task workspace. Connect GitHub when you want to change an existing repository or open PRs.
Should I use chat or a LOOP? Use chat to explore and iterate; Main Bot can still open a PR. Once you find a way of working you want every requirement to follow, with fixed reviewers, tests and sign-off, put it in a LOOP. Main Bot can start, pause and take over LOOP runs, so the two paths work together.
How is this different from Dify, n8n or Flowise? Those are general-purpose AI and automation workflow builders. LoopForge is built for software delivery with coding agents: implementer and reviewer roles, Docker sandboxes with real repositories, GitHub delivery, human acceptance gates and run evidence.
How is this different from using Claude Code, Codex, CodeBuddy or another coding CLI directly? LoopForge doesn’t replace them; it orchestrates them. Each agent step and each chat turn runs one of those CLIs. LoopForge adds what surrounds it: who does what, in which sandbox, in which order, with which checks, and who signs off.
Is it safe to expose on the internet? New installations listen on all interfaces and target a trusted team. Read the account and access model and set up HTTPS before opening it up. Report vulnerabilities privately via the security policy.
Documentation
Community
Scan the QR code to join the LoopForge community group.
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. Security issues go through the security policy.
If LoopForge is useful to you, a star helps others find it.
License
MIT. Third-party components keep their own licenses and notices; see THIRD_PARTY_NOTICES.md.