Disclaimer:This site is not affiliated with or endorsed by agent-autoloop.
YuliusWiki
Published:•Last updated:•yulius
🌐 中文版 (Chinese)

agent-autoloop: What Is It? A Self-Hosted Loop That Lets CLI Agents Work in the Background — and Only Pings You When It Matters

Quick Answer

A self-hosted loop that lets CLI agents work in the background and only pings you when a call needs your judgment.

agent-autoloop is an open-source project on GitHub (KKKKhazix/agent-autoloop), created November 3, 2026, under the MIT license: it turns CLI agents such as Claude Code and Codex from tools you babysit at a terminal into workers that pick up jobs in the background and follow them through on their own. A 9 a.m. cron job, a new GitHub Issue, or an error from your production system all arrive as standard events, and the kernel dispatches each one to the right agent under rules you wrote; the agent finishes a round and exits — no process held, no tokens burned — and only the calls it cannot make alone, deleting data, restarting a service, spending money, or sending a message out, arrive as a card in Feishu or a desktop notification asking for your call. You tap once, and it resumes the same conversation and finishes the job. In one sentence: it leaves you alone until judgment is needed. In 11 days it collected 5,144 stars and 937 forks (as of November 14, 2026, about 476 stars a day), and shipped one release a day for the last three days, up to v1.8.4. Every fact below comes from the repository README and the GitHub API; the performance numbers are the author's own measurements on an Apple M5 Pro. One thing up front: this is not a hosted service. It runs on one computer of yours — no cloud server to buy, no public port to open.

1. What it is: a backstage for CLI agents

Start with the problem it solves. Using CLI agents like Claude Code and Codex usually means babysitting a terminal: you type a sentence, watch it run, and wait for it to ask what is next — and the moment you close the window or walk away, the work stops. agent-autoloop flips that around: it is a featherweight automation hub that turns task scheduling into a kernel with zero external dependencies, and splits event sources, agents, notification channels, and even the code-delivery pipeline into plugins you can swap at any time. Three sentences pin down what it is. First, one computer and one command is enough: install it on Windows, Mac, or Linux — no cloud server to buy, no public port to open. Second, one line of configuration plugs in a new agent: no SDK, no changes to the agent's source — any command-line tool that accepts a prompt and prints its final reply can plug in. Third, there is no admin UI: when your call is needed, a card goes to Feishu, DingTalk, WeCom, Slack, Discord, or a desktop notification, and one command shows the whole picture. The requirements are stated plainly: Node 24 or newer, Git, and a CLI agent that is already logged in; macOS and Linux also need curl, and no GitHub account is required. Installation is one command (PowerShell on Windows, curl on macOS and Linux), and it installs the latest Release — the version that passed all checks. After installing, run agent-autoloop try and let your own agent walk a real round of “ask → exit and wait → approve → finish”, and only then write your rules.

2. How one job flows: the five-step loop

One job moves through five steps, numbered to match the architecture diagram in the repository. Step one, a new event arrives: a 9 a.m. cron job, a new GitHub Issue, or an error from your business system all become one standard event fed into the kernel. Step two, dispatch by rule: the kernel follows the rules you wrote and decides which agent takes it and in which directory; if more messages about the same job arrive while it is queued, they merge into one round. Step three, the round ends and the process exits: the agent writes its result in its final reply and the process exits. Step four, it asks only when unsure: for deleting data, restarting a service, spending money, or sending a message out, the kernel sends you a card through Feishu or a desktop notification — and while it waits for your answer, it holds no background process and burns no tokens. Step five, one tap and it continues: once you choose, it resumes the original conversation and finishes the rest. Jobs it can settle alone take the automatic loop: finish directly, or schedule a recheck (say, in half an hour) and wake up to look again, without ever disturbing you. Rules live in ~/.agent-autoloop/rules.json, and they need no glue code — just say what the job is, who takes it, and in which directory, for example a 9 a.m. rule that has Codex write the morning brief from your notes. Rules take effect within seconds of saving; agent-autoloop check validates them, and a bad edit is safe: the system keeps running the old rules and sends you a card about it. The hub asks exactly one thing of an agent: put the result in the final reply. A finished job just needs one concluding sentence; when your input is needed, the reply ends with an agent-autoloop code block carrying ask (a question), notice (a note), resolve (close a resolved card), later (schedule a recheck), or events (trigger new events). If the JSON is malformed, the hub only asks the agent to rewrite that final part inside the same session — it never redoes the work that is already done. And if a session cannot be resumed, only then does it start a new one; if a resumed session breaks halfway, it returns to the original session a few minutes later and retries instead of starting over.

3. The kernel's four mechanisms: free waiting, traceable when things go wrong

