# Repository Briefing: loopx-project/loopx
> Source: https://repoforai.com/repo/loopx-project/loopx (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/loopx-project/loopx
- **Official Docs / Website**: https://loopx-project.github.io/loopx/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2.4.1 (2026-11-24) — https://github.com/loopx-project/loopx/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Self-Hosted, CLI
- **Momentum**: 6,795 ★ total (+5 24h / +35 7d) · 649 forks
- **Topics**: `agent-control-plane`, `agent-harness`, `agentic-software`, `ai-agents`, `always-on-agents`, `auto-research`, `autonomous-agents`, `claude-code`, `codex`, `context-engineering`, `local-first`, `long-horizon-agents`
- **When to Use**: Best for: Engineering, research, and operations teams that need multi-session or cross-runtime work to retain ownership, approvals, and evidence. Skip if: Your tasks finish in one host session, or you need a turnkey, fully offline stack with inference included.

## Overview
```text
### Architecture & Core Mechanics
LoopX separates durable workflow state from agent execution. Its shared TypeScript control plane retains goals, accepted requirements, Todos, decisions, ownership, and evidence, so a new session can resume from recorded state rather than reconstructing the plan from chat. Local workflows use SQLite. Codex CLI, Claude Code, DeepSeek Harness, and custom runners supply the model and tools; the Python package is the installation surface, while the control plane also needs system Node.js.

A single-flight Goal/Todo queue with hard leases limits duplicate execution. Timers and event inboxes wake agents for bounded runs, while protected actions remain subject to human authorization. Extensions are exposed as registered capabilities: for example, `loopx capability show change-quality-qualification --format json` is an entrypoint for inspecting the final-diff qualification capability and its write boundary.

### Key Capabilities & Differentiators
LoopX coordinates work through explicit ownership, dependent artifacts, independent review, and returned results. The Personal Agent Workspace exposes schedules, pending decisions, files, and evidence across sessions. A connected Lark inbox supports explicit Goal/Agent/session routing. Protected changes can go through a typed preview, explicit confirmation, and a receipt.

Decision Context tracks sources, while progressive views and deltas reduce how much state returning agents need to read. Measurements across 213 model-facing wakes put the single-layer progressive view at 32.5% of baseline bytes. Across 112 in-cycle continuations, the stacked first-read entry was 3.0% by body bytes and 5.0% by CLI bytes. These figures describe delivered context bytes, not end-to-end token savings. The research workbench separately exposes citations, native outcome readback, and measured costs; opening a result does not trigger a model call.

### Trade-offs & Limitations
Compared with native Codex Goal, LoopX adds a host-neutral record of requirements, approvals, ownership, and evidence. Compared with a plain cron wrapper, guarded wakeups and leases give the workflow better control over when runs start and who owns them. The cost is an additional runtime and state layer to operate, plus host-specific permissions and connector configuration. For a short task on a single host, that extra machinery may not pay off.

On 46 matched LHTB tasks, LoopX 1.0.3 Heartbeat scored 0.4948 mean reward versus 0.4218 for plain Codex and 0.4475 for native Codex Goal. At the strict ≥0.95 threshold, both LoopX and plain Codex solved 7/46. There was one effective trial per task and mode, with unequal runtime budgets and designated replacement trials. The result supports testing for gains on long-running work, not assuming better solve rates or cost efficiency in v2.4.1.

### Hardware & Deployment Guide
For a self-hosted CLI setup, install Python 3.11+ and system Node.js 22.22.3+ (Node.js 24 LTS is recommended). Install with `python3 -m pip install --upgrade loopx`, run `loopx workflow-skills --install`, and restart the agent host. Codex uses `$loopx` and Claude Code uses `/loopx`. The Python package adds `tzdata` on Windows; pip does not install Node.js.

Start with local SQLite, then validate wakeups, permissions, and evidence capture on the intended host before expanding to multiple agents. Local state does not imply offline inference or offline connectors. Usage statistics default on after first-use disclosure and can be disabled with `loopx usage-ping disable` or `LOOPX_USAGE_PING=0`. Stable users can take v2.4.1 from PyPI; exact-revision qualification can use immutable runtime snapshots rather than the mutable `runtime-main` channel.
```

## Key Capabilities
```text
- State: A shared TypeScript control plane persists goals, accepted requirements, decisions, ownership, and evidence; local workflows use SQLite.
- Scheduling: Guarded Heartbeat and recurring presets wake agents for bounded runs; a single-flight queue with hard leases limits duplicate work.
- Authorization: Owner, safety, publication, and private-data gates complement isolated worktrees and explicit confirmation for protected changes.
- Context delivery: In 112 in-cycle continuations, the stacked first-read entry was 3.0% by body bytes and 5.0% by CLI bytes; these are byte measurements, not token savings.
- Research: Explore history and trajectory analysis expose citations, native outcome readback, and separately measured costs without a model call just to open a result.
- Release management: PyPI serves stable installs; immutable revision-addressed runtime snapshots support exact-revision qualification independently of the mutable runtime-main channel.
```

## Quick Start / Clone
```bash
python3 -m pip install --upgrade loopx && loopx workflow-skills --install
```
