Skip to main content

Seanergy CodeGuard

PR-Agent reviews your staged commit against main, using Ollama. Org rules in YAML are passed as extra instructions. Issues can block the commit. Overrides are logged.

Setup (once)

cd /Users/srikrishna/Desktop/demo_app
./install-dev.sh
ollama serve
ollama pull qwen2.5-coder:7b

The CLI calls python -m pr_agent.cli --pr_url main review with CONFIG__GIT_PROVIDER=local. It snapshots the git index (so uncommitted staged files are included) and writes the review under .git/codeguard-review.md.

Usage

git commit -m "your message"

If something is flagged, fix it and commit again, or override:

CODEGUARD_OVERRIDE=1 \
CODEGUARD_OVERRIDE_REASON='why you are overriding' \
git commit -m "your message"

Skip once: CODEGUARD_SKIP=1 git commit -m "your message"

Ollama must be running (ollama serve). If it is not, the commit is blocked. To allow commits when AI is down: CODEGUARD_AI_OPTIONAL=1.

Rules

Org policy is YAML (not the Python prompt):

  • Packaged: seanergy_codeguard/rules/org.yaml
  • Optional in an app repo: .codeguard/rules.yaml

Each rule has id, title, severity (block or warn), paths, and hint. After changing org YAML, run ./install-dev.sh (or pipx install --force .).

Metadata

Release files for seanergy-codeguard 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seanergy-codeguard 0.2.0
File Size Uploaded
seanergy_codeguard-0.2.0.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seanergy-codeguard 0.2.0
File Interpreter ABI Platform
seanergy_codeguard-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / seanergy_codeguard-0.2.0.tar.gz

Download URL seanergy_codeguard-0.2.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5c80f9a41a298bb9f98efc3d3d2e7758950c7e26eddd063f44da18ed3ff4b11a
BLAKE2b-256 checksum
How to use checksums
4d229ac9d77b4a1ea78e013faf0f0da53bee068c82d09de6801fe502ce265fea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / seanergy_codeguard-0.2.0-py3-none-any.whl

Download URL seanergy_codeguard-0.2.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82003802823299531c370fffe049b8d1e34149cf7c0a3ceaf9812bb78b55e3f1
BLAKE2b-256 checksum
How to use checksums
fded9c58c5f550f4401cff92d39d06cd3857824aa7f277d2c9f076ebc9aeb556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page