← Back to Leaderboard
AKKKKhazix

KKKKhazix/agent-autoloop

A self-hosted event hub for CLI agents that pause for approval and resume work

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A+ · 98/100
Maintenance Activity
● Updated yesterday
Latest Release
v1.11.3
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity20/20
Self-HostedCLI
Total Stars
★ 7,080
24h Growth
+27
7d Growth
+404
Forks
1,298

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

KKKKhazix/agent-autoloop Star History (2026-11-02 - 2026-12-04) DAILY STAR HISTORY (32-DAY D1 TELEMETRY) +7.1k in 32d · avg +221/day 7.5k 3.7k 0 2026-11-02: ★ 12026-11-04: ★ 2,8772026-11-06: ★ 3,7672026-11-08: ★ 4,1672026-11-10: ★ 4,4452026-11-12: ★ 4,9502026-11-14: ★ 5,3792026-11-16: ★ 5,7182026-11-18: ★ 5,9502026-11-20: ★ 6,1282026-11-22: ★ 6,3242026-11-24: ★ 6,5112026-11-26: ★ 6,6742026-11-28: ★ 6,7952026-11-30: ★ 6,9462026-12-02: ★ 7,0522026-12-04: ★ 7,080 ★ 7.1k 11-02 11-18 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Agent Autoloop is an event-driven TypeScript hub that runs CLI agents in discrete turns. Its deterministic kernel/ matches normalized events against local rules, coalesces pending updates for the same work item, and projects state from an append-only fact log. host/ owns the Node HTTP server, filesystem, clock, SQLite connection, and plugin loading. The log and indexes are committed together before the hub acknowledges a write.

protocol/ defines schemas and validation; worker/ claims work, runs the agent, sends heartbeats, and submits the result. The subprocess contract is the final reply, optionally carrying an agent-autoloop JSON receipt for a decision, notification, scheduled recheck, or follow-on event. Sources, agents, notification channels, and delivery are separate plugin interfaces. The CLI entrypoint runs from bin/agent-autoloop.ts into cli/main.ts.

Key Capabilities & Differentiators

Built-in adapters cover Claude Code, Codex, ACP, DeepSeek Harness, ZCode, and generic commands. Multi-turn Q&A and cross-process resumption were tested with Claude Code, Codex, and ACP setups using the official Codex adapter and Agentica 1.6.1. ZCode was tested for a question-and-answer round trip back into the same session. Operators can validate and preview rule changes, pause rules and explicitly replay skipped events, and inspect individual runs and wakeup reasons from the CLI.

When a turn asks for a decision, the hub stores the pending state and the agent exits; no agent process runs or consumes tokens while waiting. On an Apple M5 Pro with 24 GB RAM and Node 24.21.0, the hub measured 88.78 ms cold start, 59.94 MB idle RSS, 170.49 MB RSS with 1,000 waiting long polls, 2,394 individually committed writes per second, and 1.82 ms p99 dispatch latency. These are hub measurements, not model response times.

Trade-offs & Limitations

Compared with cron and shell scripts, Autoloop adds durable waits, session resumption where supported, and a trace of why work ran. Compared with a CI pipeline, it is useful when an agent must decide what to do next or ask a person; CI remains the simpler choice for fixed build and test stages. There is no built-in dashboard, the generic command adapter does not preserve sessions, and Feishu has stronger verification coverage than the four generic webhook templates tested only against local mocks.

External text is passed as data files rather than interpolated into prompts, and incoming events cannot override the agent, working directory, or access settings. Those controls do not replace restricting what an agent is allowed to do. The eight-hop cutoff bounds event chains but also stops legitimate chains that exceed it. Retained history increases disk usage and slows summaries; the measured full rebuild after a format change took 48.2 seconds at 1.1 million facts. Crash tests covered forced process termination, not whole-machine power loss.

Hardware & Deployment Guide