The kernel has no runtime dependencies. It does not read the system clock, uses no randomness, and sends no requests out; plugins connect to it, credentials stay inside their own plugins, and the same input always produces the same result. It applies four established computing practices to CLI agents. First, suspending costs nothing. While it waits for your call, the process exits outright and the waiting state lives in a database, so no agent process has to stay up. If you do not answer for three days, there is no agent process running and no tokens spent for three days — only a very light hub waiting in the background; the moment you answer, it resumes the original conversation. Second, event sourcing. All state is computed from one append-only log, and the log and its index are written to disk inside the same transaction before anything is acknowledged. A process killed outright loses nothing that was already confirmed — the author ran a test of 1,000 kill -9s with zero confirmed records lost. Why any round ran and what it produced is one agent-autoloop why command away, and when the data format changes, state is rebuilt from the log with no migration scripts. Third, instruction-data separation. The idea mirrors SQL parameterization: external text such as an Issue's title and body is placed in files as data, never spliced into the prompt — the prompt carries only validated characters, types, IDs, and links. Which agent runs, in which directory, and with what permissions is decided only by the rules on your own machine; an event carrying cwd, agent, or access fields is rejected outright. This is a defense against prompt injection: text arriving from outside cannot command your agent. Fourth, a hop-count circuit breaker. The idea mirrors a network packet's TTL: events handed back by an agent are dispatched to agents again, and the hop count keeps accumulating — it is not reset by a human question or a scheduled recheck, and the agent cannot change it. Past 8 hops, the hub only records the event and stops dispatching, and sends you a card about it. That stops an agent from assigning work to itself in an endless loop.

4. Do the math: waiting costs nothing, an 18.2% fork ratio, one release a day

The first sum is the cost of waiting. While it waits for your call, the agent process exits outright and the waiting state is one row in a database: three days without an answer means zero processes and zero tokens for three days. Compare that with keeping a resident agent on standby: the process runs, the context burns, and the longer the wait, the more it costs. Autoloop turns waiting into a database row — that is its most concrete saving. The second sum is the fork ratio. As of November 14, 2026, the repository has 5,144 stars and 937 forks: 937 ÷ 5,144 ≈ 18.2%. A star says “this looks good”; a fork says “I am going to run it and change it” — an 18.2% fork ratio is a strong usage signal, meaning plenty of people are not just passing by to star it but actually installing it. That reading is analysis drawn from the numbers, not an official claim; take it as a reference. The third sum is release cadence. One release a day for the last three days: v1.8.2 on November 12, v1.8.3 on November 13, v1.8.4 in the early hours of November 14. Installation and agent-autoloop update always pull the latest Release — the version that passed all checks. The project was created November 3 and reached v1.8.4 in 11 days, so it iterates fast — the upside is that problems get fixed quickly, and the cost is that interfaces and behavior are still moving, so reading the release notes before upgrading is the safer move. The fourth sum is the performance budget, all measured by the author (Apple M5 Pro, 24 GB, Node 24.21.0, marked preliminary): cold start 88.78 ms, idle memory 59.94 MB RSS, 1,000 concurrent long-poll waits at 170.49 MB, durable writes at 2,394 per second, dispatch p99 at 1.82 ms, startup with 1.1 million facts at 99.8 ms, and zero runtime dependencies. In other words, the hub's own overhead is negligible next to model calls — your real cost is always model tokens, not this hub. But there is a price: as history grows, state aggregation slows down, and the log and index keep using disk; the first start after a format change rebuilds everything from the log, which takes 43.1 seconds for 1.1 million facts.

5. What plugs in: agents, events, channels, and delivery can all change

