AI Engineering Guardrails
AI Engineering Guardrails is a local, vendor-neutral toolkit for applying consistent guidance, skills and narrow checks across OpenAI Codex, Claude Code, Cursor, GitHub Copilot in VS Code and Visual Studio, and JetBrains AI Assistant/Copilot.
It renders one canonical policy for each supported product. Its deliberately limited aim is to help agents inspect first, preserve user work, avoid secrets and destructive operations, verify changes, and report what happened. Think of it as a seatbelt, not a committee meeting.
The short version
- One canonical policy, rendered for six product surfaces rather than copied six times.
- Narrow deterministic checks for high-confidence risks: destructive Git operations, publication, credential exposure, and dangerous infrastructure actions.
- Portable, on-demand skills and capability packs for application, delivery, and infrastructure work.
- A local installer that preserves unrelated configuration, creates backups, and uses an immutable runtime independent of the source clone.
- Optional offline assurance for policy evidence, bounded task contracts, imported test/report summaries, and local instruction or skill review.
- Optional routing and terminal UX—both off unless you explicitly enable them.
This is defence in depth, not a replacement for product approvals, sandboxing, operating-system permissions, branch protection, cloud IAM, Kubernetes RBAC, or a human release decision.
Start here
Python 3.11+ is required. Install the published package with pipx and preview before writing anything. Do not use sudo, Administrator, or an elevated shell.
pipx install ai-engineering-guardrails
ai-guardrails install --dry-run
ai-guardrails install
ai-guardrails status
For contributor work or a reviewed local checkout instead:
git clone https://github.com/ZarrenSpryXplor/ai-engineering-guardrails.git
cd ai-engineering-guardrails
pipx install .
The default install detects local supported products, uses no cloud login, and changes no main model, approval setting, sandbox, network setting, routing profile, or terminal decoration. If no product is detected, it makes no change and prints the explicit command to use.
For a direct Git install, pin a reviewed tag or full commit rather than a moving branch:
pipx install 'git+https://github.com/ZarrenSpryXplor/ai-engineering-guardrails.git@<reviewed-tag-or-full-commit>'
The package is published on PyPI through Trusted Publishing. Maintainers should follow the release guide for protected approvals, version/tag checks, and provenance.
Optional extras
Terminal visibility is opt-in. Claude Code can use a managed local status line; Codex uses its native /statusline fields; Cursor CLI keeps its documented /status-indicators control.
ai-guardrails statusline preview --product all --profile standard
ai-guardrails statusline install --product all --profile standard --dry-run
ai-guardrails statusline install --product all --profile standard
ai-guardrails activity --since 24h
ai-guardrails receipt --compact
Routing is also opt-in. It installs static, bounded roles; it does not classify prompts, choose a model at runtime, or grant authority.
ai-guardrails routing show --profile balanced --product codex
ai-guardrails routing set balanced --product codex --dry-run
ai-guardrails routing set balanced --product codex
Assurance tools stay local and offline. They inspect metadata, repository state, supplied reports, and bounded component files; they do not run analyzers, execute downloaded instructions, or award a magical “all bugs gone” sticker.
ai-guardrails policy audit
ai-guardrails task init --repo . --dry-run
ai-guardrails component inspect ./reviewed-skill
ai-guardrails skills audit
ai-guardrails docs audit --path README.md
See evidence and assurance for task setup, report comparison, trust records, and the limits of each result.
Find the right detail
The operator documentation hub is the durable entry point. It gives each audience one place to start instead of making this README do every job.
| If you need to… | Read… |
|---|---|
| Install, update, recover, inspect state, or use waivers | Quick user guide and operations |
| Understand product versions, paths, and limitations | Compatibility |
| Enable terminal UX, activity, complexity, receipts, or demo mode | Terminal UX |
| Audit policy evidence, use a task contract, or inspect an external skill/instruction | Evidence and assurance |
| Delegate bounded work safely | Routing and cost |
| Use or extend language and infrastructure support | Capability packs and skills catalogue |
| Write or review substantive technical documentation | Technical writing and skills catalogue |
| Change canonical policy or understand the design | Policy authoring and architecture |
| Review threat boundaries and enterprise examples | Threat model, enterprise output, and Spacelift |
Contribute and report safely
- Read CONTRIBUTING.md before changing canonical policy, generated output, or product integration.
- Report vulnerabilities privately using SECURITY.md; do not put exploit details or secrets in a public issue.
- See CHANGELOG.md for release-facing changes and CODE_OF_CONDUCT.md for community expectations.
The project is MIT licensed. It makes no claim to be a universal security boundary or to save a particular amount of money, time, or tokens.
Metadata
Release files for ai-engineering-guardrails 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_engineering_guardrails-1.4.0.tar.gz | 2.1 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_engineering_guardrails-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.5 MB
Release files / ai_engineering_guardrails-1.4.0.tar.gz
| Download URL | ai_engineering_guardrails-1.4.0.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a2a8d84254b2d21b0a39104e91c9d20c0f02aa0a5d287b575516363dd8fcc91
|
|
BLAKE2b-256 checksum How to use checksums |
0bf21ba39f8cb5fee1d1484f0668dcdb92d1c21efd2788b5cdad16ed6f5229da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logRelease files / ai_engineering_guardrails-1.4.0-py3-none-any.whl
| Download URL | ai_engineering_guardrails-1.4.0-py3-none-any.whl |
|---|---|
| Size | 356.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ae8c90699a8db2fc112f38c7811b4715fbe9613c4e7de8b64a3b9de54792ccc
|
|
BLAKE2b-256 checksum How to use checksums |
161181ece73eedac25f63ad6002377fb4b5cf05711e226683083ceb156894297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logSecurity for ai-engineering-guardrails 1.4.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ai_engineering_guardrails-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logA 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.