Skip to content

feat(examples): add Hy3-powered code review agent (#92)#165

Open
xyaohubery wants to merge 2 commits into
trpc-group:mainfrom
xyaohubery:feat/code-review-agent
Open

feat(examples): add Hy3-powered code review agent (#92)#165
xyaohubery wants to merge 2 commits into
trpc-group:mainfrom
xyaohubery:feat/code-review-agent

Conversation

@xyaohubery

Copy link
Copy Markdown

Summary

Build an automated code review agent using tRPC-Agent SDK + Hy3 LLM.

Architecture

  • Skills: Agent uses FunctionTool for review_code + save_review
  • 沙箱: Ready for CubeSandbox skill integration (follows skills_with_cube pattern)
  • 数据库存储: SQLite persistence for all review results
  • LLM Backend: Hy3 via OpenAI-compatible API (configurable)

Usage

pip install -e '.[cube]'
export TRPC_AGENT_API_KEY=your-key
export TRPC_AGENT_BASE_URL=http://127.0.0.1:8000/v1
python run_agent.py path/to/code.py

Fixes #92

Assisted-by: claude-code:deepseek-v4-pro

- Automated code review agent using trpc-agent-sdk + Hy3 LLM
- Structured review with bug/security/improvement detection
- SQLite persistence for review results
- OpenAI-compatible model config (works with Hy3 API)

Fixes trpc-group#92

Assisted-by: claude-code:deepseek-v4-pro
@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main        #165   +/-   ##
==========================================
  Coverage        ?   87.54280%           
==========================================
  Files           ?         467           
  Lines           ?       44103           
  Branches        ?           0           
==========================================
  Hits            ?       38609           
  Misses          ?        5494           
  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.

@xyaohubery

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Rook1ex added a commit to trpc-group/cla-database that referenced this pull request Jul 12, 2026
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.

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

1 participant