Jorge Turbica / blog · Blog ← All articles ES · Leer en español
AI

Repo of the day: Agent Autoloop, your agent works alone and only calls you to decide

Over 6,000 stars in 17 days: a local hub that runs Claude Code or Codex on events and only asks you about the risky steps.

Agent Autoloop was created on November 3, 2026, and by November 20 it had passed 6,000 stars and 1,100 forks on GitHub. It promises something anyone who uses Claude Code or Codex has wanted: an agent that keeps working when you are away from the terminal and only interrupts you when it needs a decision.

What it is: an event scheduler for command-line agents

The project, written in TypeScript under the MIT license, is a small hub that runs on your own machine (Windows, macOS or Linux) and hands work to the agents you already have installed and signed in. It splits into a kernel and four kinds of swappable plugin:

  • Events: GitHub and GitLab webhooks, an HTTP API, cron rules, or a script that polls issues.
  • Agents: Claude Code, Codex, anything that speaks ACP, or a generic command that takes a prompt and prints its final reply.
  • Channels: desktop notifications (on by default), Feishu, DingTalk, WeCom, Slack and Discord.
  • Delivery: a pipeline that, once you add the deliver label to a PR, reviews it, waits for CI, merges, waits for the deployment and checks the live version.

The flow never changes. An event comes in, the rules in ~/.agent-autoloop/rules.json decide which agent takes it and in which folder, the agent works one round, and its process exits. If it needs your input (deleting data, stopping a service, spending money, messaging someone), it says so at the end of its reply with an agent-autoloop JSON block, and the hub sends you a card. While you think it over, no agent process is running and no tokens are spent; when you answer, the hub resumes the original conversation and the agent finishes the job.

The interesting part is the kernel, which the README describes in terms of four classic systems patterns:

  • Event sourcing on SQLite: all state is derived from an append-only fact log, committed in the same transaction as its indexes. agent-autoloop why <round> replays the full story of any run.
  • Code/data split: an issue's title and body go to a local data file, never into the prompt, which carries only validated types, IDs and links. Only rules.json decides which agent runs, where, and with what access; events that try to set cwd, agent or access are rejected.
  • Hop circuit breaker: an agent can emit events that wake other agents, but the hop count never resets, and past 8 hops the kernel stops dispatching and notifies you. It is packet TTL applied to chains of agents.
  • Zero runtime dependencies in the kernel, which reads no clock and makes no outbound requests; plugins connect to it instead.

Getting started

You need Node 24 or later, Git and an agent that is already authenticated. The official install on macOS and Linux is curl | sh, so read install.sh before you pipe it into a shell:

bash
curl -fsSL https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/install.sh | sh
agent-autoloop try   # test loop: asks, waits for your answer, resumes

A rule that has Codex write a morning brief at 9:00 is this short:

json
{
  "name": "Morning brief",
  "when": { "cron": "0 9 * * *" },
  "to": "codex",
  "cwd": "~/notes",
  "prompt": "Summarize yesterday's notes and commits into today's brief."
}

agent-autoloop check validates the file, rules explain shows upcoming runs, and emit <type> --dry-run shows where an event would go without touching the hub. If you break rules.json, the hub keeps the last valid version and tells you.

What I like and what I don't

I like that the design takes seriously the two things that make leaving an agent alone scary: an issue with malicious text giving it orders (the code/data split cuts that off at the root), and agents triggering each other forever (the 8-hop limit). The published numbers are also sensible for something that runs on a laptop: an 88.78 ms cold start, 59.94 MB of idle memory and 2,394 durable writes per second on an Apple M5 Pro, backed by 200,000 simulated steps with network loss and 1,000 killed processes without losing a confirmed record.

The README is upfront about the downsides. CLI output and notifications are still in Chinese, and the recipes (production alerts, user feedback, inbox triage) are written in Chinese and built around Feishu on Beijing time. The Slack, Discord, DingTalk and WeCom templates have only been tested against mock servers, and the GitLab webhook against the payloads in its docs. The most important caveat is about terms of service: the hub drives the CLIs with your own sign-in, and providers recommend API keys rather than personal subscriptions for automated workloads.

Agent Autoloop vs a cron job running a headless agent

Until now, the usual way to automate an agent was a cron entry or CI job that runs it non-interactively with a fixed prompt. That works for tasks that finish on their own, but if the agent needs a decision, the run either fails or hangs.

Cron or CI + headless agentAgent Autoloop
TriggersSchedule or CI eventCron, GitHub/GitLab webhooks, HTTP API
Asking a humanNo; you rerun by handCard, then resumes the same session
TraceabilityScattered job logsEvent log and agent-autoloop why
DeploymentAlready in placeLocal Node 24 hub, MIT
MaturityProvenCreated on November 3, 2026

If all you need is a daily report, cron is still enough. Agent Autoloop earns its place when the agent has to stop and ask and you want it to pick up without redoing work, or when you chain several agents and need limits and a record of who did what.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