AI engineering workstation guardrails
Give AI coding agents a seatbelt, not a committee meeting. This is a local, vendor-neutral guardrails kit for OpenAI Codex, Claude Code, Cursor, GitHub Copilot in VS Code and Visual Studio, and JetBrains AI Assistant/Copilot.
It turns one canonical policy into product-appropriate guidance, skills, hooks, and optional agent roles. The goal is boringly useful: inspect first, preserve user work, avoid secrets and destructive operations, verify changes, and say what happened.
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 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 from a reviewed clone with pipx and preview before writing anything. Do not use sudo, Administrator, or an elevated shell.
git clone https://github.com/ZarrenSpryXplor/ai-engineering-guardrails.git
cd ai-engineering-guardrails
pipx install .
ai-guardrails install --dry-run
ai-guardrails install
ai-guardrails status
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>'
PyPI Trusted Publishing is prepared, but this repository does not claim a package is already available there. After the first successful PyPI release, the supported command will be pipx install ai-engineering-guardrails; until then, use a reviewed clone or wheel. Maintainers should follow the release guide.
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
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 |
| Delegate bounded work safely | Routing and cost |
| Use or extend language and infrastructure support | Capability packs 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_engineering_guardrails-1.1.2.tar.gz.
File metadata
- Download URL: ai_engineering_guardrails-1.1.2.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc0a26a0044a6eac4e8dac7dbeab93f988d435091a99d4077d2dd0477776b139
|
|
| MD5 |
af83b908e8650ac2efd3b38b375a67f7
|
|
| BLAKE2b-256 |
8a38c69a06f9e211e66755ff4696fb6bf40f2dbb1f487359f8bf7ee0a7897a6b
|
Provenance
The following attestation bundles were made for ai_engineering_guardrails-1.1.2.tar.gz:
Publisher:
publish-pypi.yml on ZarrenSpryXplor/ai-engineering-guardrails
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_engineering_guardrails-1.1.2.tar.gz -
Subject digest:
fc0a26a0044a6eac4e8dac7dbeab93f988d435091a99d4077d2dd0477776b139 - Sigstore transparency entry: 2388904703
- Sigstore integration time:
-
Permalink:
ZarrenSpryXplor/ai-engineering-guardrails@d45227da7613a0c217f726339aadc48f89d24458 -
Branch / Tag:
refs/tags/v1.1.2 - Owner: https://github.com/ZarrenSpryXplor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d45227da7613a0c217f726339aadc48f89d24458 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ai_engineering_guardrails-1.1.2-py3-none-any.whl.
File metadata
- Download URL: ai_engineering_guardrails-1.1.2-py3-none-any.whl
- Upload date:
- Size: 283.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
301504c091f0872b2b37a7478b93afe90d6e12a5f1048cee67431dbc2453aa96
|
|
| MD5 |
39fdb00f0fd5b0820f91ba997c204b13
|
|
| BLAKE2b-256 |
e35aebd5d355a39a11cb1fcf5f5f5d768cd0194d05f573a430a359acfdbe46ec
|
Provenance
The following attestation bundles were made for ai_engineering_guardrails-1.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on ZarrenSpryXplor/ai-engineering-guardrails
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_engineering_guardrails-1.1.2-py3-none-any.whl -
Subject digest:
301504c091f0872b2b37a7478b93afe90d6e12a5f1048cee67431dbc2453aa96 - Sigstore transparency entry: 2388904763
- Sigstore integration time:
-
Permalink:
ZarrenSpryXplor/ai-engineering-guardrails@d45227da7613a0c217f726339aadc48f89d24458 -
Branch / Tag:
refs/tags/v1.1.2 - Owner: https://github.com/ZarrenSpryXplor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d45227da7613a0c217f726339aadc48f89d24458 -
Trigger Event:
release
-
Statement type: