feat: add skills-based code review agent example - #127
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 ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
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:
|
|
Closing as related to #92. |
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.