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

MIT — see LICENSE.

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.4.4.tar.gz (130.5 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.4.4-py3-none-any.whl (149.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_enforcement-0.4.4.tar.gz
  • Upload date:
  • Size: 130.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for cli_enforcement-0.4.4.tar.gz
Algorithm Hash digest
SHA256 65f050ce760615230c3f49fad8b78668f26f280d8248d6034b7ac335d94a745d
MD5 fb5eb46e07b16756bb1894035643f8a3
BLAKE2b-256 166d5ec8355a01a336a82de54d0f8a0eb214e3809605b870587e09bec3abb36b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_enforcement-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fe7f87e967db3523a91baae4cdc0198c0a5b996ab408c314cd3dc03bd72b6dda
MD5 57ae460e5182c9bf1ac0148603281b9b
BLAKE2b-256 a382d23fa6ae19268592d527796ccc1fbb632d0694cf313ee3e1ff4a3f0e8707

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