LoopX (GitHub Repo)
LoopX is a provider-neutral control plane that manages state and objectives for long-running AI agent teams.
Deep dive
- State Kernel: Keeps durable information (goals, gates, todos) separate from volatile agent runtimes.
- Provider-Neutral: Works with various LLM backends and agent runtimes rather than tying the workflow to one framework.
- Governance: Uses gates for human interaction and quotas to manage compute spend and logic transitions.
- Evidence: Preserves a history of agent decisions, which is critical for reproducibility in long-running research or engineering.
- Deployment: Acts as an 'agent-native Kanban', projecting status for humans while agents continue autonomous execution bounded by state parameters.
Decoder
- Control Plane: A system that manages and coordinates the control and configuration of resources or agents, as opposed to the data plane that handles the actual work.
- Stateful: A system that keeps track of the history and current status of tasks, allowing it to remember past actions.
Original article
LoopX
The open, provider-neutral, stateful control plane for long-running agents.
Keep objectives, gates, todos, evidence, quota, and handoffs stable while Codex, Claude Code, Cursor, or your own runtime executes bounded turns.
把会干活的 Agent,接成可管理、可复盘、可持续改进的数字员工。
Open and provider-neutral, LoopX is a lightweight state kernel and local-first control plane for loop engineering. It keeps long-running work reviewable, restartable, and easier to hand off across turns, tools, and agents without replacing the runtime that performs the work.
Loop engineering for long-running AI agents and peer agent teams.
Keep the loop moving. Keep the judgment human.
Why LoopX
An agent can finish a task in one session. Long-running work is harder: objectives change, owner decisions appear, evidence goes stale, agents hand work to peers, and a scheduler can keep spending after no useful transition remains. Chat memory and a timer are not enough to govern that.
LoopX keeps the durable control state in one compact layer:
objective / issue / project
│
▼
LoopX state: objective + gates + todos + scope + evidence + quota
│
├─ human judgment needed? ── yes ─▶ ask a concrete question and wait
│
├─ safe fallback available? ──────▶ run one bounded agent slice
│
▼
Codex / Claude Code / Cursor / shell agent executes one turn
│
▼
write evidence + handoff + next todo ─▶ quota decides the next tick
Agent runtimes execute the work. LoopX governs the state that lets engineering, research, discovery, and operations loops continue across runs. It is not another agent framework or a provider-specific orchestration runtime.
A useful mental model is an agent-native Kanban for long-running work. Cards carry identity, authority, evidence, and continuation. Moves are validated operators such as claim, gate, monitor, and writeback. The board is a projection; LoopX state remains the source of truth.
Registered agents are peers. Claims, leases, task boundaries, capabilities, and typed continuation decide who acts next; no durable leader identity is required.
LoopX is useful when you run:
- multi-day engineering, research, benchmark, or experiment objectives;
- issue and PR loops that must preserve scope, evidence, and review state;
- recurring heartbeat or monitor work;
- projects with owner, safety, publication, or private-data gates;
- peer-agent teams where ownership, leases, and handoff matter;
- creator, research, or operations workflows whose progress must remain legible to a non-engineering operator.
LoopX is not an autonomous production controller. Dangerous permissions, publishing, production writes, and final ownership stay with the human.
Evidence
These are not one-turn demos. The public OpenViking contribution sequence and the redacted, owner-run Auto ML showcase each span 200+ hours of elapsed loop lifetime across many bounded turns, decisions, and evidence updates. Elapsed lifetime is wall-clock project time. It is not 200 hours of continuous model execution or a claim of unattended production autonomy. Open each visual to inspect the public-safe graph, evidence branches, and decisions preserved across turns.
Open-Source Issue Fix
200+ hour public contribution arc: PR delivery and reusable fix knowledge evolve together.
LoopX's creator uses this path as an OpenViking contributor. The represented public contribution sequence spans more than 200 elapsed hours from its first PR creation to the latest represented review or update. The Issue-Fix capability keeps rolling repository context, revision-stamped fix knowledge, and reviewer-facing preferences separate; linked PRs plus current checkout source and tests remain authoritative.
Auto ML Experiment
Redacted owner-run showcase: a 200+ hour experiment arc keeps hypotheses, matched evidence, invalid lineages, running replicates, and promote/stop gates visible in one graph.
The redacted public-safe graph preserves decision lineage across that 200+ hour elapsed window. It is an owner-run showcase, not a claim of continuous compute, independent reproduction, a production result, or company or employer endorsement. The redacted image is not sufficient to reproduce the underlying experiment independently.
Auto Research
Reproducible public KNN demo: proposer, executor, and evaluator/promoter agents iterate in parallel while todo, quota, evidence, and targeted wake remain visible.
This screenshot comes from LoopX's built-in exact-KNN demo. The public task, editable and protected files, deterministic CPU evaluator, and dev/held-out commands all live in this repository. Follow the showcase walkthrough or the command path to reproduce the workflow; it is a demo result, not a production research claim.
Used In Real Projects
- Independent user ·
>13hC++ accuracy run. The user reported that a multi-stage task stayed aligned, triggered public research, adopted a public code-memory tool, and improved final precision. - Independent user ·
4dunattended run. The user reported four days without human intervention, useful ongoing work, and a periodic report surface. - Independent user ·
7merged PRs. A LoopX-attributed Engine refactor is visible in a public issue and seven merged PRs; attribution and the reported1B+token scale remain user reports.
Try LoopX
Requirements: Python 3.11+, curl, tar, and a macOS or Linux shell. Git is only needed for contributor clone/canary workflows. The Python package has no runtime dependencies outside the standard library.
Install without cloning:
curl -fsSL https://raw.githubusercontent.com/huangruiteng/loopx/main/scripts/install-from-github.sh | bash
export PATH="$HOME/.local/bin:$PATH"
loopx doctor
Then connect from your project root:
cd /path/to/your-project
loopx connect
loopx status
If the project has not been initialized and connect tells you state is missing, use the guided path:
loopx start-goal --guided --project . --goal-text "Your long-running objective"
LoopX should reuse existing state rather than overwrite it. Keep .loopx/, .codex/goals/, and .local/ ignored.
Capabilities
LoopX folds its control-plane mechanics into five questions:
- What is the objective? The active goal, explicit scope, and current authority.
- What happens next? Ordered user and agent todos, ownership, claims, and leases.
- What needs human judgment? Concrete user gates instead of a vague "waiting for owner."
- What evidence changed? Compact run history, validation, blockers, and accepted writeback.
- May the loop continue? Quota, capabilities, safe fallback, scheduler hints, and stop conditions.
Advanced Paths
The first useful loop does not require every optional surface. Add these only when the work needs them.
Partner Projects
LoopX welcomes collaboration with other open-source projects to build the long-running agent ecosystem. Our confirmed partners include:
- OpenViking - Self-evolving context database for AI agents
- NoKV - AI native distributed file system
Community and Feedback
LoopX is still early. The most useful feedback comes from real long-running agent projects: where the control plane helped, where it felt heavy, and which gates or handoffs disappeared from view.
License
MIT.
Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi