
Quick Gate JS
Existing Quick Gate users: This repository stays at its original URL.
Published quick-gate 0.3.2, historical tags and SHA pins, the root and nested
Actions, plugin installs, issues, and releases remain here. The active
Kwik-e-gate product source
is a new repository. Its 0.4.0 packages are not yet published.
Fast local checks for coding agents. PASS / FAIL. Don't forget the receipt.
Interpret the change against your repository’s declared gates, record what ran, and verify the
receipt before treating the work as checked. Free, local, no daemon, no model or API
required. Python 3.11+ and Git; zero runtime Python dependencies.
Developed by Hermes Labs.
Unreleased 0.4.0 consolidation. Public PyPI hermes-gate is 0.1.7; npm
quick-gate is 0.3.2. Install this checkout to use the new commands. The distribution remains
hermes-gate; hermes-gate and kwik-gate use the same engine.
Start here
From this source checkout:
python3 -m venv /tmp/kwik-gate-venv
/tmp/kwik-gate-venv/bin/python -m pip install .
# Use the installed executable in the repository you want to check:
cd /path/to/your/git-repository
/tmp/kwik-gate-venv/bin/kwik-gate init
# Review .hermes/gate.toml: choose the checks that matter for this project.
/tmp/kwik-gate-venv/bin/kwik-gate run
/tmp/kwik-gate-venv/bin/kwik-gate verify
After 0.4.0 is published, pip install hermes-gate==0.4.0 provides both commands.
Existing users can continue using hermes-gate fast and hermes-gate full.
| Command | Result |
|---|
kwik-gate plan | Explain gate selection without executing checks; returns PLANNED, never a checked PASS |
kwik-gate run | Automatically select applicable fast checks or escalate broader changes to full; issue a receipt |
kwik-gate run --mode fast | Explicit fast checks; cached only with a matching input/contract identity |
kwik-gate run --mode full | Every declared full stage, including file-driven checks on clean CI checkouts |
kwik-gate run --output /external/path/receipt.json | Run plus an exported copy of the receipt |
kwik-gate verify | Read-only verification of the latest run receipt, fast or full |
kwik-gate verify --kind full | Verify the current full receipt |
kwik-gate verify --receipt /external/path/receipt.json | Verify an exported receipt against this same local checkout |
Run exits 0 for PASS, 1 for FAIL. Stdout is JSON containing status, receipt,
receipt_path, routing, cached, and elapsed time. Every started run issues a receipt,
including missing/invalid configuration, unavailable tools, timeouts and no-check
outcomes. A non-Git run stores its failure receipt in the user cache. If storage is
unavailable, stdout still contains a failure receipt; it cannot report PASS.
Help and argument-parser failures are not check executions.
Receipt files live under the worktree's Git directory, outside tracked source.
Exports must be outside the repository. verify runs no checks or reviewer and
exits 1 for missing, failed, stale or incomplete evidence. Receipts are intentionally
local to their checkout; copying a receipt to a different checkout does not prove
that checkout was checked.
Choose the right gate locally
The default auto mode interprets changed paths and repository policy. Ordinary
source changes use matching fast stages. Dependency/project contracts, tests, CI,
gate configuration and sensitive auth/schema/migration paths escalate to full.
The receipt records the decision, evidence, selected/skipped stages and review advice.
kwik-gate plan previews that choice; it runs no tool, writes nothing and reports
PLANNED. It does not claim that checks have passed.
The selector reads no source files and calls no subprocess or model. Git discovery,
input hashing, process startup and the checks themselves take additional time.
This is an explainable path/policy interpretation, not semantic code comprehension.
Extend the policy with [routing].full_globs and .review_globs for project-specific
risk. --mode fast / --mode full explicitly select a contract.
An agent or human can use the plan with an LLM when available. kwik-gate review
adds the installed provider’s semantic judgment; it is separate evidence. Sensitive
changes can recommend review while deterministic checks still work without it.
Existing repository boundary policy remains authoritative.
Declare the checks
init writes a reviewable .hermes/gate.toml, a stdlib runner, and a CI workflow.
It refuses to overwrite existing integration files without --force. It never
installs project tools. Detection is a starting point; adapt the profile for a
monorepo or any custom build system.
A minimal profile:
version = 1