
Agent Autoloop (KKKKhazix/agent-autoloop) is an MIT-licensed TypeScript kernel with zero runtime dependencies that runs on one Windows, macOS, or Linux machine, turns cron schedules and webhook events into work for the coding-agent CLIs already installed there, and exits after every round while a person answers an approval card on Feishu, DingTalk, WeCom, Slack, Discord, or the desktop.

**Its guarantees split in two: the dispatch boundary is kernel-enforced (untrusted events cannot choose the agent, the directory, or the access level, and an agent-returned chain stops at 8 hops), while the approval gate depends on the agent choosing to ask, since nothing intercepts a tool call.**

## What it is

A single Node 24+ install (an `install.sh` script or a PowerShell one-liner) with no cloud server and no inbound port, configured by one `~/.agent-autoloop/rules.json` file where each rule says what wakes it (a cron expression or a source and event types), which agent handles it, in which directory, and with which prompt or skill.
The event sources, agents, notification channels, and the delivery pipeline are plugins: GitHub and GitLab webhooks, an HTTP interface, and an issue-polling script on the source side; Claude Code, Codex, ACP, DeepSeek Harness, ZCode, and a generic command plugin on the agent side; desktop notifications by default and Feishu plus webhook templates for DingTalk, WeCom, Slack, and Discord on the channel side.
The agent contract needs no SDK: the last reply carries the result, and an `agent-autoloop` code block in it can ask a question, post a notice, resolve a card, schedule a later re-check, or emit a new event.
The kernel reads no clock, uses no randomness, and makes no outbound requests; its four mechanisms are zero-cost suspension (the process exits while it waits on you, with the state in the database), event sourcing (all state is computed from an append-only log written with its index in one transaction before the ack), instruction-data separation (external text goes into files marked as material, never into the prompt), and a hop circuit breaker.
It is made by KKKKhazix (the copyright line reads 数字生命卡兹克), documented in Chinese first with an English README.

## Status

Active and four weeks old: 7,142 stars and 1,310 forks as of 2026-12-05, 48 contributors over 320 commits with the maker at 179, created 2026-11-03, main's newest commit 2026-12-05, and v1.11.5 (2026-12-05) the latest of 42 releases since v1.0.0 (2026-11-03), with v1.11.0 through v1.11.5 shipped between 2026-11-30 and 2026-12-05.
Issues read 1 open and 94 closed as of 2026-12-05 by the search API, with 1 open pull request beside them.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=KKKKhazix/agent-autoloop&type=date&theme=dark&legend=top-left" />
  <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=KKKKhazix/agent-autoloop&type=date&legend=top-left" />
  <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=KKKKhazix/agent-autoloop&type=date&legend=top-left" />
</picture>

**The independent footprint is thin and Chinese-language: a Hacker News search returns no story on the name (the hits are unrelated projects that share the word autoloop), and what exists is the maker's own launch post, reposts of it, and one descriptive third-party write-up.**
The maker announced it in a long post on X and in a WeChat public-account article, which an AI news aggregator reposted on 2026-11-04.
A Tencent Cloud Developer Community article by code4it (2026-11-19) summarizes the launch post, credits it with 396,000 views and 5,902 saves, and records 208 stars on the first day.
A Zhihu weekly roundup counted 3,344 stars in three days (read through a search extract; the page answers 403 to scripted fetches).
I read 7,142 stars in four weeks beside zero Hacker News stories as a maker-audience launch rather than community discussion, and I found no skeptical evaluation.

## Strengths

- The dispatch boundary holds without trusting the agent: only `rules.json` chooses the agent, the directory, the skill, and the access level, event-carried `cwd`, `agent`, and `access` fields are rejected, and text from an issue title or body is filed as material instead of spliced into the prompt.
- The hop circuit breaker is kernel-enforced: an agent-returned event can dispatch more agents, the hop count keeps growing across human questions and scheduled follow-ups, the agent cannot reset it, and past 8 hops the kernel records the event, stops dispatching, and sends a notice card.
- Waiting on a person costs nothing: the process exits and the agent holds no session open, so a three-day silence runs no agent process and spends no tokens, and the answer resumes the same conversation.
- The audit trail answers why: `agent-autoloop why <round>` traces any run's events, rule version, and receipt from the log, and the repository ships the checks behind the claim (a 200,000-step simulation seeded from one number and 1,000 SIGKILL runs).
- Any CLI that takes a prompt and prints a final reply connects in one line, and the built-in plugins already cover Claude Code, Codex, and anything that speaks ACP.
- The delivery plugin respects the pull request it reviews: PR code is never checked out or run at review, and a review status counts only when written on that commit by an account the trusted configuration names.

## Cautions

