LoopForge: Self-Hosted Workflows for Coding Agents
What LoopForge is
LoopForge is a self-hosted web platform from Tencent for delivering software with coding agents. It does not ship its own agent. Instead it drives existing coding-agent CLIs (CodeBuddy, Codex, Claude Code, OpenCode, Cursor CLI, Antigravity, Kimi Code, Pi, DeepSeek Harness and ZCode, per the README) and wraps them in the things a team needs around an agent run: roles, Docker sandboxes, checkpoints, approval gates, run history and cost reports. The repository description puts it in one line: "Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates."
The README's argument is that a single agent run is not a process. Ask an agent to fix a bug and the result "depends on that run": it might skip the plan, forget the tests or review its own code. LoopForge answers with two ways of working. You can chat with Main Bot, which opens a Docker sandbox with your repositories checked out, hands work to project roles as subagents and opens a pull request. Or you can run a LOOP: a saved delivery workflow made of agent steps, deterministic script steps and human gates, so every requirement goes through the same stages and sign-offs. Both paths link changes back to tracked requirements, which feed the delivery and cost reports.
Who it is for: teams that already use one or more coding-agent CLIs and want a shared, self-hosted place to run them with fixed review and test stages, an approval inbox and an audit trail. It is not aimed at a single developer who wants a better terminal agent; for that, see the Claude Code vs Codex CLI vs Gemini CLI comparison. The project is written mainly in Go, was created on 28 July 2026, and is published as Tencent/LoopForge under MIT, with a homepage at loopforge.cn.
How LoopForge works
The platform is a Go service backed by MySQL, with an embedded web interface. docs/architecture.md explains an unusual detail up front: the code keeps the upstream Go module name agentflow, its package boundaries and its AGENTFLOW_ environment variables "to reduce ongoing merge conflicts". The public repository is a public edition of an internal Tencent platform, and docs/open-source-scope.md lists what was adapted for it: local password accounts, GitHub adapters, a public LOOP catalog and no embedded employee allow-list.
The main pieces, from the architecture document and the cmd/ directory:
cmd/agentflowruns as an API process, a worker or both (-role api|worker|all). Its flags include-mysql-dsn(the help text says "MySQL is the only data source"),-workspaces,-worker-concurrency(default 8 concurrent node sandboxes), optional TLS and HTTP Basic Auth, and admin actions for the managed CLI updater and Bot credential re-encryption.cmd/agentflow-runneris the execution-machine agent. A user can connect a personal machine with a short-lived binding code so LOOP steps and conversation workspaces run on their own hardware and toolchains.cmd/agentflow-mcpandcmd/agentflow-gate-mcpexpose the platform over MCP and return structured gate results to agents.cmd/loopforge-accountis the operator command for creating or resetting password accounts without a browser.internal/engineowns the LOOP graph, leases, scheduling, sandbox lifecycle and delivery. The architecture doc notes that ready branches execute together in the run workspace.
Execution happens in sandboxes. In the default Compose install the platform container mounts the host Docker socket and starts sibling containers from the same platform image for each LOOP run or conversation workspace, with the run workspace mounted at /workspace. The deployment guide is blunt that "Access to the Docker socket is equivalent to root on the host". The alternative is a native sandbox on a connected execution machine, which uses that machine's own toolchains; on Linux the native conversation sandbox uses bubblewrap, which the Compose image does not ship. If you need background on the container side, the Docker glossary entry and the Docker Compose write-up cover the basics the installer relies on.
Agents reach the platform back through a tool gateway and MCP. The API reference (in Chinese) documents a stateless Streamable HTTP endpoint at /mcp, user-owned Bearer tokens with an afp_ prefix, and an OpenAPI file, docs/api/openapi.yaml, titled "LoopForge Platform REST API". The Model Context Protocol entry explains the protocol, and MCP stdio vs Streamable HTTP covers the two transports LoopForge exposes (agentflow-mcp over stdio, /mcp over HTTP).
LOOPs, roles and human gates
A LOOP is a graph of nodes edited on a visual canvas, versioned and published per project. Each node declares its artifacts and dependencies, and the engine starts a node once its dependencies complete. The README lists five node types:
| Node | What it does (per the README) |
|---|---|
| Agent | Runs a role: a prompt, executor, model, rules, Skills and MCP tools that design, implement, review or test |
| Script | A deterministic shell step such as build, test, lint or report generation, "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 chosen step |
| Sub-LOOP | Runs another LOOP as a sub-workflow |
| Preview build | Builds a static site and archives it for review |
Roles are reusable definitions shared between LOOP nodes and chat subagents, so the same reviewer role can act in a fixed pipeline or be called ad hoc from Main Bot. Failed checks can follow a rework edge back to an earlier step. The repository also documents conditional routing and branch joins in docs/sop-conditional-routing.md. The product ships four built-in templates (backend delivery, frontend delivery, product proposal and bug fix) as read-only blueprints that you copy into a project before editing.
The README describes the reference delivery its maintainers 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, and a final step checked that the accepted code had not changed. That case lives in e2e/api/45-delivery-model.test.mjs. A run waiting at a gate offers approve and continue, add context and rerun the step, or send the work back upstream, and every waiting gate lands in one Needs review inbox. This is the "human on the loop" model the README describes: agents run unattended while people supervise and decide at gates. For the wider design question of when to script a process and when to let an agent decide, AI Agents vs AI Workflows is a useful frame.
Key features
- Chat workbench. Main Bot with a per-conversation executor, model and permission mode,
@references to roles, skills, requirements, LOOPs and repositories, message queueing and a Steer action that interrupts a running reply. - Conversation workspaces. On-demand Docker sandboxes with the project's repositories checked out. Main Bot can pause, resume or take over a running LOOP from the chat.
- LOOP designer. A canvas with the five node types, rework-on-failure edges, validation, version history and publishing.
- Requirement to delivery tracking. Requirements are tracked whether a LOOP or a chat ships them, with PR/MR status tracking, merge detection and direct merges into a shared branch (
mode=direct). - Runs and approvals. Live node status, tool traces, worker logs, per-node artifact snapshots and workspace previews, with retry and rerun from any node.
- AI scheduled tasks. Recurring agent tasks with workspace, LOOP and MCP access, plus a shared market of versioned task templates and automatic LOOP dispatch for new requirements.
- Insights and cost. Engineering metrics and token and cost accounting for LOOPs and conversations, priced at public list prices according to the README.
- Execution machines. Platform workers, Docker sandboxes or a connected personal machine, with per-sandbox CPU, memory, storage and PID limits documented in
docs/deployment.md. - Git hosting. GitHub through a built-in OAuth device flow or a PAT; GitLab, Gitea, Gogs and other hosts through Git SSH keys and an administrator-reviewed host-key registry. PR and Issue automation beyond GitHub needs a hosting API token or a separately configured MCP.
- Enterprise chat bots. WeCom, Feishu and DingTalk bots that can answer project queries, clarify requirements and report LOOP results into a chat, with configurable data retention (90 days for message bodies and 180 days for records by default).
- Managed CLI updates. An opt-in daily updater for the agent CLIs that verifies npm package integrity with Subresource Integrity, holds new versions for a 24-hour observation window and keeps old versions for rollback.
The interface is bilingual with a caveat the README states itself: management pages are in English and Chinese, but "the chat workbench is Chinese for now". The GitHub integration can also be extended with the official GitHub MCP Server, which the deployment guide says must be installed explicitly.
Executors and credentials
Each agent step and chat turn runs one CLI, and each user brings their own credentials. The README's executor table condenses to this:
| Executor | Credentials | How it gets installed |
|---|---|---|
| CodeBuddy | Personal key, or a shared key an administrator configures | Bundled by default; optional on source builds |
| Codex | Personal key; a connected machine can use its local login | In the Docker image |
| Claude Code | Personal key; a connected 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 | Personal key only | Provider installer on first chat use; not installed into LOOP sandboxes |
| Antigravity | Personal key, or the execution machine owner's login | Install the official CLI yourself |
| ZCode | Personal key only | Not bundled |
THIRD_PARTY_NOTICES.md adds the licensing side: the image bundles pinned Codex, CodeBuddy and DeepSeek Harness packages, but "Claude Code is proprietary and is not included in published images"; it is downloaded into the installation's data directory when a conversation asks for it. Those packages keep their providers' terms and "are not relicensed under LoopForge's MIT license". In the Dockerfile the pins are @openai/[email protected], @deepseek-ai/[email protected] and @tencent-ai/[email protected]. If you are choosing between the underlying agents, Codex CLI and OpenCode have their own write-ups.
CodeBuddy is the default in several places. Legacy bare model IDs are interpreted as CodeBuddy models, the scheduled baseline conflict resolver defaults to CodeBuddy unless AGENTFLOW_BASELINE_ALIGN_EXECUTOR is set, and the deployment guide documents three CodeBuddy editions (international, China and iOA) whose keys are not interchangeable. Other executors are first-class choices, and the README says the platform can run without a CodeBuddy key once workflows use other CLIs, but expect CodeBuddy to be the best-trodden path.
Getting started
The supported install is Docker Compose using a prebuilt image from GitHub Container Registry. Install Git, then, from the README:
git clone https://github.com/Tencent/LoopForge.git
cd LoopForge
./start.sh
./start.sh checks for Docker, Compose, Python 3 and curl and offers to install what is missing (apt, dnf or yum on Linux, Homebrew on macOS; LOOPFORGE_YES=1 accepts the prompts). It then generates .env with fresh secrets, pulls the image pinned in compose.yaml (currently ghcr.io/tencent/loopforge:0.4.3), starts MySQL 8.4 and the platform, and seeds the starter LOOPs and a welcome project. Host Go and Node.js are not needed for this path. Where ghcr.io is slow, the script times it against the Nanjing University mirror and only uses the mirror when its manifest digest matches the one just read from ghcr.io. You can force either host:
./start.sh
MIRROR=ghcr.io ./start.sh
MIRROR=ghcr.nju.edu.cn ./start.sh pull
Open the printed address and create the first account; it becomes the platform administrator. The service listens on 0.0.0.0:8090 by default, so the README says to restrict access to your own IP until that account exists. New accounts join a demo project whose Platform check · script & approval LOOP needs no API key: a script writes a report, the run stops at a human gate, and approving it lets the run finish. Chat and agent steps need a key for the executor you pick, and changing an existing repository needs GitHub connected in personal settings.
Upgrades follow the release tag, because the image pin must match the checkout's migrations and seeds. From docs/deployment.md:
git fetch --tags && git checkout vX.Y.Z
./start.sh pull
Day-to-day management is ./start.sh logs, stop, restart and pull, and ./start.sh dev builds the checkout from source with compose.dev.yaml. To work on LoopForge natively, the README points to bash scripts/dev.sh and Go 1.26.11 or newer. Without a browser, an operator can create accounts with the account command from the deployment guide:
set -a; source .env; set +a
read -r -s -p 'Password: ' account_password; echo
printf '%s\n' "$account_password" | go run ./cmd/loopforge-account -user alice
unset account_password
For anything beyond a LAN, the deployment guide wants an HTTPS reverse proxy that forwards WebSocket and streaming requests, plus AGENTFLOW_SECURE_COOKIES=true. Caddy vs Traefik compares two common choices for that layer.
Hands-on: what could and could not be run on 1 December 2026
The test machine was an x86-64 Linux VM with Go 1.24.7, Node.js v22.23.5, Python 3.13.18, the Docker CLI 29.9.3 and Compose v5.7.1, but no Docker daemon (docker info reported no socket at /var/run/docker.sock). Outbound network access was limited by an egress policy: raw.githubusercontent.com and the npm registry were reachable, while ghcr.io, the GitHub web and API hosts, proxy.golang.org, go.dev and dl.google.com were refused. Everything ran on a copy of the repository at commit ed86688 (pushed 1 December 2026), in scratch directories, as root, with no accounts created and no credentials entered.
Why the platform itself was not started
| Route | Result |
|---|---|
| Release binary | None exists. The v0.4.3 release has no assets; it publishes the image digest sha256:88c61fec317a385d5d2be1c564b596a776bdb077171d76923adbbba884584958 instead, which could not be checked because ghcr.io was blocked |
| Source build | go.mod declares go 1.26.11. The local Go 1.24.7 tried to fetch that toolchain automatically and the download was refused, and the module proxy was unreachable too, so go build, go test and the loopforge-account command were out of reach |
./start.sh | Printed ▸ Checking prerequisites, tried to start the Docker service, waited about 60 seconds, then exited with ✗ Docker is installed but not running, or this user cannot access it. No .env was written, because secret generation runs only after the Docker check passes |
So the web UI, /api/health, sign-up, sandboxes and agent runs were not exercised. What follows is what the installer and the deprecated Local edition do without a daemon.
Generated configuration and resolved Compose defaults
Running bash scripts/configure.sh on its own printed Created .env with unique local secrets and wrote a file with mode 600. A second run printed Keeping existing .env. Rendering the stack with docker compose --profile platform config needs no daemon, so the resolved values could be checked:
| Setting | Observed |
|---|---|
| Database passwords | 48 hex characters each for LOOPFORGE_DB_PASSWORD and LOOPFORGE_DB_ROOT_PASSWORD |
AGENTFLOW_SESSION_SECRET | 64 hex characters |
AGENTFLOW_CREDENTIAL_KEYS | A key ID of the form k202612: followed by a base64 32-byte key (the AES-256 key that seals Bot secrets) |
AGENTFLOW_PROJECT_CREDENTIAL_KEY | 44-character base64 value (32 random bytes) |
| Platform port | host_ip: 0.0.0.0, published 8090, container port 8080 |
| MySQL port | host_ip: 127.0.0.1, published 33315 |
| Image | ghcr.io/tencent/loopforge:0.4.3, also used as AGENTFLOW_ISOLATED_IMAGE for sandboxes |
| Security-relevant flags | AGENTFLOW_AUTH_REQUIRED: "true", AGENTFLOW_ALLOW_SIGNUP: "true", AGENTFLOW_SECURE_COOKIES: "false", AGENTFLOW_EVOLUTION_AUTO_ENABLED: "false" |
| Mounts | /var/run/docker.sock into the platform container, plus the data directory at the same absolute path on both sides |
| Health check | Python urllib request to http://127.0.0.1:8080/api/health inside the container |
Two defaults stand out. The web port is published on all interfaces while MySQL stays on loopback, and anyone who can reach the login page can register while AGENTFLOW_ALLOW_SIGNUP is true. Both are documented, and the deployment guide tells you to set LOOPFORGE_BIND=127.0.0.1 for local-only use and to turn sign-up off on any installation reachable from untrusted networks. They are still the defaults you get from a plain ./start.sh.
The installer's own test suite
The deployment guide mentions python3 scripts/test-install.py -v as the installer regression suite. It ran without a Docker daemon: 71 tests in 36.6 seconds, OK (skipped=2). Both skips said Bash 3.2 is not available, which is the macOS system shell. The test names show what the installer is meant to guarantee, for example test_start_pull_keeps_platform_stopped_on_backup_or_migration_failure, test_start_pull_with_nju_mirror_does_not_contact_ghcr_for_platform and test_start_refuses_local_build.
LoopForge Local from npm
The deprecated Local edition is a separate npm package, loopforge-cli, that installs workflow files into a project for a coding assistant to follow. npm view loopforge-cli versions returned 0.1.0-alpha.1, 0.1.0, 0.2.0, 0.2.1 and 0.2.2, with the package last modified on 16 September 2026. Version 0.2.2 was run with npx in an empty Git repository, with HOME pointed at a scratch folder:
| Command (0.2.2) | Observed |
|---|---|
--help | Subcommands install, update, skills, editions, plan, status, uninstall, doctor; descriptions are in Chinese |
doctor | OK: assets and installations are healthy |
plan claude | edition=classic host=claude source=.claude/ entry=/start-devflow files=85, followed by the file list, without writing anything |
install claude | written=85 unchanged=0: about 964 KB under .claude/ plus .devflow/install-state.json, which records a SHA-256 for every installed file. Final hint: Next: reopen Claude Code and run /start-devflow <你的需求> |
status claude | classic/claude: files=85 changed=0 missing=0 |
skills install dsh | Rejected: invalid choice: 'dsh' (choose from 'codebuddy', 'codex', 'cursor', 'claude') |
uninstall claude | removed=85 preserved=0; git status was clean afterwards |
The installed Claude Code bundle contains seven subagents (devflow-leader, devflow-architect, devflow-developer, devflow-solo-developer, devflow-code-reviewer, devflow-test-engineer, devflow-knowledge-engineer), slash commands such as /start-devflow, /resume-devflow and /abort-devflow, and skills including brainstorming and writing-plans, the folders THIRD_PARTY_NOTICES.md marks as derived from obra/superpowers. Its devflow.defaults.yaml sets three manual gates (TASK-02_completed, CODE-REVIEW_passed, TASK-04_completed), max_parallel_sub_developers: 6 and auto_mode: true for both the solo and multi-role routes. No agent was launched to follow those files.
Two Local test scripts from CONTRIBUTING.md also ran from the checkout's local/ folder. bash scripts/validate.sh finished its six stages in about 11 seconds with Validation passed. and reported adapters=7 logical_roles=10 host_agents=6 artifacts=11. bash scripts/e2e.sh, which uses a fake host and recorded outputs, ran 37 tests in 190 seconds, OK, including test_manual_gate_holds_the_next_stage_until_approved and test_small_task_uses_single_solo_agent.
Things read from the source instead of observed
- The API health handler returns
{"status": "ok", "role": "api", "pid": …}; a worker-only process answers the same path withactiveRuns(internal/httpapi/server.go,cmd/agentflow/main.go). - Browser sessions use the cookie
agentflow_userwithauthSessionTTL = 7 * 24 * time.Hour, which matches the seven days in the deployment guide (internal/httpapi/auth.go). - The GitHub device flow uses a public Client ID compiled into
internal/httpapi/github_auth.goand requests thereposcope.AGENTFLOW_GITHUB_CLIENT_IDreplaces it with your own OAuth App. - The built-in fallback sandbox Dockerfile in
internal/repo/generic_docker.godownloads Go 1.22.12, tryingmirrors.cloud.tencent.comfirst, and setsGOPROXY=https://goproxy.cn,directandGOSUMDB=sum.golang.google.cn. The deployment guide says the seededgeneric-dockerprofile reuses the platform image instead, so this applies when the catalog SQL is not installed. - A search of the Go sources for analytics SDKs and phone-home hosts found none. "Telemetry" in the code refers to run telemetry stored in MySQL, and the Kimi Code executor is started with
KIMI_DISABLE_TELEMETRY=1. Network calls that do happen by design include the provider APIs, GitHub, npm installs of on-demand CLIs and, if enabled, the daily CLI updater. - Size: 1,812 Go files in the checkout, 1,077 of them tests, and roughly 207,700 lines of non-test Go.
migrations/holds 62 SQL files plus two seed files.
Security and access model
LoopForge is designed for a trusted team on one installation, and the docs say so repeatedly. From the accounts section of the deployment guide: "Every signed-in account can list all projects, requirements and runs", and "Do not use one installation to separate untrusted tenants." Project settings and repositories can be changed only by the project owner or a platform administrator, and personal credentials only by their owner. Password hashes use bcrypt, and browser sessions use signed HttpOnly, SameSite cookies.
The bigger boundary is execution. Anyone who can run a LOOP can execute code in containers on the Docker host, and the docs add a less obvious point: agent CLIs honour a bound repository's own configuration during unattended runs, including AGENTS.md/CLAUDE.md, .claude/settings.json hooks and .mcp.json, which "can start commands or MCP servers inside the sandbox". The advice is to bind only repositories whose contents you trust. Privileged Docker sandboxes are off by default and must be enabled per machine. To run without the socket, you remove the docker.sock volume and connect a separate Docker-capable worker or execution machine.
Other details worth knowing before exposing it:
- The first browser account becomes administrator. The README and deployment guide both say to restrict the security group or firewall to the operator's IP until that account exists.
- Header-based sign-in for enterprise gateways (
AGENTFLOW_TRUST_IDENTITY_HEADERS) is off by default. The guide explains that withoutAGENTFLOW_IDENTITY_HEADER_SECRETa same-host proxy that passes client headers through could let any process sign in as any user, and the platform logs a warning when the secret is missing. - Bot secrets are sealed with AES-256-GCM under
AGENTFLOW_CREDENTIAL_KEYS, and project credentials use a separateAGENTFLOW_PROJECT_CREDENTIAL_KEY. The docs say saved secrets cannot be decrypted without these keys, so back up.envwith the database. - The GitHub OAuth grant uses the
reposcope, which covers every repository the account can reach. Binding one repository in LoopForge does not narrow the grant. SECURITY.mdasks for vulnerability reports through GitHub's private advisory feature and says only the latest stable version and the default branch are maintained.
If the team needs stronger isolation per agent task than a shared Docker host, dedicated sandbox runtimes such as OpenSandbox or OpenShell target that problem directly; LoopForge's own docs place it in the trusted-team category.
LoopForge Local is deprecated
The repository contains a second product under local/: LoopForge Local, published as loopforge-cli, which installs the same idea (separate roles, gates and saved artifacts) as plain files inside a coding assistant, with no server. The README marks it "Deprecated — planned sunset (Local only)" with no new features or releases planned, and says the platform is unaffected. Existing users can pin a published version; new setups are pointed at the platform, connected to CodeBuddy over MCP through a personal access token. The Local quick start in docs/local/usage.md uses a version placeholder:
npx -y [email protected] install claude
npx -y [email protected] status claude
npx -y [email protected] doctor
Local saves its evidence under artifacts/{task_slug}/. Treat it as maintenance-only: the hands-on run above shows the newest npm release already lags the docs.
Use cases
- Standardising agent-driven delivery across a team. Copy the bug-fix or backend template, assign planner, implementer, reviewer and tester roles to different executors or models, and require a human gate before the merge-request step.
- Keeping an audit trail of AI changes. Each requirement links to its runs, per-node artifacts, tool traces and PR state, which helps when someone later asks why a change was made and who approved it.
- Mixing deterministic checks with agents. Put build, lint and test scripts between agent steps so a failing test sends work back to the implementer automatically, the same way a CI/CD pipeline gates a merge.
- Document and greenfield work without a repository. The product-proposal LOOP delivers documents, and the new-project templates deliver source files in the task workspace; GitHub is optional for both.
- Running on developers' own machines. Connect a personal execution machine so steps use local toolchains, repositories and existing CLI logins, and share it with a project when teammates need it.
How LoopForge compares
The README answers one comparison itself: Dify, n8n and Flowise are "general-purpose AI and automation workflow builders", while LoopForge targets software delivery with implementer and reviewer roles, sandboxes with real repositories, GitHub delivery and acceptance gates. For those general builders, see the Dify write-up and n8n vs Zapier vs Make. Closer neighbours are other self-hosted tools that coordinate existing coding agents. The table sticks to what each project's README states, or to the linked write-up for T3 Code.
| LoopForge | T3 Code | Paperclip | Gas Town | |
|---|---|---|---|---|
| Main idea | Team platform for repeatable delivery LOOPs with human gates | Control plane and clients for agents you already run | "Open-source orchestration for teams of AI agents" run like a company: org chart, goals, budgets | Workspace manager coordinating many coding agents with persistent, git-backed work state |
| Agents named | CodeBuddy, Codex, Claude Code, OpenCode, Cursor CLI, Antigravity, Kimi Code, Pi, DeepSeek Harness, ZCode | Claude Code, Codex, Cursor, OpenCode and others, plus ACP agents | OpenClaw, Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Pi, Hermes, Grok Build, Kimi Code | Claude Code, GitHub Copilot, Codex, Gemini and others |
| Workflow model | Visual graph of Agent, Script, Human-gate, Sub-LOOP and Preview nodes | Threads per task, with worktrees and permission modes | Tasks, approvals and review gates tied to goals; agents wake on heartbeats | Mayor coordinator, worker "polecats", convoys and TOML workflow templates; a merge queue runs verification gates |
| Where work runs | Docker sibling containers via the host socket, or connected execution machines | The host the T3 server runs on | A local Node.js process; the README roadmap marks cloud and sandbox agents (e2b, Daytona, Modal and others) as done | Git worktrees on the host, or inside a Docker container |
| Stack | Go service plus MySQL 8.4 via Compose | TypeScript server with desktop, web and mobile clients | Node.js server and React UI with embedded PostgreSQL | Go CLI (gt) with the Beads issue ledger |
| Licence | MIT (third-party parts keep theirs) | MIT | MIT | MIT |
In short: LoopForge is the most process-shaped of the four, with explicit stages, script steps and approval gates as first-class nodes, and it is built for a team on a shared server. T3 Code is lighter and closer to a personal cockpit. Paperclip frames the work as business goals and budgets rather than pull requests, and Gas Town is a terminal-first system aimed at running many agents at once on one machine. For a smaller TypeScript take on the same coordination problem, see Open Multi-Agent.
Where the sources disagree
- Licence detection. The GitHub API reports the licence as
NOASSERTION("Other"), while the README badge says MIT.LICENSEopens with Tencent's preamble, "LoopForge is licensed under MIT, except for the third-party components listed below", then the MIT text and a notice for a modified copy of obra/superpowers (also MIT). The preamble is probably why GitHub's detector gives up. The terms are MIT, but expect licence scanners to flag the repository for manual review. - Repository description vs README. The GitHub description still ends with "Includes Local workflows for coding assistants", while the README and
docs/local/usage.mdmark Local as deprecated with no new releases planned. - Local docs vs the published package. The Local guide lists
skills install dshandskills install hermes, andlocal/package.jsonin the repository is at version 0.2.3. The newest npm release is 0.2.2, and itsskills installaccepts onlycodebuddy,codex,cursorandclaude. The guide does warn that "Host support depends on the version you install". - Names in three layers. The product is LoopForge, the Go module, binaries, environment variables and session cookie are
agentflow, and workflows were called SOPs until 0.4.3 renamed them LOOPs. The README anchor is stillhow-sops-work, the routing doc issop-conditional-routing.md, and the changelog says existing API routes, workflow IDs and stored execution types "stay compatible". None of this is hidden, but it makes logs and API calls harder to map to the UI. - Language coverage. The README and deployment guide are in English, but the API reference, the frontend conventions (
design.md), the enterprise IM manual and many code comments are in Chinese, and the Local CLI's help text is Chinese. - Release assets. GitHub releases ship no binaries; the installable artifact is the GHCR image. A prerelease named
review-assetsholds 476 PNG screenshots attached to PR reviews, which shows up among the releases on the GitHub page. - Migration numbering. Ten numeric prefixes in
migrations/are reused, for example three files start with036_and four with042_. The deployment guide's table of which migrations an upgrade needs is the reference; sorting by number is not enough. - Test counts move.
docs/validation.md(dated 16 October 2026, before v0.4.0) records 29 passing Local E2E tests; the suite at commited86688ran 37.
Limits and trade-offs: when not to use LoopForge
- Untrusted users or multi-tenant hosting. All signed-in users can read every project, and the default Compose setup hands the platform the Docker socket. The docs rule out separating untrusted tenants on one installation.
- Exposed by default. The default bind is
0.0.0.0, sign-up is open, and secure cookies are off until you put HTTPS in front. Each is one setting to change, but a careless install on a public VM leaves an open registration page that can run code on the host. - Executor coverage is uneven in testing. The validation record says real-model runs used CodeBuddy, and that Codex and Claude executors have "command/protocol and credential-boundary tests; their paid services were not exercised with separate provider credentials." If the team standardises on Claude Code or Codex, budget time for your own acceptance runs.
- Heavy footprint for one developer. The stack is MySQL plus a platform image with bundled CLIs and per-run containers. For a single developer, running an agent directly, or a lighter tool such as T3 Code, will be simpler. The README's own Local guide says that for a tiny, fully specified edit "using a coding agent directly is often enough".
- China-first defaults in places. CodeBuddy is bundled and is the fallback for legacy model IDs, the installer races
ghcr.ioagainst a Nanjing mirror, the fallback sandbox uses Chinese Go mirrors, and the chat bots target WeCom, Feishu and DingTalk. None of it blocks use elsewhere, but some defaults will need overriding. - Fast churn and manual migrations. The latest API snapshot lists nine tagged releases between v0.3.5 (11 November) and v0.4.3 (26 November), two of them release candidates, with breaking changes in 0.4.3 (the
localsandbox type and several sandbox APIs were removed) and some upgrade migrations that must be applied by hand. Read the changelog before every upgrade, and check out the matching release tag. - Broad GitHub permissions. The built-in OAuth App asks for the
reposcope across every repository the account can access. Teams with strict least-privilege rules may prefer their own OAuth App, fine-grained tokens or Git SSH keys per host. - Proprietary pieces stay proprietary. MIT covers LoopForge's code. Claude Code, CodeBuddy and other CLIs keep their own terms, and model usage is billed by your providers; the README notes model usage is not included.
Project activity
Checked 1 December 2026: latest release v0.4.3 (published 26 November 2026, image ghcr.io/tencent/loopforge:0.4.3), preceded by v0.4.2 and v0.4.1 on 23 November; licence MIT per the LICENSE file (GitHub's API reports NOASSERTION); last push 1 December 2026; 5,991 stars and 881 forks on GitHub. The newest LoopForge Local package on npm is loopforge-cli 0.2.2.
The repository was created on 28 July 2026, is written mainly in Go, and had 553 open issues and pull requests in the API snapshot. Its topics include agent-orchestration, human-on-the-loop, self-hosted and workflow-engine. CONTRIBUTING.md welcomes issues and PRs, asks contributors to run the Go tests, go vet, a public-content check and a secret scan, and labels issues ready for outside work as accepted plus help wanted. Platform documentation lives in docs/, starting with docs/deployment.md. Related background: the AI agent and OAuth 2.0 glossary entries, and Prompt Engineering vs Loop Engineering for the broader idea of designing loops around agents rather than single prompts.
Enjoying this project?
Discover more amazing open-source projects on TechLogHub. We curate the best developer tools and projects.
Repository:https://github.com/Tencent/LoopForge
GitHub - Tencent/LoopForge: LoopForge: Self-Hosted Workflows for Coding Agents
LoopForge is Tencent's MIT-licensed, self-hosted Go platform that runs Codex, Claude Code, CodeBuddy and other coding-agent CLIs in Docker sandboxes through rep...
github - tencent/loopforge
Related Projects
OpenCode: Open-Source AI Coding Agent for the Terminal
Open-source AI coding agent for the terminal that works with 75+ LLM providers and local models.
Codex CLI: OpenAI's open-source terminal coding agent
OpenAI's local terminal coding agent with OS-level sandboxing, AGENTS.md, MCP and a CI mode.
Gemini CLI: Google's Open-Source AI Agent for the Terminal
Google's Apache-2.0 terminal AI agent with MCP, extensions, sandboxing and headless mode.
Maintain LoopForge: Self-Hosted Workflows for Coding Agents? Add the badge to your README
Show that the project is featured on TechLogHub and send readers to this write-up.
[](https://techloghub.com/open-source/loopforge?utm_source=techloghub_badge&utm_medium=referral&utm_campaign=readme)
