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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_enforcement-0.8.0.tar.gz
  • Upload date:
  • Size: 132.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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.8.0.tar.gz
Algorithm Hash digest
SHA256 31289bfc560b6a969d570839f36a91c2bc2460d08afc077bd70fe7ea66eb5dfb
MD5 03007b89163277263e8168dbe75d6365
BLAKE2b-256 1a9088bdae680cd987364720b5054ba364bab591545d7b8e1ab326fff10de333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_enforcement-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 152.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6db1fb73727f6abce12ed02d3335de236e130b3ffe65f1f81dcbe0ed5e2cd3d
MD5 ba760418fb7739a65571a169520caa98
BLAKE2b-256 b397df22717351e67e2e9b08777b977831b5e618860026b6717c18febe782e14

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 files

0.7.0

2 files

0.6.0

1 file

0.5.0

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

1 file

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page