Skip to content

feat: 基于 Skills + 沙箱 + 数据库存储构建自动代码评审 Agent #212

Open
Stelquis wants to merge 9 commits into
trpc-group:mainfrom
Stelquis:feature/code-review-agent
Open

feat: 基于 Skills + 沙箱 + 数据库存储构建自动代码评审 Agent #212
Stelquis wants to merge 9 commits into
trpc-group:mainfrom
Stelquis:feature/code-review-agent

Conversation

@Stelquis

Copy link
Copy Markdown

基于 tRPC-Agent 框架构建的自动代码评审 Agent,集成 Skills、沙箱执行、Filter 治理、数据库存储和监控审计能力。输入 git diff / PR patch / 本地变更,通过 code-review Skill 加载规则,经 Filter 前置拦截后进入沙箱执行检查,发现问题结构化输出并落库持久化。
新增 examples/skills_code_review_agent/ 目录,包含:

  • 9 个核心模块(输入解析/沙箱/脱敏/Filter/去重/报告/监控/配置/CLI)
  • CR Skill(SKILL.md + 5 类规则文档 + 3 个沙箱脚本)
  • 数据库层(5 张表 + StorageABC 抽象接口 + SQLite 实现)
  • 主入口 review_agent.py + 干跑模式 dry_run.py
  • 8 条测试样本 + 示例报告 + 使用说明 + 方案设计说明

关联 Issue: #92

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@5ca3bf2). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             main        #212   +/-   ##
==========================================
  Coverage        ?   87.90237%           
==========================================
  Files           ?         479           
  Lines           ?       44984           
  Branches        ?           0           
==========================================
  Hits            ?       39542           
  Misses          ?        5442           
  Partials        ?           0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant