Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_enforcement-0.5.0.tar.gz (131.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_enforcement-0.5.0-py3-none-any.whl (152.9 kB view details)

Uploaded Python 3

File details

Details for the file cli_enforcement-0.5.0.tar.gz.

File metadata

  • Download URL: cli_enforcement-0.5.0.tar.gz
  • Upload date:
  • Size: 131.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cli_enforcement-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f131b58776c138996891999860f490be88a7fc7c22dc9bbccd3e5e71f3270040
MD5 a100af314f0c1631a4ce5a39e7ee71a9
BLAKE2b-256 ed8a76e31aa4d055abc038bae99e451ffeaf5841bfa42172ad863aee1cea1500

See more details on using hashes here.

File details

Details for the file cli_enforcement-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: cli_enforcement-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 152.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cli_enforcement-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0ade22e9b2bf8a98243db1c9e76b4cfd135bc2007d2bf0244789e3498839d48
MD5 3dc08eb99f203e9361617634fd100042
BLAKE2b-256 d3887c4765d5f0666398273d6201edfdd7c511714c1b7f6453354f877306ed96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page