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.9.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.9.0.tar.gz | 140.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cli_enforcement-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 302.0 kB
Release files / cli_enforcement-0.9.0.tar.gz
| Download URL | cli_enforcement-0.9.0.tar.gz |
|---|---|
| Size | 140.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8bf24189a1113dc6ecbfb041265a1aa46a5945c05dc93dafd223cfd7fda539f
|
|
BLAKE2b-256 checksum How to use checksums |
eb7383e9bf8df5b9d815857ff7d60cb3977ddf2e05d480c7ccc114249484d311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.3
|
Release files / cli_enforcement-0.9.0-py3-none-any.whl
| Download URL | cli_enforcement-0.9.0-py3-none-any.whl |
|---|---|
| Size | 161.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1812e795b7214d88f5bb9b6b1b856b26e6d7401604db333accb23a3878238d9e
|
|
BLAKE2b-256 checksum How to use checksums |
b64d8aa00ead57aa0421f5a26b40aa27ff727ff1d56fa29a74a8621781232d89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.3
|