Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

Let Claude Code work alone and only ping you to decide

The short version

agent-autoloop is a free, MIT-licensed background hub for command-line agents: Claude Code, Codex, anything that speaks ACP, or any CLI that takes a prompt and prints a reply. It turns events (a schedule, a new GitHub issue, an error report) into jobs and hands each one to the agent you pick, in the folder you pick. It stays quiet when the agent can handle the job. When a decision is yours, it sends you a card with numbered options.

The clever part is the pause. When the agent stops to ask, its process exits. The waiting state is saved in a local SQLite file, so no agent process runs and no tokens are spent while you think, even for days. Answer with one number and it picks the same conversation back up and finishes. A small hub keeps running in the background to hold the state. The agent itself does not.

Facts are from the project's README (English and Chinese), read 2026-11-08: release v1.6.4, MIT.

What How it works
When it asks Before deleting data, restarting a service, spending money or sending messages to other people (the README's list). The agent makes the call by ending its round with a question
What you get A card with numbered options: a desktop notification (on by default), Feishu, DingTalk, WeCom, Slack or Discord
How you answer Type the number in an interactive terminal, or run agent-autoloop answer <card> <option>
What it costs while waiting No agent process and no tokens. Only the small hub runs
What triggers work Rules: a cron schedule, a GitHub issues.opened event, a webhook, an error alert
Safety rails Event text is never pasted into the prompt (only checked ids, types and links). An event can't pick its own agent, folder or permissions. Hand-offs between agents stop after 8 levels and send you a card

Copy these prompts

Install it. You need Node 24 or newer, Git and a command-line agent that's already signed in. No GitHub account needed.

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/install.sh | sh

# Windows PowerShell
irm https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/install.ps1 | iex

Run the whole loop once on your own agent:

agent-autoloop try
agent-autoloop answer 1 2
agent-autoloop status

try asks you to pick a colour, you answer, and status shows the agent resume and finish, plus the day's rounds, tokens and cost. Some CLI text is still in Chinese. The README shows it in English.

Or hand the setup to Claude Code:

Read INSTALL.md and skills/agent-autoloop/SKILL.md in github.com/KKKKhazix/agent-autoloop. Install agent-autoloop on this machine, run `agent-autoloop try`, then help me write one rule in ~/.agent-autoloop/rules.json that writes a morning brief at 9:00 from yesterday's commits in this repo. Use my Claude Code agent. Check the rule with `agent-autoloop check` before you save it.

The starter rules file

Rules live in ~/.agent-autoloop/rules.json. A rule says what happens, who does the work and where. Set to to your agent's name from the agents block.

A morning brief at nine:

{
  "name": "morning brief",
  "when": { "cron": "0 9 * * *" },
  "to": "claude",
  "cwd": "~/notes",
  "prompt": "Go through yesterday's notes and commits and write today's brief."
}

React to every new GitHub issue (register the github source first; see skills/agent-autoloop/SKILL.md):

{
  "name": "handle issue",
  "when": { "source": "github", "types": ["issues.opened"] },
  "to": "claude",
  "cwd": "~/code/app",
  "skill": "handle-issue",
  "parallel": 3
}

Rules reload within seconds. These commands help:

Command What it does
agent-autoloop check <file> Checks a draft rules file
agent-autoloop emit <type> --dry-run Shows which rule and agent an event would go to
agent-autoloop pause <rule> Pauses one rule
agent-autoloop run <rule> Runs one rule now
agent-autoloop status Shows what's running, waiting and done

If you are building with background agents

Honest limits

Run this on your codebase

Look at this repo and list the 3 chores I do by hand most often (from git history, open issues and scripts). For each one, write an agent-autoloop rule (cron or GitHub event) and mark which steps must stop and ask me first: deleting data, restarting a service, spending money or messaging anyone. Don't install anything. Just give me the rules.json draft.

Get the next one in your inbox