@rivus/agent-task-loop
v0.2.0
Published
Run AI coding agents through task execution, review, rework, and pull request handoff.
Downloads
336
Maintainers
Readme
Agent Task Loop CLI
Agent Task Loop is a local CLI for running AI coding agent task delivery workflows.
It connects a Feishu Base task table to local coding agents, then drives a task through execution, review, rework, branch publishing, and Pull Request handoff.
Local CLI
Install dependencies from the monorepo root:
pnpm installThen run the local CLI:
npx --no-install @rivus/agent-task-loop --helpFrom npm, run:
npx @rivus/agent-task-loop --helpUse --no-install when you want to force the repo-local binary:
npx --no-install @rivus/agent-task-loop --helpCommands
npx agent-task-loop syncnpx agent-task-loop schemanpx agent-task-loop schema --applynpx agent-task-loop start --task TASK-101npx agent-task-loop watch --task TASK-101npx agent-task-loop resume --task TASK-101npx agent-task-loop complete --task TASK-101
Complete Flow
complete closes a task that is already in 待发布 or 待验收.
The flow is:
- Reuse the task workspace branch and commit state.
- Commit any pending workspace changes with an AI-generated commit message.
- Push the remote branch and verify the remote head.
- Create or reuse a GitHub Pull Request with
gh. - Update the Pull Request body with a generated delivery summary.
- Write branch, commit, Pull Request, and completion metadata back to the task table.
- Move the task to
已完成.
Local Requirements
- Node.js 20+
- pnpm
- lark-cli
- GitHub CLI (
gh) authenticated for Pull Request creation - Locally executable coding agents such as
claude,codex,coco, orglm
Config
Config discovery checks:
task.config.tsin the current directory or its parentsAGENT_TASK_LOOP_CONFIGtask.config.tsin the package directory
Start from the example:
cp task.config.example.ts task.config.tsThen replace the example Feishu table values and local repository paths with real values.
Initialize Task Table Schema
Check fields:
npx agent-task-loop schemaCreate missing fields:
npx agent-task-loop schema --apply