Files
agent-manager/README_CN.md

35 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Agentic Gitea Issue-to-PR Manager
[English](README.md)
一个本地运行、可审计的 CLI 服务,用于扫描已配置 Gitea 仓库中的合格 issue在隔离工作区中运行实现 agent创建 pull request运行评审 agent并发布标准化的人工评审摘要。PR 创建后,它还会监控来自 human 的 PR 评论,并在同一个任务、已有分支和 workspace 上继续处理,推送后续 commit。
MVP 版本不会合并 pull request。
## 快速开始
```bash
uv sync
cp config.example.yaml config.yaml
# 在 .env 中写入你的 token例如 GITEA_TOKEN=...
agent-gitea --config config.yaml sync-repos
agent-gitea --config config.yaml scan-issues
agent-gitea --config config.yaml run-once
```
`sync-repos` 会通过 `/user/repos` 发现已认证 Gitea 用户拥有的仓库;仓库不会列在配置文件中。
`worker` 会持续同步仓库、扫描 issue、扫描 agent 已创建 PR 中的新 human 评论,并处理符合条件的任务。
## 命令
- `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>`
- `agent-gitea retry-task <task_id>`
- `agent-gitea cancel-task <task_id>`
所需的配置结构请参考 `config.example.yaml`