Automate command-line agents in the background with Agent Autoloop
Turn your CLI agent task scheduling into an automated middle-platform that picks up tasks and follows through to completion in the background. It consumes zero processes or tokens when idle, and sends a card notification only when human sign-off is needed.
GitHubKKKKhazix2.4kGitHub stars
Agent AutoloopClaude CodeCodexNode 24Gitcurl
Added 2026-11-05 · originally published 2026-11-04
Steps
- 1Run the installation command in your macOS or Linux terminal: curl -fsSL https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/install.sh | sh
- 2Run the test run command to verify installation and interaction: agent-autoloop try
- 3Configure rules in ~/.agent-autoloop/rules.json by defining the task, the assigned agent (the 'to' field in rules should match an existing name in agents), and the target directory
- 4Run agent-autoloop check to validate the rule configuration and apply it automatically
- 5Enter a number in the interactive terminal or run agent-autoloop answer <serial_number> <option> in a non-interactive terminal to make a decision, then run agent-autoloop status to check progress
Ideas for Chinese platforms
This approach can be applied to automated operations on Xiaohongshu or WeChat Official Accounts. By configuring scheduled rules and event plugins, agents can automatically scrape platform data or generate daily content drafts, pushing a card for human review and approval only when necessary.
Copy-ready prompt
Please help me write an Agent Autoloop rules configuration file (rules.json) to automatically invoke [fill in the agent name, e.g., codex] in the directory [fill in the running directory, e.g., ~/notes] at [fill in the time or event, e.g., 9 AM every day] to execute the following task: [fill in the specific task prompt, e.g., organize yesterday's notes and commits, and write today's morning report].
#AI Agent#Automation#Command Line#Task Scheduling
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.