Skip to main content

Model-agnostic, hook-level behavioral enforcement engine for AI coding agents. Deploys onto any model using cli-wikia's per-model knowledge.

Project description

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.

Project details


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.0.tar.gz (121.2 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.0-py3-none-any.whl (142.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_enforcement-0.4.0.tar.gz
  • Upload date:
  • Size: 121.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cli_enforcement-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7e8f7bcf29ab73e0999679629adc82f9ddf2e1261ca3070d025b8c6148956b13
MD5 f7c183043e6e2b4b76568beab37d5bcf
BLAKE2b-256 bb5c9f4654a469623ebf98b5dd7b0b79d3d8c35c59166289def9eea6ea8ada96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_enforcement-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aad6e92f462be9b733a553bac9a6e58400ff38db90e70345ac347aa24fdc16e6
MD5 984f3c08cdfc85eba667a543fa618fd8
BLAKE2b-256 6eb96c44bba03e2aba36e718800a56b2895a3e6640c90e8acea170f7f8811506

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 Pingdom Monitoring Sentry Error logging StatusPage Status page