log-center/repair_agent
zyc d58ca4b131
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 4m15s
feat(repair-agent): add triage and retry flow for FIX_FAILED bugs
- Add fetch_failed_bugs() to task_manager
- Add triage_bug() to claude_service for AI-based bug classification
- Add retry_failed_project() to core with triage→fix pipeline
- Add retry CLI command to __main__.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:01:27 +08:00
..
2026-02-12 10:42:39 +08:00
2026-02-13 14:04:21 +08:00
2026-01-30 14:52:21 +08:00
2026-02-12 13:23:59 +08:00
2026-01-30 14:52:21 +08:00
2026-01-30 14:52:21 +08:00

Repair Agent - 自动化 Bug 修复代理

本地运行的自动化 Bug 修复工具,从 Log Center 获取 Bug使用 Claude Code CLI 进行修复。

安装

cd log_center/repair_agent
pip install -r requirements.txt

配置

复制 .env.example.env 并配置:

cp .env.example .env

使用

# 查看待修复的 Bug
python -m repair_agent list

# 修复指定项目的所有 Bug
python -m repair_agent fix rtc_backend

# 修复单个 Bug
python -m repair_agent fix-one <bug_id>

# 查看状态
python -m repair_agent status

架构

repair_agent/
├── agent/
│   ├── core.py           # 核心引擎
│   ├── task_manager.py   # Log Center 交互
│   ├── git_manager.py    # Git 操作
│   ├── claude_service.py # Claude CLI 调用
│   └── test_runner.py    # 测试执行
├── config/
│   └── settings.py       # 配置管理
├── models/
│   └── bug.py            # 数据模型
└── __main__.py           # CLI 入口