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 .).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seanergy_codeguard-0.2.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seanergy_codeguard-0.2.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file seanergy_codeguard-0.2.0.tar.gz.

File metadata

  • Download URL: seanergy_codeguard-0.2.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for seanergy_codeguard-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5c80f9a41a298bb9f98efc3d3d2e7758950c7e26eddd063f44da18ed3ff4b11a
MD5 b6797f054603d9419f810d5d5c743db2
BLAKE2b-256 4d229ac9d77b4a1ea78e013faf0f0da53bee068c82d09de6801fe502ce265fea

See more details on using hashes here.

File details

Details for the file seanergy_codeguard-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for seanergy_codeguard-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82003802823299531c370fffe049b8d1e34149cf7c0a3ceaf9812bb78b55e3f1
MD5 ce83be33f7098e1d250d25648c8cfe69
BLAKE2b-256 fded9c58c5f550f4401cff92d39d06cd3857824aa7f277d2c9f076ebc9aeb556

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page