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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cli_enforcement-0.6.0-py3-none-any.whl (159.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cli_enforcement-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26733f9dea4d04723c8594f88fbe6376cd5944f72f4ebf7ba961a03ac9b102fa
MD5 9092e095560da9092913a193b418e80d
BLAKE2b-256 0bc4b5098cea26a814eff5eb4cdbe1d2ae30a5fdec2d3c2df44195484392e222

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