- The approval gate is cooperative: the agent appends the ask block, a rule-level `askFirst` list (seven categories by default, from deleting data to changing permissions) names what it should ask about first, and no tool call is intercepted; the security notes say plainly that the instruction-data split does not stop all prompt injection because the agent still reads what other people wrote.
- It isolates nothing: the agent runs under your system account in the rule's directory, the `read` level does not hide keys on the machine, generic `command` plugins do not restrict permissions, and the security notes point to a separate account or container for secret isolation.
- A card link is a bearer token: whoever holds it can answer that one card, valid for seven days from its creation.
- The delivery review gate recedes on its own: since v1.11.0 (2026-11-30), two consecutive review rounds with blocking findings no longer wait for the owner, and new commits continue once each blocking finding carries a note.
- The recipes are unproven on live systems: the README says their scripts and receipts were verified only against local HTTP and a fake Feishu CLI, the four webhook channel templates only against a local mock, and the GitLab webhook never against a live GitLab.
- Whole-machine power loss was not tested separately, and the security page scopes its own checks to process crashes and limited scenarios, not a recovery proof or a full audit.
- It is one operator's plane: channel recipients belong to the whole installation and rules cannot pick their own, its MCP entry point records every caller as you, and the security notes ask that private-feedback setups stay off shared channels.
- The performance figures (88.78 ms cold start, 59.94 MB idle, 2,394 persisted writes per second, 1.82 ms dispatch p99) are maker-measured on an Apple M5 Pro, and the README itself notes that state summaries slow as history grows and a format change rebuilds the log (48.2 seconds at 1.1 million entries).
- Model spend runs on the CLI accounts you signed into; the README recommends API keys over personal subscription quotas for high-frequency automation and links the Anthropic and OpenAI pages for that reading.

## Pricing

Free under MIT and self-hosted, with no paid tier and no hosted offering.
Model spend is yours, billed through the CLI accounts you already use, and the project states it is independent of those providers.

## Compared to

- [Mission Control](../mission-control/index.md): Mission Control is a team operations plane with RBAC roles, workspaces, a web UI, and an Aegis reviewer that must approve completion; choose it when several people dispatch and audit, and Agent Autoloop when one operator wants a headless scheduler with approvals on chat.
- [Agent Barn](../agent-barn/index.md): Agent Barn runs chat-coworker agents as pods on your Kubernetes cluster with per-agent keys and cost attribution; choose it for a multi-tenant fleet, and Agent Autoloop for the agents already installed on one laptop or server.
- [Continuous Claude](../../orchestration/continuous-claude/index.md): Continuous Claude is a loop script that runs Claude Code or Codex through commit, pull request, and merge iterations; choose it for one repository's loop, and Agent Autoloop when many rules across event sources need scheduling and a person in the loop.

## Bottom line

**Recommended for a single operator who wants locally installed coding agents to pick up scheduled or event-triggered work on their own machine and stop for a decision on chat without spending tokens while they wait.**
Not for teams that need roles and isolation, anyone who needs tool-call-level enforcement or a sandbox, or a fleet on Kubernetes.

## Changes

- 2026-12-05 - Created from the coordinator handoff (the agent-clients walk routed it here as the alternative to a harnesses seat), profiling the MIT kernel with its dispatch boundary, zero-cost suspension, and hop circuit breaker, with the cooperative approval gate, the missing isolation, and the maker-audience footprint as the critical angles.

## See also

- [Control Planes Feature Matrix](../control-planes-feature-matrix/index.md) - the category comparison this note joins
- [Mission Control](../mission-control/index.md) - the team operations plane with the same dispatch-and-approval outline
- [Agent Barn](../agent-barn/index.md) - the fleet plane on Kubernetes, the multi-tenant counterpart
- [Continuous Claude](../../orchestration/continuous-claude/index.md) - the loop runner without a scheduler or approval cards
- [Claude Code](../../harnesses/claude-code/index.md) - the harness it drives first among its built-in agent plugins

## References

- https://github.com/KKKKhazix/agent-autoloop - README: install, rules, the four kernel mechanisms, plugin table, recipes, performance figures, and the compliance note
- https://github.com/KKKKhazix/agent-autoloop/blob/main/README.en.md - the English README: the headline, the hop circuit breaker, and the API-key guidance as the project translates them
- https://github.com/KKKKhazix/agent-autoloop/blob/main/SECURITY.md - the security boundary: default `edit` access, no tool-call interception, card links, delivery trust rules, and the stated scope limits
- https://github.com/KKKKhazix/agent-autoloop/blob/main/docs/protocol.md - the six principles, the `askFirst` default list, and the three access levels
- https://github.com/KKKKhazix/agent-autoloop/blob/main/LICENSE - the MIT terms and the copyright line
- https://api.github.com/repos/KKKKhazix/agent-autoloop - stars, forks, license, creation and push dates as of 2026-12-05
- https://api.github.com/search/issues?q=repo%3AKKKKhazix%2Fagent-autoloop%20type%3Aissue%20state%3Aopen - the 1 open issue of 2026-12-05, read through the issues-only search
- https://github.com/KKKKhazix/agent-autoloop/releases - v1.0.0 (2026-11-03) through v1.11.5 (2026-12-05), with the v1.11.0 delivery-review change
- https://api.github.com/repos/KKKKhazix/agent-autoloop/contributors - 48 contributors and the maker's 179 of 320 commits as of 2026-12-05
- https://hn.algolia.com/api/v1/search?query=agent-autoloop&tags=story - the zero-story community-footprint check as of 2026-12-05
- https://x.com/Khazix0918/status/2117776745688646139 - the maker's launch post on X
- https://upgrade.xiaoheiwan.com/aihot/y0cgwl79wbih8c50svgmit93j - the 2026-11-04 aggregator repost of the maker's WeChat article
- https://developer.cloud.tencent.com/article/2787980 - the independent Tencent Cloud Developer Community write-up by code4it (2026-11-19) with the first-day stars and the launch post's view count
- https://zhuanlan.zhihu.com/p/2102032403229364805 - a third-party weekly roundup recording 3,344 stars in three days (403 to this run's fetch, read through a search extract) <!-- preflight-allow: https://zhuanlan.zhihu.com/p/2102032403229364805 -->
