CLI Enforcement
Model-agnostic, hook-level behavioral enforcement for AI coding agents. The enforcement engine (state manager, points/tiers, anti-hallucination, sandbox, cascade) is platform-neutral; where and how it installs onto a given model is supplied dynamically by cli-wikia — so one engine deploys onto Claude, Gemini, Copilot, DeepSeek, Antigravity, … with no per-platform template.
How it works
cli-enforcement deploy <model>
│
├─ asks cli-wikia: config_root? hook_events? instruction_file?
│
├─ maps enforcement STAGES (pre-tool, post-tool, stop, …)
│ to that model's REAL event names (PreToolUse / BeforeTool / …)
│
└─ copies the engine into <config_root>/mcp/ and writes the hook registry
Install
pip install cli-enforcement # pulls in cli-wikia
Usage
cli-enforcement deploy claude # dry-run: show the plan
cli-enforcement deploy claude --write # actually install into ./.claude/
cli-enforcement deploy gemini --write # same engine, wired to Gemini's events
cli-enforcement status # scorecard: points, tier, streak, KB gates, failures
cli-enforcement status --json # same data, machine-readable (used by cli-fleet dashboard)
cli-enforcement remove claude --write # remove the engine
Dry-run by default — nothing is written without --write.
License
PolyForm Noncommercial 1.0.0 — free for noncommercial use. Commercial use requires a paid license: matrixbuilderops@proton.me
Metadata
Release files for cli-enforcement 0.10.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 | |
|---|---|---|---|
| cli_enforcement-0.10.0.tar.gz | 159.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cli_enforcement-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 334.5 kB
Release files / cli_enforcement-0.10.0.tar.gz
| Download URL | cli_enforcement-0.10.0.tar.gz |
|---|---|
| Size | 159.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b966be8e790f7b5cf9ee0f5151857539bb6c2b01596a35b993465e2ed0b84bdb
|
|
BLAKE2b-256 checksum How to use checksums |
6a660d35926e147fcf8718c939396d5a55814a4d1314a9440c0971d7fa98b1ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / cli_enforcement-0.10.0-py3-none-any.whl
| Download URL | cli_enforcement-0.10.0-py3-none-any.whl |
|---|---|
| Size | 174.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc9ce37d35bb3a98eb0bd96103cff5603a6bfd4c009bfd5ef048d4845e81bde5
|
|
BLAKE2b-256 checksum How to use checksums |
d6c4337ac84970481eda7b14b6186d28597aa59ddd0e908144496c94c47bd946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|