codex-hookkit
Small helpers for building Codex hook guards against upstream Codex hook schemas.
This package intentionally starts small:
- vendored snapshots of
openai/codexgenerated hook schemas - stdin parsing for Codex hook payloads
- JSON-schema validation helpers
- allow / deny output builders
- a minimal command guard CLI
Install
uv add codex-hookkit
CLI
Use codex-hookkit guard as a Codex hook command. It reads one hook payload from
stdin, validates it against the vendored upstream schema, and exits:
0for allowed payloads2with a stderr reason for denied payloads
codex-hookkit guard --schema pre-tool-use
Python API
from codex_hookkit import HookPayload, SecretPolicy, deny
payload = HookPayload.from_stdin(schema="pre-tool-use")
decision = SecretPolicy.default().evaluate(payload)
if decision.denied:
raise SystemExit(deny.stderr_exit(decision.reason))
JSON output helpers are also available for Codex hook contracts that consume structured output.
Metadata
Release files for codex-hookkit 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codex_hookkit-0.0.2.tar.gz | 9.9 kB | Without provenance | Details for codex_hookkit-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codex_hookkit-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for codex_hookkit-0.0.2-py3-none-any.whl |
Total release size: 33.4 kB
Release files / codex_hookkit-0.0.2.tar.gz
| Download URL | codex_hookkit-0.0.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6b7dcb7a49e5f7f8981c226f23755df48ce312865016e86ecfd4ce5601c5b80
|
|
BLAKE2b-256 checksum How to use checksums |
9090d9eb1a402b86745b6e1a08671f42f5155cee0d7000f35c08dadd5efb62a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}
|
Release files / codex_hookkit-0.0.2-py3-none-any.whl
| Download URL | codex_hookkit-0.0.2-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
200aeae7a83a181b1c26626d84634f21fcf9d0b4994f0d61ea4fc2b2f00f64cb
|
|
BLAKE2b-256 checksum How to use checksums |
c2a4b52992399710fc3573f151c60ad30171018d7c7259efbb9757ab190ed38b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}
|
Security for codex-hookkit 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.