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.7.0.tar.gz (138.8 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.7.0-py3-none-any.whl (161.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_enforcement-0.7.0.tar.gz
  • Upload date:
  • Size: 138.8 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.7.0.tar.gz
Algorithm Hash digest
SHA256 485cc6c40c375c5eaa76c0d55efeb4199a2ba0d0fb5867992f5916dc8306e1aa
MD5 7e8af6693ef05d7641ffef7c2273a00c
BLAKE2b-256 9a423ca992320ab18ab36de633b8d0816514e83ef0e15836c54ac720e1db7499

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_enforcement-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 161.8 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec416ecfd5fb9f2d4bd7afb069f6afa7c473052734ff7b3e9c01267014d44983
MD5 c8924e6dff9e673d580f2eed4e7e8f84
BLAKE2b-256 0954bea37e5a034aae46ba5a9ddbd8a0ef379d7f5df390c70a39b09af8c38418

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