Plugins split into four directions, and every one can be swapped freely. Events: GitHub Webhook, GitLab Webhook, an HTTP interface, cron rules, and an Issue polling script — where new work comes from is your call. Agents: Claude Code, Codex, ACP, DeepSeek Harness, ZCode, and a generic command are built in; one line of configuration plugs in a new command-line tool, with {prompt} passed as a separate argument so it is never executed as shell code. Channels: desktop notifications are on by default, and Feishu, DingTalk, WeCom, Slack, and Discord go through webhook templates. Delivery: once a delivery rule is set, tagging a GitHub PR with deliver takes it to production on its own — review the code, wait for CI, merge the PR, wait for deployment, and verify the live version. The verified status has to be told in two parts, and the README is honest about it. Verified: multi-round Q&A and cross-process session resume for Claude Code, Codex, and ACP; asking, answering, and resuming the original session for ZCode; sending, button callbacks, and card updates for Feishu; and review and merging in the delivery pipeline. Not yet verified: the four webhook templates were only checked against a local mock service, and the GitLab webhook was tested against the official documentation format without ever connecting to a real GitLab; the connection commands for pi, OpenClaw, Hermes, Cursor, and CodeBuddy were compiled from each project's official docs and have not been run one by one; and the ACP handshake works for Gemini CLI and OpenCode, but multi-round Q&A and session resume have not been run for them. Two details are worth noting. First, the built-in agents go through third-party gateways: Claude Code and Codex need a third-party model service, or environment variables set before launch — write a small script that sets the variables and then starts the agent, point the agent's program at that script, and session resume and usage statistics keep working. Second, the delivery pipeline's security boundary: review and delivery configuration is read only from main, and PR code is never checked out or run on the machine that takes the jobs — code inside a PR does not execute on your computer. The scene templates are ready to use — eight of them: a morning brief (8 a.m. daily, notes and Git commits into a brief), GitHub Issue follow-up (checks every 5 minutes, fixes code locally and notifies you to review — no submit, no push, no reply to the Issue), production alert triage (sends you a card when a restart is needed), user feedback handling, website watch (checks every 5 minutes, never repeats a notification for a continuing outage), a Feishu weekly brief and business summary, inbox triage (8 a.m. daily, reads the last 24 hours of unread mail and writes a list plus reply drafts — nothing sent, no mailbox state changed), and PR auto-delivery. Feedback handling, website watch, the Feishu summary, and inbox triage default to Beijing time and message only your own Feishu private chat; the sample data is fictional.

6. Who it fits, who should wait, and sources

Who it fits: anyone already living in CLI agents like Claude Code and Codex — Autoloop does not replace your agent, it just gives it a backstage; anyone with a pile of recurring chores — morning briefs, Issue triage, website watch, and inbox triage all have ready templates that run after a few lines of rules; anyone who wants self-hosted control — it runs on your own computer, no cloud server to buy, no public port to open, and credentials stay inside their own plugins; and anyone who wants a human gate on risky actions — deleting data, restarting services, spending money, and sending messages out all wait for your card tap by default. Who should wait: anyone who wants a hosted agent service with zero setup and no rules to write — Autoloop is a self-hosted hub, and rules and plugins are yours to configure; anyone without a CLI agent yet — it calls tools that are already installed and logged in on your machine, so you need one first; anyone who needs real-time guarantees — it is an event- and polling-driven hub, not a real-time system; and anyone who expects the webhook channels to be battle-tested on real accounts — the README says plainly they were only verified against a local mock, and the GitLab webhook has never connected to a real GitLab. The limits, laid out plainly. First, the project was created November 3, 2026, and the ecosystem is still young: some agent connection commands have not been run one by one, and the webhook templates were only checked against local mocks. Second, the performance numbers are the author's own measurements on their own machine, marked preliminary — different machines and different scales will give different results. Third, history growth has a price: state aggregation slows as history grows, the log and index use disk, and the first start after a format change rebuilds everything. Fourth, the compliance boundary: model calls are billed to your own account, and vendors generally recommend API keys for high-frequency automation — personal subscription quotas are designed mainly for everyday interactive use; if you offer it as a service to others, use an API key. Sources (verified November 14, 2026, Beijing time): 1) https://api.github.com/repos/KKKKhazix/agent-autoloop — GitHub repository API (read directly): created 2026-11-03T08:02:11Z; last updated 2026-11-14T03:02:10Z; MIT; language TypeScript; 5,144 stars, 937 forks (as of November 14, 2026, 11:12, fork-to-star ratio about 18.2%, about 476 stars a day); 2 open issues; topics ai-agents, automation, claude-code, cli, codex, event-driven, mcp, nodejs, self-hosted, typescript, workflow; 2) https://api.github.com/repos/KKKKhazix/agent-autoloop/releases — GitHub Releases API (read directly): latest v1.8.4 published 2026-11-14T01:03:13Z; v1.8.3 on November 13, v1.8.2 on November 12 — one release a day for the last three days; 3) https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/README.md — repository README (read directly): zero-dependency kernel; four pluggable directions — events, agents, channels, delivery; built-in agents, events, channels, and the delivery pipeline; the kernel's four mechanisms — zero-cost suspension, event sourcing, instruction-data separation, and the 8-hop circuit breaker; measured performance (Apple M5 Pro, 24 GB, Node 24.21.0): cold start 88.78 ms, idle 59.94 MB RSS, 1,000 concurrent long-poll waits 170.49 MB, durable writes 2,394 per second, dispatch p99 1.82 ms, startup with 1.1 million facts 99.8 ms, zero runtime dependencies; 1,000 kill -9s with zero confirmed records lost; a 200,000-step simulation that reproduces from one seed; requirements Node 24+, Git, and a logged-in CLI agent; eight scene templates; compliance notes — credentials are never read or transferred, usage is billed to your own account, and API keys are recommended for high-frequency automation; 4) Not verified and not written into the article: the repository's clone or install counts; the actual token and cost consumption of each agent; full end-to-end verification of the webhook templates against real GitLab or Feishu business accounts; one-by-one verification of the generic command connections for OpenClaw, Hermes, Cursor, CodeBuddy, and others; multi-round Q&A and session resume beyond the ACP handshake. Disclaimer: this site is not affiliated with KKKKhazix, Anthropic, OpenAI, DeepSeek, or any party cited here; Claude Code, Codex, DeepSeek Harness, OpenClaw, Hermes, Gemini CLI, OpenCode, Cursor, CodeBuddy, and related names are trademarks of their respective owners. This article is product-technology reporting and analysis, not procurement, deployment, or legal advice. Parameters, specs, and status follow the official pages and may change; anything not publicly disclosed follows the official pages.

