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.5.tar.gz (133.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.4.5-py3-none-any.whl (152.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_enforcement-0.4.5.tar.gz
  • Upload date:
  • Size: 133.0 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.5.tar.gz
Algorithm Hash digest
SHA256 5effbe681aa3cd4529456f64222faefba8a13f41f40efa23902a6314b31c81c8
MD5 521d8e59b0d24958f9ae7cfb8f84dc46
BLAKE2b-256 2d3f021254f3b1b6ef94d068bdcfd0c573b8278729f375472178319f34b85d0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_enforcement-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2c2bd8a52e8399ca8133c8baa2a2740ef4bbb8ca5a674c118124fa55237ca656
MD5 d79dd4b966d0950571634787b6df684b
BLAKE2b-256 d2da6ee49d9a19fa56dff6cb0eb4be02853924e8130b3862d00526bb2ea76595

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