Agent Autoloop
KKKKhazix
Lets command-line agents like Claude Code and Codex work through rules and events in the background and pings you with a card only when a decision is yours.
What is Agent Autoloop?
A lightweight automation hub for command-line agents. A zero-dependency kernel turns events (cron schedules, GitHub or GitLab webhooks, an HTTP API) into rounds handled by an agent plugin, keeps all state in an append-only SQLite fact log, and lets the agent process exit while it waits for you. When a call is yours, a card reaches Feishu, DingTalk, WeCom, Slack, Discord or a desktop notification, and your answer resumes the original conversation. Runs on Windows, macOS and Linux with Node 24 or newer.
| Fact | Value |
|---|---|
| Maintainer | KKKKhazix |
| GitHub stars | 7,015 (as of 2026-12-02) |
| Forks | 1,284 |
| License | MIT |
| License type | OSI-open |
| Category | Agent frameworks and runtimes |
| Status | Rising |
| Edition | 2026-12 |
| Last verified | 2026-12-02 |
Agent Autoloop in depth
Most people use command-line agents such as Claude Code or Codex by watching a terminal: you type a prompt, wait, answer the next question, and when you close the window the work stops. Agent Autoloop, from the developer KKKKhazix and now a project with dozens of contributors, turns that into a background loop. Events such as a morning schedule, a new GitHub issue or a production error are matched against your rules, handed to an agent, and the agent only bothers you when a decision is really yours.
The design is unusually strict. A kernel with zero runtime dependencies decides what happens, all state lives in an append-only SQLite fact log, and the agent process exits while it waits for your answer, so a reply three days later costs no tokens in between. External text such as issue titles is written to a data file and never into the prompt, rules.json alone decides which agent runs where, and a hop counter stops runaway chains after 8 steps. Agents plug in through small plugins for Claude Code, Codex, ACP or any command that prints a reply.
It fits developers who already trust a command-line agent and want it to work through issues, alerts, website checks or daily briefs without supervision, with a card on Feishu, Slack, Discord or the desktop for the risky parts. The repository ships recipes for exactly these jobs, including a pull request delivery pipeline that reviews, waits for CI, merges and verifies the live version. Because it runs on one machine with one install command, it suits individuals and small teams rather than an organisation that wants a managed service.
The caveats are practical. The CLI output and default notification texts are still Chinese, the recipes are written in Chinese, and the English README is a translation of the main one. Only Feishu has been run end to end on a real account; the other chat channels were checked against mock servers, according to the project. The README also notes that unattended runs on personal subscription quotas may conflict with provider terms and recommends API keys. The benchmark figures are the project's own, taken on a single Apple machine.
The verdict: Agent Autoloop is a serious, carefully engineered answer to the question of how to leave a command-line agent running without losing control, and a month of daily commits, 48 listed contributors and fast releases back that up. Try it if you can live with a partly Chinese interface and want an agent-agnostic, local-first loop. Wait if you need English-first notifications, verified Slack or Discord delivery, or a hosted product with a dashboard.
Pros & Cons
Pros
- Agent-agnostic: Claude Code, Codex and ACP agents have built-in plugins, and any CLI that takes a prompt and prints a reply connects with one line of config, no SDK
- Deterministic zero-dependency kernel with an event-sourced SQLite log, plus simulation and crash-test scripts in the repo (sim/) that you can rerun yourself
- MIT, daily commits from many authors (about 314 commits and 48 listed contributors in a month) and releases v1.11.0 to v1.11.2 within three days
Cons
- CLI output and default notification strings are still Chinese, and the ready-made recipes are written in Chinese; the English README is a translation
- Only the Feishu channel has been run against a real account; the Slack, Discord, DingTalk and WeCom templates were checked against local mock servers, according to the project
- The README itself warns that unattended automation on personal subscription quotas may conflict with provider terms and recommends API keys
- Benchmarks (cold start 88.78 ms, 2,394 durable writes per second) and the simulation results are the project's own measurements on one machine
License
MIT (OSI-open)
When it is interesting
Developers who already run Claude Code or Codex and want them to triage issues, alerts or scheduled jobs unattended, with a human sign-off only for risky steps.
When it is too early
Teams that need English-language CLI output, verified non-Feishu notification channels, or a hosted service with a dashboard instead of a terminal-first tool.
This repo featured in the 2026-12 edition of the Open-Source AI Radar.
Nanobot
HKUDS
Lightweight personal AI agent for tools, chats and workflows - one binary, multi-channel.
DeepTutor
HKUDS
Agent-native personalized learning workspace - tutoring, quizzes, research and RAG knowledge bases.
OpenFang
RightNow-AI
Open-source Agent Operating System in Rust - autonomous capabilities, 40 channels, WASM sandbox.