v1.1.0 的两处修复(#91)。
- 插件读不懂一轮结尾的输出时,交回运行中已经读到的会话,不再交回启动时预生成的编号。之前重派时接不上那个编号,会开新会话把业务重做一遍。
- 每小时清理旧输出放进了
tick(),自己写循环驱动接单程序的也会执行。
用 agent-autoloop update 更新。
Two fixes to v1.1.0 (#91).
- When a plugin can't read the end of a run's output, the session it read while the run went is handed in, not the one made up at launch. A retry couldn't go on in that one, opened a new session and did the work again.
- Clearing old output every hour now happens in
tick(), so a loop of your own that drives the worker gets it too.
Update with agent-autoloop update.
详细ChangeLog
v1.0.0 之后的第一批修复和改进。
从这个版本开始,安装和 agent-autoloop update 都装最新的 Release,不再跟 main。 已经装了的运行两次 agent-autoloop update:第一次拉到 main 最新,第二次落到 Release 上。
第一次启动会从日志重建一次投影,历史多时要等一会儿。
更稳
- 插件出错不再拖垮中台:读不懂输出只算这一轮没跑成,通道或接单程序停了 30 秒后重启,没接住的错误只记日志(#79)。
rules.json 被删、读不到或写错时继续用旧规则,只说一次;中台停着时写坏的也会说(#51、#80)。
- 别的进程占着数据库时,这次到期 5 秒后再试;命令行和中台可以同时写(#53、#79)。
- 连续失败 10 次后停止自动重试,发卡片交给人(#50)。
- 接着旧会话跑时干到一半断了,不再开新会话把业务重做一遍(#60)。
- 查进程失败时不再判定进程已死(#63)。
- 规则删掉或改名后,排着的这一轮停下并发卡片(#54)。
- “接单程序没连上”的卡片关掉后不再马上重发,之后新来的活照常提醒(#80)。
- 飞书监听启动不了时只记日志(#26)。
修复
- 登录 shell 是 fish 时 Agent 启动不了(#22)。
- Claude 把结果输出成一整行数组时读不到(#18)。
- 桌面应用目录里有文件时,找内置 Claude Code 报错(#78)。
- 续接会话时用量重复计入(#56);没跑成的一轮丢掉回执的用量和会话(#67)。
join 覆盖已有配置(#19);init --help 直接执行安装(#75);key remove 在名字带大写、下划线或点时吊销不了(#39);try 把上一次的失败当成这一次的(#23)。
hub.listen 解析出错时监听所有网卡或启动崩溃(#41);systemd unit 的值没加引号(#38);doctor 不认系统级服务(#74);卸载在 Node 25.1 上报错(#61)。
安全
- 卡片链接过期后不再显示内容(#81)。
master.key 为空或残缺时拒绝启动,不再拿它签链接(#52)。
- 声明超过 8 MB 的请求不读内容(#57);卡片回答和通道回报的长度上限由内核执行(#40)。
doctor 提醒没写 answerers 的通道,这种通道里谁都能回答卡片(#84)。
新增
- GitLab 事件插件(#29)。
- 通告卡片可以顺带写一句处理说明(#48)。
性能
- 心跳最多一分钟记一条事实(#62);排队 5000 件时,心跳从 325 ms 降到 0.2 ms 左右(#70、#73)。
- 接单程序运行中也按时清理旧输出(#82)。
- 只有决定存储内容的文件变了才重建投影(#83)。
感谢
这一版有这些贡献者的 PR:1yu2、abduallahJamal、chenjie1129、KaranocaVe、liuyaanng、Minggnim-jpg、shaojian0514、wsqyouth、wuleiyuan、xiaojian94xiaojian、xiaokekehaha、xiaozefeng、zhangbp7474。
The first batch of fixes and improvements since v1.0.0.
From this version on, the installer and agent-autoloop update install the newest release instead of following main. If you've already installed, run agent-autoloop update twice: the first run pulls the latest main, the second settles on the release.
The first start rebuilds the projection from the log once, which takes a while with a lot of history.
Steadier
- A plugin's trouble no longer takes the hub down: output it can't read fails only that run, a channel or worker that stops is restarted after 30 seconds, and stray errors are only logged (#79).
- With
rules.json deleted, unreadable or wrong, the old rules keep running and you're told once, even if it broke while the hub was down (#51, #80).
- With the database held by another process, what's due is tried again in 5 seconds, and the CLI and the hub can write at the same time (#53, #79).
- After 10 failures in a row, automatic retries stop and a card goes to you (#50).
- A resumed run that breaks halfway is no longer redone in a new session (#60).
- Failing to check on a process no longer counts as the process being dead (#63).
- A queued run whose rule was removed or renamed stops and sends a card (#54).
- Closing the "worker not connected" card no longer brings it straight back, and work that comes later is still told (#80).
- A Feishu listener that can't start is only logged (#26).
Fixes
- Agents couldn't start when the login shell was fish (#22).
- Claude's result was missed when printed as a one-line array (#18).
- Finding the Claude Code inside the desktop app failed when that folder held files (#78).
- Usage was counted twice on resumed sessions (#56), and a run that didn't finish lost its receipt's usage and session (#67).
join overwrote existing configuration (#19); init --help ran the install (#75); key remove couldn't revoke names with capitals, underscores or dots (#39); try took the last failure for this one (#23).
hub.listen could bind every interface or crash at startup (#41); systemd unit values weren't quoted (#38); doctor didn't recognize a system-level service (#74); uninstalling failed on Node 25.1 (#61).
Security
- An expired card link no longer shows the card (#81).
- An empty or cut-short
master.key refuses to start instead of signing links with it (#52).
- Requests declaring over 8 MB aren't read (#57), and length limits on answers and channel reports are enforced in the kernel (#40).
doctor points out channels without answerers, where anyone can answer a card (#84).
New
- A GitLab event source (#29).
- Notice cards can take a line about how they were handled (#48).
Performance
- A heartbeat writes at most one fact a minute (#62), and with 5,000 queued a heartbeat went from 325 ms to about 0.2 ms (#70, #73).
- The worker clears old output while running, not only at startup (#82).
- The projection is rebuilt only when the files that decide what's stored change (#83).
Thanks
This release has pull requests from 1yu2, abduallahJamal, chenjie1129, KaranocaVe, liuyaanng, Minggnim-jpg, shaojian0514, wsqyouth, wuleiyuan, xiaojian94xiaojian, xiaokekehaha, xiaozefeng and zhangbp7474.
详细ChangeLog
Agent Autoloop 的第一个正式版本:让命令行 Agent 在后台自己接活、自己跟进到底,遇到拿不准的事才发卡片找你拍板。
里面有什么
- 内核: 约 1650 行、零运行时依赖。挂起零消耗、事件溯源、指令数据分离、跳数熔断。
- Agent 插件: Claude Code、Codex、ACP,以及接任意命令行的通用命令。
- 事件插件: GitHub Webhook、HTTP 接口、定时规则、Issue 轮询脚本。
- 通道插件: 桌面通知、飞书、钉钉、企微、Slack、Discord。
- 交付插件: 给 PR 打
deliver 标签,审查、等 CI、合并、等发布并核对线上版本。
- 场景模板: 早报、GitHub Issue、线上告警、用户反馈、网站巡检、飞书周报、浏览器交接。
安装
支持 macOS 和 Linux,需要 Node 24、Git、curl 和一个已登录的命令行 Agent。
curl -fsSL https://raw.githubusercontent.com/KKKKhazix/agent-autoloop/main/install.sh | sh
agent-autoloop try
安装命令跟随 main。
The first stable release of Agent Autoloop: command-line agents pick up work and follow it through in the background, and send you a card only when a decision is yours to make. See the README. CLI output and default notifications are currently in Chinese.
详细ChangeLog