agent: implement issue #5 - Feat: 实现 agent 与 human 在 PR 中的交互

This commit is contained in:
2026-05-06 16:43:52 +08:00
parent aa8afa1a63
commit d227443e90
9 changed files with 596 additions and 76 deletions

View File

@@ -2,7 +2,7 @@
[中文说明](README_CN.md)
Local, auditable CLI service that scans configured Gitea repositories for eligible issues, runs an implementer agent in an isolated workspace, opens a pull request, runs a reviewer agent, and posts a standardized human review summary.
Local, auditable CLI service that scans configured Gitea repositories for eligible issues, runs an implementer agent in an isolated workspace, opens a pull request, runs a reviewer agent, and posts a standardized human review summary. After the PR is opened, it also watches PR comments from humans and can continue the same task on the existing branch to push follow-up commits.
The MVP never merges pull requests.
@@ -18,12 +18,13 @@ agent-gitea --config config.yaml run-once
```
`sync-repos` discovers repositories owned by the authenticated Gitea user from `/user/repos`; repositories are not listed in the config file.
`worker` continuously syncs repositories, scans issues, and processes eligible tasks.
`worker` continuously syncs repositories, scans issues, scans open agent PRs for new human comments, and processes eligible tasks.
## Commands
- `agent-gitea sync-repos`
- `agent-gitea scan-issues`
- `agent-gitea scan-pr-feedback`
- `agent-gitea run-once`
- `agent-gitea worker`
- `agent-gitea show-task <task_id>`