feat: add skills-based code review agent example#127
Open
Small-fish-QAQ wants to merge 5 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #127 +/- ##
==========================================
Coverage ? 87.51506%
==========================================
Files ? 467
Lines ? 44005
Branches ? 0
==========================================
Hits ? 38511
Misses ? 5494
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
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 6, 2026
Author
|
I added a small follow-up to strengthen this PR as a lightweight deterministic baseline:
This PR is intentionally not trying to duplicate the full scanner/sandbox implementation in #124. Its goal is to provide a small, deterministic, Windows-friendly baseline example that can run without Docker, external scanners, LLM calls, or SDK core changes. Latest local test result:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Related to #92
This PR adds a lightweight, deterministic code review agent example under
examples/skills_code_review_agent.It implements a minimal runnable workflow for reviewing unified diffs with static rules, structured findings, redaction, deduplication, report generation, SQLite persistence, dry-run sandbox metadata, filter decisions, telemetry summaries, fixtures, and pytest coverage.
This PR is intentionally designed as a dependency-light baseline example rather than a full scanner/sandbox implementation.
Changes
examples/skills_code_review_agent--diff-file--diff-file ---fail-on-severityfor CI-style failure gates--list-rulesfor deterministic rule metadatareview_report.jsonandreview_report.mdTest
Result:
Smoke test:
Result:
CI gate check:
Expected result:
Rule metadata check:
Stdin diff check:
git diff | python examples/skills_code_review_agent/run_agent.py --diff-file - --output-dir examples/skills_code_review_agent/output --dry-runNotes
This PR focuses on a small deterministic baseline that can run locally without Docker, external scanners, LLM calls, or SDK core changes.
The sandbox layer is implemented as a fake/dry-run runner and does not execute untrusted code. Real Docker / Cube / E2B runtime integration can be added later behind the runner abstraction if maintainers think this lightweight direction is useful.
The implementation is limited to
examples/skills_code_review_agentand does not modify the SDK core.This PR is not intended to duplicate the full scanner/sandbox implementation in #124. Its goal is to provide a lightweight, dependency-light, Windows-friendly example that can be used as a minimal baseline or educational reference.