Comparison: how the built-in agents plug in

AgentHow it plugs inSession resumeVerified status
Claude CodeBuilt-in pluginMulti-round resume supportedMulti-round Q&A and cross-process resume verified
CodexBuilt-in pluginMulti-round resume supportedMulti-round Q&A and cross-process resume verified
ACP (Gemini CLI, OpenCode, etc.)use: “acp”SupportedHandshake verified (Gemini CLI 0.67.0, OpenCode 1.1.2); multi-round Q&A and resume not yet run
DeepSeek Harness (dsh)Built-in plugin (0.2.2 and above)Not stated separatelyOlder connection commands taken from official docs, not run one by one
ZCodeBuilt-in pluginSupportedAsk, answer, and resume of the original session verified
Generic command (pi, OpenClaw, Hermes, Cursor, CodeBuddy, etc.)use: “command”, {prompt} passed as a separate argumentDepends on the agentCommands taken from each project's official docs, not run one by one

Frequently Asked Questions

How is agent-autoloop different from just babysitting Claude Code?

Babysitting means a human at a terminal: you type a sentence, watch it run, and wait for it to ask what is next — and the work stops the moment you walk away. Autoloop puts a backstage hub in the middle: cron jobs, GitHub Issues, and production errors become events that reach an agent on their own, the agent finishes a round and exits, and only the calls it cannot make alone arrive as a card for your approval — while it waits, it holds no process and burns no tokens. You keep the same agent; you just stop having to watch it.

Does it burn tokens while it waits for my decision?

No. While it waits for your call, the agent process exits outright and the waiting state lives in a database — three days without an answer means no agent process running and no tokens spent for three days, only a very light hub waiting in the background. The moment you answer, it resumes the original conversation. That is the kernel's zero-cost suspension by design, not a trick.

Which agents does it support?

Built in: Claude Code, Codex, ACP, DeepSeek Harness, ZCode, and a generic command; one line of configuration also plugs in pi, OpenClaw, Hermes, Cursor, CodeBuddy, and other command-line tools, and agents that speak ACP (Gemini CLI, OpenCode) connect with use: “acp”. Verified in practice are multi-round Q&A and session resume for Claude Code, Codex, and ACP, plus asking and resuming for ZCode; the other generic commands were taken from each project's official docs and have not been run one by one.

What can I use straight out of the box?

The repository ships eight templates: a morning brief, GitHub Issue follow-up, production alert triage, user feedback handling, website watch, a Feishu weekly brief and business summary, inbox triage, and PR auto-delivery — plus Claude delegating web work to Codex and a weekly code sweep. Merge the sample rules into ~/.agent-autoloop/rules.json, replace the machine name and paths, and run agent-autoloop check to enable them.

Is it safe? Will it send my credentials or code anywhere?

It is designed to run locally: it calls command-line tools that are already installed and logged in on your machine, and it never reads or transfers your account credentials — credentials stay inside their own plugins. Instruction-data separation guards against prompt injection: text arriving from outside is treated as data, never spliced into prompts. The delivery pipeline reads configuration only from main and never checks out or runs code from a PR on the machine that takes the jobs. Model calls are billed to your own account, and API keys are recommended for high-frequency automation rather than personal subscriptions.

What do I need to run it? Can one computer do it?

Yes. The requirements are Windows, macOS, or Linux, Node 24 or newer, Git, and a CLI agent that is already logged in; macOS and Linux also need curl, and no GitHub account is required. No cloud server to buy, no public port to open. Installation is one command, and agent-autoloop try walks a real round of “ask → exit and wait → approve → finish” with your own agent to verify the setup.

© 2026 YuliusWiki. All rights reserved.