Add GitHub PR review agent example for macOS#29
Conversation
- reviews open PRs using local Ollama model (no API key needed) - posts structured review comments back to GitHub - includes OpenShell policy.yaml locking egress to github + inference.local - tested on macOS Apple Silicon Sonoma 14.x - works locally with Ollama and inside NemoClaw sandbox with Nemotron Signed-off-by: munnamihir <munnamihir1999@gmail.com>
ec4c75a to
fe35082
Compare
Signed-off-by: munnamihir <munnamihir1999@gmail.com>
|
Looks like the DCO workflow is failing due to gsactions/dco-check@v1.1.1 not being in the allowed actions list for this org — not related to this PR's changes. Happy to re-sign or adjust anything needed once the workflow issue is resolved on the repo side. |
Signed-off-by: munnamihir <munnamihir1999@gmail.com>
|
@munnamihir some concerns about this PR:
|
|
Closing this PR for now - please re-open when above items are addressed and we'll re-review. thanks! |
|
Thanks for the detailed feedback this is a really helpful direction. Use Hermes as the agent harness that is replace the standalone script with a Hermes skill that handles PR review, following the pattern in personal-community-sentiment-triage Give me a day or two to rebuild it properly. Happy to get this merged the right way. |
|
Thanks for the detailed feedback, really appreciated. I've reworked the example to address both points: Hermes agent harness replaced the standalone script with a proper Hermes agent structure (agents/hermes/) including SOUL.md, a github-pr-review skill with SKILL.md and a helper script, following the pattern from personal-community-sentiment-triage. Always-on — the skill now runs in watch mode, polling for new PRs every 15 minutes continuously. Reviewed PRs are tracked in /tmp/reviewed_prs.json to avoid double-reviewing. A scripts/bring-up.sh starts the full NemoClaw sandbox Let me know if the structure needs further adjustment happy to iterate. |
What this adds:
A new community example:
examples/github-pr-review-agent/An agent that automatically reviews open GitHub pull requests using a local Ollama model and posts structured review comments back to GitHub.
Why it's useful:
inference.localautomaticallypolicy.yamllocks egress toapi.github.comandinference.localonly — nothing else leaves the sandboxFiles added:
agent.py— main agent logicpolicy.yaml— OpenShell network policy.env.example— environment variable templateREADME.md— setup and usage guideTested: