Skip to main content

grai-gate

Deterministic anti-slop gate for markdown written by coding agents. One Python engine, no model calls, no network. It scores sentence burstiness and flags the structural habits that survive spellcheck.

GitHub Action

name: cadence
on:
  pull_request:
    paths: ['**.md', '**.mdx', '**.txt']
jobs:
  gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: adrianpeticila/grai-gate-action@v0.1.3
        with:
          fail-on-slop: "false"

The action scores only files changed in the pull request. It fetches the base ref itself, so a shallow checkout is fine. The default is advisory: the card lands in the log and the job stays green. Set fail-on-slop: "true" to block.

Inputs: path (scan target when no pull request base is available), fail-on-slop, verbose.

PyPI

pipx run grai-gate README.md

or

pip install grai-gate
grai-gate docs/

Exit codes: 0 clean, 1 slop, 2 input error. The CLI accepts -h and --help.

pre-commit

repos:
  - repo: https://github.com/adrianpeticila/grai-gate-action
    rev: v0.1.3
    hooks:
      - id: grai-gate

The hook scores markdown, mdx, and plain text. It exits 1 on slop and stops the commit. Skip one commit with SKIP=grai-gate git commit.

One engine

src/grai_gate/gate.py is vendored byte-for-byte from the Antigravity plugin in the grai repo. Run python scripts/sync_engine.py --check to prove the copies match; it exits 1 on drift.

UTM attribution

The report card links to the Pro Cockpit. Attribution resolves from GRAI_UTM_SOURCE, then GITHUB_ACTIONS, then PRE_COMMIT, then cli.

Metadata

Release files for grai-gate 0.1.3

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

Built distribution (wheel)

Table of built distributions (wheels) for grai-gate 0.1.3
File Interpreter ABI Platform Actions
grai_gate-0.1.3-py3-none-any.whl Python 3 none any Details for grai_gate-0.1.3-py3-none-any.whl

Release files / grai_gate-0.1.3-py3-none-any.whl

Download URL grai_gate-0.1.3-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64b8c062adb9c9b8e0c0a47ee744c864564e1c4c17db2e25d436ae0eda2e6ae8
BLAKE2b-256 checksum
How to use checksums
7f71ee953bca3e758a03ef1437d104c3edc57279dda8fb61428d126d00a38224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for grai-gate 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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