The self-hosted CLI runs on Windows, macOS, and Linux. It requires Node.js 24 or later, Git, and an installed, authenticated CLI agent; the documented macOS/Linux install path also uses curl. Install and update target published releases. agent-autoloop try exercises the ask, exit, answer, and resume path with the local agent. Rules live in ~/.agent-autoloop/rules.json; an invalid or unreadable update leaves the previous rules active.

A single-machine deployment with desktop notifications needs no public inbound port. Link-based approvals require hub.publicUrl to be reachable from the answering device; webhook sources also need a route to the hub, so validate connectivity before depending on either. Self-hosting the hub does not make model calls offline. v1.11.3 fixed Windows desktop notices when the hub starts before the desktop is ready; v1.11.2 fixed review persistence for PR descriptions ending in an empty Codex review section; v1.11.1 corrected doctor checks for hub URLs with a trailing slash.

Trigger routing: Cron, HTTP, and source plugins feed a common event model; local rules select the agent and working directory.
Pause and resume: A structured ask receipt persists a decision card and lets the agent process exit; supported adapters resume the session after an answer.
Durability: The append-only fact log and indexes commit in the same SQLite transaction before acknowledgment; why traces an individual run.
Loop control: Event chains beyond eight hops are recorded but not dispatched; human answers and scheduled rechecks do not reset the count.
Rule operations: Validate drafts with check, preview routing with emit --dry-run without writing to the log, and explicitly replay events skipped during a pause.
Integration maturity: Feishu card callbacks and updates were exercised end to end; DingTalk, WeCom, Slack, and Discord webhook templates were tested only against local mocks.
Best For

Developers and small teams already using CLI agents who want to turn issue follow-up, recurring reports, and operational triage into auditable workflows that can pause for human judgment.

Skip If

A fixed cron job or CI pipeline already does the job, you need a managed visual workflow console, or you expect self-hosting the hub to make model inference offline.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedCLI
curl -fsSL https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/install.sh | sh

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
agent-autoloop ★7.1k+404TypeScriptMITA self-hosted event hub for CLI agents that pause for approval and resume work
n8n213.1k+787TypeScript—Visual Node.js platform for self-hosted workflows and multi-step AI agents
activepieces25.9k+104TypeScript—Self-hosted TypeScript automation with visual workflows and reusable MCP tools
OpenHands94.8k+374TypeScriptMITSelf-hosted control plane for coding agents across local, remote, and cloud back

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/KKKKhazix/agent-autoloop.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

KKKKhazix/agent-autoloop Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about agent-autoloop

How does a CLI agent pause for approval and pick up where it left off?

A worker launches the CLI agent for one turn and parses an optional structured agent-autoloop block in its final reply. An ask receipt creates a decision card; the agent process exits, and the reply schedules a new turn. Tested session-aware adapters can resume the prior conversation across processes. The generic command adapter uses an argument array rather than shell interpolation, but does not provide session continuity.

Does the hub need a GPU, and how should I size the host?

The Node.js hub does not itself load models or require a GPU. On the measured Apple M5 Pro with 24 GB RAM and Node 24.21.0, idle RSS was 59.94 MB and rose to 170.49 MB with 1,000 waiting long polls. Size the host separately for concurrent agent subprocesses, their tools, and retained event history. If a connected agent runs inference locally, GPU and VRAM requirements come from that model and inference backend.

Can I self-host Agent Autoloop for commercial work?

The hub is MIT-licensed, which permits commercial use subject to the license terms. That license does not extend to Claude Code, Codex, or their underlying model services. Calls made through a locally authenticated CLI count against the configured account and remain subject to the provider's terms. For a service offered to others, use API-key access and verify that the provider permits the intended automation.

When is Autoloop a better fit than cron or a CI workflow?

Use cron for a fixed job that can run to completion without intervention, or CI for a pipeline with explicit stages and gates. Autoloop is useful when a CLI agent needs to stop, ask for judgment, and resume with context, or schedule a follow-up without keeping a process alive. Its delivery plugin can wait on CI and handle PR delivery, but the project does not provide a visual workflow editor or built-in admin dashboard.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining KKKKhazix/agent-autoloop? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature KKKKhazix/agent-autoloop on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare